2019-09-26 12:31:03 +02:00
|
|
|
//
|
|
|
|
|
// Code generated by go-jet DO NOT EDIT.
|
|
|
|
|
//
|
|
|
|
|
// WARNING: Changes to this file may cause incorrect behavior
|
|
|
|
|
// and will be lost if the code is regenerated
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
package view
|
|
|
|
|
|
|
|
|
|
import (
|
2026-05-09 01:43:14 +00:00
|
|
|
"github.com/Gleipnir-Technology/jet/postgres"
|
2019-09-26 12:31:03 +02:00
|
|
|
)
|
|
|
|
|
|
2021-03-21 17:18:43 +01:00
|
|
|
var ActorInfo = newActorInfoTable("dvds", "actor_info", "")
|
2019-09-26 12:31:03 +02:00
|
|
|
|
2020-05-31 10:42:55 +02:00
|
|
|
type actorInfoTable struct {
|
2019-09-26 12:31:03 +02:00
|
|
|
postgres.Table
|
|
|
|
|
|
2025-10-16 15:09:07 +02:00
|
|
|
// Columns
|
2019-09-26 12:31:03 +02:00
|
|
|
ActorID postgres.ColumnInteger
|
|
|
|
|
FirstName postgres.ColumnString
|
|
|
|
|
LastName postgres.ColumnString
|
|
|
|
|
FilmInfo postgres.ColumnString
|
|
|
|
|
|
|
|
|
|
AllColumns postgres.ColumnList
|
|
|
|
|
MutableColumns postgres.ColumnList
|
2025-10-16 15:09:07 +02:00
|
|
|
DefaultColumns postgres.ColumnList
|
2019-09-26 12:31:03 +02:00
|
|
|
}
|
|
|
|
|
|
2020-05-31 10:42:55 +02:00
|
|
|
type ActorInfoTable struct {
|
|
|
|
|
actorInfoTable
|
|
|
|
|
|
|
|
|
|
EXCLUDED actorInfoTable
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// AS creates new ActorInfoTable with assigned alias
|
2021-03-21 17:18:43 +01:00
|
|
|
func (a ActorInfoTable) AS(alias string) *ActorInfoTable {
|
|
|
|
|
return newActorInfoTable(a.SchemaName(), a.TableName(), alias)
|
2019-09-26 12:31:03 +02:00
|
|
|
}
|
|
|
|
|
|
2021-03-21 17:18:43 +01:00
|
|
|
// Schema creates new ActorInfoTable with assigned schema name
|
|
|
|
|
func (a ActorInfoTable) FromSchema(schemaName string) *ActorInfoTable {
|
|
|
|
|
return newActorInfoTable(schemaName, a.TableName(), a.Alias())
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-16 22:47:34 +08:00
|
|
|
// WithPrefix creates new ActorInfoTable with assigned table prefix
|
|
|
|
|
func (a ActorInfoTable) WithPrefix(prefix string) *ActorInfoTable {
|
|
|
|
|
return newActorInfoTable(a.SchemaName(), prefix+a.TableName(), a.TableName())
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// WithSuffix creates new ActorInfoTable with assigned table suffix
|
|
|
|
|
func (a ActorInfoTable) WithSuffix(suffix string) *ActorInfoTable {
|
|
|
|
|
return newActorInfoTable(a.SchemaName(), a.TableName()+suffix, a.TableName())
|
|
|
|
|
}
|
|
|
|
|
|
2021-03-21 17:18:43 +01:00
|
|
|
func newActorInfoTable(schemaName, tableName, alias string) *ActorInfoTable {
|
2020-05-31 10:42:55 +02:00
|
|
|
return &ActorInfoTable{
|
2021-03-21 17:18:43 +01:00
|
|
|
actorInfoTable: newActorInfoTableImpl(schemaName, tableName, alias),
|
|
|
|
|
EXCLUDED: newActorInfoTableImpl("", "excluded", ""),
|
2020-05-31 10:42:55 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-03-21 17:18:43 +01:00
|
|
|
func newActorInfoTableImpl(schemaName, tableName, alias string) actorInfoTable {
|
2019-09-26 12:31:03 +02:00
|
|
|
var (
|
|
|
|
|
ActorIDColumn = postgres.IntegerColumn("actor_id")
|
|
|
|
|
FirstNameColumn = postgres.StringColumn("first_name")
|
|
|
|
|
LastNameColumn = postgres.StringColumn("last_name")
|
|
|
|
|
FilmInfoColumn = postgres.StringColumn("film_info")
|
2020-05-31 10:42:55 +02:00
|
|
|
allColumns = postgres.ColumnList{ActorIDColumn, FirstNameColumn, LastNameColumn, FilmInfoColumn}
|
|
|
|
|
mutableColumns = postgres.ColumnList{ActorIDColumn, FirstNameColumn, LastNameColumn, FilmInfoColumn}
|
2025-10-16 15:09:07 +02:00
|
|
|
defaultColumns = postgres.ColumnList{}
|
2019-09-26 12:31:03 +02:00
|
|
|
)
|
|
|
|
|
|
2020-05-31 10:42:55 +02:00
|
|
|
return actorInfoTable{
|
2021-03-21 17:18:43 +01:00
|
|
|
Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),
|
2019-09-26 12:31:03 +02:00
|
|
|
|
|
|
|
|
//Columns
|
|
|
|
|
ActorID: ActorIDColumn,
|
|
|
|
|
FirstName: FirstNameColumn,
|
|
|
|
|
LastName: LastNameColumn,
|
|
|
|
|
FilmInfo: FilmInfoColumn,
|
|
|
|
|
|
2020-05-31 10:42:55 +02:00
|
|
|
AllColumns: allColumns,
|
|
|
|
|
MutableColumns: mutableColumns,
|
2025-10-16 15:09:07 +02:00
|
|
|
DefaultColumns: defaultColumns,
|
2019-09-26 12:31:03 +02:00
|
|
|
}
|
|
|
|
|
}
|