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) GetCreateManySqlContent() string
- func (table *PostgresTable) GetCreateManySqlName() string
- func (table *PostgresTable) GetCreateSqlContent() string
- func (table *PostgresTable) GetCreateSqlName() string
- func (table *PostgresTable) GetDeleteHardSqlContent() string
- func (table *PostgresTable) GetDeleteHardSqlName() string
- func (table *PostgresTable) GetDeleteSoftSqlContent() string
- func (table *PostgresTable) GetDeleteSoftSqlName() string
- func (table *PostgresTable) GetFieldFilters() []SelectFieldFilter
- func (table *PostgresTable) GetNow() string
- func (table *PostgresTable) GetPrimaryKeyConstructors() []PrimaryFieldInit
- func (table *PostgresTable) GetSelectPrimarySql() []SelectQuery
- func (table *PostgresTable) GetSelectSql() []SelectQueryRef
- func (table *PostgresTable) GetTableName() string
- func (table *PostgresTable) GetUpdateManySqlContent() string
- func (table *PostgresTable) GetUpdateManySqlName() string
- func (table *PostgresTable) GetUpdateSqlContent() string
- func (table *PostgresTable) GetUpdateSqlName() string
- func (table *PostgresTable) GetUpsertManySqlContent() string
- func (table *PostgresTable) GetUpsertManySqlName() string
- func (table *PostgresTable) GetUpsertSqlContent() string
- func (table *PostgresTable) GetUpsertSqlName() string
- func (table *PostgresTable) HasInsertExtraCreated() bool
- func (table *PostgresTable) HasInsertExtraUpdated() bool
- func (table *PostgresTable) HasStructCopy() bool
- func (table *PostgresTable) HasUpdateExtraUpdated() 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) GetCreateManySqlContent ¶
func (table *PostgresTable) GetCreateManySqlContent() string
func (*PostgresTable) GetCreateManySqlName ¶
func (table *PostgresTable) GetCreateManySqlName() string
func (*PostgresTable) GetCreateSqlContent ¶
func (table *PostgresTable) GetCreateSqlContent() string
func (*PostgresTable) GetCreateSqlName ¶
func (table *PostgresTable) GetCreateSqlName() string
func (*PostgresTable) GetDeleteHardSqlContent ¶
func (table *PostgresTable) GetDeleteHardSqlContent() string
func (*PostgresTable) GetDeleteHardSqlName ¶
func (table *PostgresTable) GetDeleteHardSqlName() 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) GetNow ¶
func (table *PostgresTable) GetNow() string
func (*PostgresTable) GetPrimaryKeyConstructors ¶
func (table *PostgresTable) GetPrimaryKeyConstructors() []PrimaryFieldInit
func (*PostgresTable) GetSelectPrimarySql ¶
func (table *PostgresTable) GetSelectPrimarySql() []SelectQuery
func (*PostgresTable) GetSelectSql ¶
func (table *PostgresTable) GetSelectSql() []SelectQueryRef
func (*PostgresTable) GetTableName ¶
func (table *PostgresTable) GetTableName() string
func (*PostgresTable) GetUpdateManySqlContent ¶
func (table *PostgresTable) GetUpdateManySqlContent() string
func (*PostgresTable) GetUpdateManySqlName ¶
func (table *PostgresTable) GetUpdateManySqlName() string
func (*PostgresTable) GetUpdateSqlContent ¶
func (table *PostgresTable) GetUpdateSqlContent() string
func (*PostgresTable) GetUpdateSqlName ¶
func (table *PostgresTable) GetUpdateSqlName() string
func (*PostgresTable) GetUpsertManySqlContent ¶
func (table *PostgresTable) GetUpsertManySqlContent() string
func (*PostgresTable) GetUpsertManySqlName ¶
func (table *PostgresTable) GetUpsertManySqlName() string
func (*PostgresTable) GetUpsertSqlContent ¶
func (table *PostgresTable) GetUpsertSqlContent() string
func (*PostgresTable) GetUpsertSqlName ¶
func (table *PostgresTable) GetUpsertSqlName() string
func (*PostgresTable) HasInsertExtraCreated ¶
func (table *PostgresTable) HasInsertExtraCreated() bool
func (*PostgresTable) HasInsertExtraUpdated ¶
func (table *PostgresTable) HasInsertExtraUpdated() bool
func (*PostgresTable) HasStructCopy ¶
func (table *PostgresTable) HasStructCopy() bool
func (*PostgresTable) HasUpdateExtraUpdated ¶
func (table *PostgresTable) HasUpdateExtraUpdated() 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.