Versions in this module Expand all Collapse all v5 v5.0.6 Mar 9, 2021 v5.0.5 Mar 8, 2021 v5.0.4 Mar 8, 2021 v5.0.3 Mar 8, 2021 v5.0.2 Mar 8, 2021 v5.0.1 Mar 8, 2021 Changes in this version + const ConfigBlacklist + const ConfigDBName + const ConfigHost + const ConfigPass + const ConfigPort + const ConfigSSLMode + const ConfigSchema + const ConfigUser + const ConfigWhitelist + 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 RegisterBinary(name, path string) + func RegisterFromInit(name string, driver Interface) + func TablesFromList(list []string) []string + 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) 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 + 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 + Name string + PKey *PrimaryKey + SchemaName string + ToManyRelationships []ToManyRelationship + ToOneRelationships []ToOneRelationship + func GetTable(tables []Table, name string) (tbl Table) + func Tables(c Constructor, schema string, whitelist, blacklist []string) ([]Table, error) + func (t Table) CanLastInsertID() bool + func (t Table) CanSoftDelete() bool + func (t Table) GetColumn(name string) (col 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 Other modules containing this package github.com/RedVentures/sqlboiler