Documentation ¶
Index ¶
- Constants
- func Generate(schema *core.SQLSchema, contents io.Writer, pkg string, driver string, ...) error
- func GetNormalizedTypeFilter(col *PostgresColumn) string
- type FieldInitializer
- type FilterMethod
- type HeaderData
- type LoggerConfig
- type PostgresColumn
- type PostgresCtx
- type PostgresQuery
- type PostgresTable
- func (table *PostgresTable) GetCreateManySQLArg() []string
- func (table *PostgresTable) GetCreateManySQLContent() string
- func (table *PostgresTable) GetCreateSQLContent() string
- func (table *PostgresTable) GetDeleteHardSQLContent() string
- func (table *PostgresTable) GetDeleteSoftSQLContent() string
- func (table *PostgresTable) GetDeleteSoftSQLName() string
- func (table *PostgresTable) GetFieldFilters() []SelectFieldFilter
- func (table *PostgresTable) GetInsertSQLColumnsSorted() []*PostgresColumn
- func (table *PostgresTable) GetNow() string
- func (table *PostgresTable) GetPrimaryKeyConstructors() []PrimaryFieldInit
- func (table *PostgresTable) GetSelectPrimarySQL() []SelectQuery
- func (table *PostgresTable) GetUpdateManySQLContent() string
- func (table *PostgresTable) GetUpdateSQLColumnsSorted() []*PostgresColumn
- func (table *PostgresTable) GetUpdateSQLContent() string
- func (table *PostgresTable) GetUpsertManySQLContent() string
- func (table *PostgresTable) GetUpsertSQLContent() string
- func (table *PostgresTable) HasInsertExtraCreated() bool
- func (table *PostgresTable) HasInsertExtraUpdated() bool
- func (table *PostgresTable) HasInsertReturning() bool
- func (table *PostgresTable) HasStructCopy() bool
- func (table *PostgresTable) HasUpdateExtraUpdated() bool
- func (table *PostgresTable) HasUpdateReturning() bool
- func (table *PostgresTable) IsInsertMany() bool
- type PrimaryFieldInit
- type SelectFieldFilter
- type SelectFilter
- type SelectQuery
- type SelectQueryRef
Constants ¶
View Source
const ( FilterNumericField = "FilterNumericField" FilterStringField = "FilterStringField" FilterArrayField = "FilterArrayField" FilterGenericField = "FilterGenericField" )
Variables ¶
This section is empty.
Functions ¶
func GetNormalizedTypeFilter ¶
func GetNormalizedTypeFilter(col *PostgresColumn) string
Types ¶
type FieldInitializer ¶
type FilterMethod ¶
type FilterMethod struct { Name string Filters []SelectFilter }
func GetFilterMethods ¶
func GetFilterMethods(tables []*PostgresTable, driver string) []FilterMethod
type HeaderData ¶
type LoggerConfig ¶
type PostgresColumn ¶
type PostgresCtx ¶
type PostgresCtx struct {
Const string
}
type PostgresQuery ¶
type PostgresTable ¶
type PostgresTable struct { Name string NameNormalized string HasCompositeID bool HasIDAutoGenerated bool ColumnIDs []*PostgresColumn Columns []*PostgresColumn ColumnsCreate []*PostgresColumn ColumnsUpdate []*PostgresColumn Primary []string // contains filtered or unexported fields }
func (*PostgresTable) GetCreateManySQLArg ¶ added in v0.0.6
func (table *PostgresTable) GetCreateManySQLArg() []string
func (*PostgresTable) GetCreateManySQLContent ¶
func (table *PostgresTable) GetCreateManySQLContent() string
func (*PostgresTable) GetCreateSQLContent ¶
func (table *PostgresTable) GetCreateSQLContent() string
func (*PostgresTable) GetDeleteHardSQLContent ¶
func (table *PostgresTable) GetDeleteHardSQLContent() string
func (*PostgresTable) GetDeleteSoftSQLContent ¶
func (table *PostgresTable) GetDeleteSoftSQLContent() string
func (*PostgresTable) GetDeleteSoftSQLName ¶
func (table *PostgresTable) GetDeleteSoftSQLName() string
func (*PostgresTable) GetFieldFilters ¶
func (table *PostgresTable) GetFieldFilters() []SelectFieldFilter
func (*PostgresTable) GetInsertSQLColumnsSorted ¶
func (table *PostgresTable) GetInsertSQLColumnsSorted() []*PostgresColumn
func (*PostgresTable) GetNow ¶
func (table *PostgresTable) GetNow() string
func (*PostgresTable) GetPrimaryKeyConstructors ¶
func (table *PostgresTable) GetPrimaryKeyConstructors() []PrimaryFieldInit
func (*PostgresTable) GetSelectPrimarySQL ¶
func (table *PostgresTable) GetSelectPrimarySQL() []SelectQuery
func (*PostgresTable) GetUpdateManySQLContent ¶
func (table *PostgresTable) GetUpdateManySQLContent() string
func (*PostgresTable) GetUpdateSQLColumnsSorted ¶
func (table *PostgresTable) GetUpdateSQLColumnsSorted() []*PostgresColumn
func (*PostgresTable) GetUpdateSQLContent ¶
func (table *PostgresTable) GetUpdateSQLContent() string
func (*PostgresTable) GetUpsertManySQLContent ¶
func (table *PostgresTable) GetUpsertManySQLContent() string
func (*PostgresTable) GetUpsertSQLContent ¶
func (table *PostgresTable) GetUpsertSQLContent() string
func (*PostgresTable) HasInsertExtraCreated ¶
func (table *PostgresTable) HasInsertExtraCreated() bool
func (*PostgresTable) HasInsertExtraUpdated ¶
func (table *PostgresTable) HasInsertExtraUpdated() bool
func (*PostgresTable) HasInsertReturning ¶
func (table *PostgresTable) HasInsertReturning() bool
func (*PostgresTable) HasStructCopy ¶
func (table *PostgresTable) HasStructCopy() bool
func (*PostgresTable) HasUpdateExtraUpdated ¶
func (table *PostgresTable) HasUpdateExtraUpdated() bool
func (*PostgresTable) HasUpdateReturning ¶
func (table *PostgresTable) HasUpdateReturning() bool
func (*PostgresTable) IsInsertMany ¶ added in v0.0.6
func (table *PostgresTable) IsInsertMany() bool
type PrimaryFieldInit ¶
type SelectFieldFilter ¶
type SelectFilter ¶
type SelectQuery ¶
type SelectQuery struct { Name string Fields []*PostgresColumn Method string }
type SelectQueryRef ¶
Click to show internal directories.
Click to hide internal directories.