Versions in this module Expand all Collapse all v4 v4.16.3 Nov 12, 2024 Changes in this version + const ConfigAddEnumTypes + const ConfigBlacklist + const ConfigConcurrency + const ConfigDBName + const ConfigEnumNullPrefix + const ConfigForeignKeys + const ConfigHost + const ConfigPass + const ConfigPort + const ConfigSSLMode + const ConfigSchema + const ConfigUnixSocket + const ConfigUser + const ConfigWhitelist + const DefaultConcurrency + func ColumnDBTypes(cols []Column) map[string]string + func ColumnNames(cols []Column) []string + func ColumnsFromList(list []string, tablename string) []string + func DefaultEnv(key, def string) string + func DriverMain(driver Interface) + func IsEnumDBType(dbType string) bool + func RegisterBinary(name, path string) + func RegisterBinaryFromCmdArg(arg string) (name, path string, err error) + func RegisterFromInit(name string, driver Interface) + func TablesFromList(list []string) []string + func TablesHaveNullableEnums(tables []Table) bool + type Column struct + ArrType *string + AutoGenerated bool + Comment string + DBType string + Default string + DomainName *string + FullDBType string + Name string + Nullable bool + Type string + UDTName string + Unique bool + Validated bool + func FilterColumnsByAuto(auto bool, columns []Column) []Column + func FilterColumnsByDefault(defaults bool, columns []Column) []Column + func FilterColumnsByEnum(columns []Column) []Column + type Config map[string]interface + func (c Config) DefaultInt(key string, def int) int + func (c Config) DefaultString(key, def string) string + func (c Config) Int(key string) (int, bool) + func (c Config) MustForeignKeys(key string) []ForeignKey + func (c Config) MustInt(key string) int + func (c Config) MustString(key string) string + func (c Config) String(key string) (string, bool) + func (c Config) StringSlice(key string) ([]string, bool) + type Constructor interface + Columns func(schema, tableName string, whitelist, blacklist []string) ([]Column, error) + ForeignKeyInfo func(schema, tableName string) ([]ForeignKey, error) + PrimaryKeyInfo func(schema, tableName string) (*PrimaryKey, error) + TableNames func(schema string, whitelist, blacklist []string) ([]string, error) + TranslateColumnType func(Column) Column + type DBInfo struct + Dialect Dialect + Schema string + Tables []Table + type Dialect struct + LQ rune + RQ rune + UseAutoColumns bool + UseCaseWhenExistsClause bool + UseDefaultKeyword bool + UseIndexPlaceholders bool + UseLastInsertID bool + UseOutputClause bool + UseSchema bool + UseTopClause bool + type ForeignKey struct + Column string + ForeignColumn string + ForeignColumnNullable bool + ForeignColumnUnique bool + ForeignTable string + Name string + Nullable bool + Table string + Unique bool + func CombineConfigAndDBForeignKeys(configForeignKeys []ForeignKey, tableName string, dbForeignKeys []ForeignKey) []ForeignKey + type Interface interface + Assemble func(config Config) (*DBInfo, error) + Imports func() (importers.Collection, error) + Templates func() (map[string]string, error) + func GetDriver(name string) Interface + type PrimaryKey struct + Columns []string + Name string + type SQLColumnDef struct + Name string + Type string + func (s SQLColumnDef) String() string + type SQLColumnDefs []SQLColumnDef + func SQLColDefinitions(cols []Column, names []string) SQLColumnDefs + func (s SQLColumnDefs) Names() []string + func (s SQLColumnDefs) Types() []string + type Table struct + Columns []Column + FKeys []ForeignKey + IsJoinTable bool + IsView bool + Name string + PKey *PrimaryKey + SchemaName string + ToManyRelationships []ToManyRelationship + ToOneRelationships []ToOneRelationship + ViewCapabilities ViewCapabilities + func GetTable(tables []Table, name string) (tbl Table) + func Tables(c Constructor, schema string, whitelist, blacklist []string) ([]Table, error) + func TablesConcurrently(c Constructor, schema string, whitelist, blacklist []string, concurrency int) ([]Table, error) + func (t Table) CanLastInsertID() bool + func (t Table) CanSoftDelete(deleteColumn string) bool + func (t Table) GetColumn(name string) (col Column) + type TableColumnTypeTranslator interface + TranslateTableColumnType func(c Column, tableName string) Column + type ToManyRelationship struct + Column string + ForeignColumn string + ForeignColumnNullable bool + ForeignColumnUnique bool + ForeignTable string + JoinForeignColumn string + JoinForeignColumnNullable bool + JoinForeignColumnUnique bool + JoinForeignFKeyName string + JoinLocalColumn string + JoinLocalColumnNullable bool + JoinLocalColumnUnique bool + JoinLocalFKeyName string + JoinTable string + Name string + Nullable bool + Table string + ToJoinTable bool + Unique bool + func ToManyRelationships(table string, tables []Table) []ToManyRelationship + type ToOneRelationship struct + Column string + ForeignColumn string + ForeignColumnNullable bool + ForeignColumnUnique bool + ForeignTable string + Name string + Nullable bool + Table string + Unique bool + func ToOneRelationships(table string, tables []Table) []ToOneRelationship + type ViewCapabilities struct + CanInsert bool + CanUpsert bool + type ViewConstructor interface + TranslateColumnType func(Column) Column + ViewCapabilities func(schema, viewName string) (ViewCapabilities, error) + ViewColumns func(schema, tableName string, whitelist, blacklist []string) ([]Column, error) + ViewNames func(schema string, whitelist, blacklist []string) ([]string, error) v4.16.3-alpha3 Nov 10, 2024 v4.16.3-alpha2 Nov 9, 2024 v4.16.3-alpha1 Nov 9, 2024 Other modules containing this package github.com/myron-meng/sqlboiler