Documentation ¶
Index ¶
- func GenDB(version uint, objectsInfo []sqlg.ObjectInfo, typesImport string, ...)
- func GenDBFixtures(version uint, objectsInfo []sqlg.ObjectInfo, typesImport string, ...)
- type CreateFixtureColInfo
- type CreateFixtureDDL
- type CreateFixtureData
- type CreateFixtureSequence
- type CreateFixtureTableInfo
- type DDLData
- type DDLDataTable
- type DDLDataTableSequence
- type DDLGenericData
- type DDLGenericDataColInfo
- type DDLGenericDataTableInfo
- type DMLData
- type DMLDataTable
- type DMLDataTableJSON
- type DMLDataTableMapField
- type DMLDataTableSequence
- type DMLGenericData
- type DMLGenericDataTable
- type MethodsData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenDB ¶
func GenDB(version uint, objectsInfo []sqlg.ObjectInfo, typesImport string, additionalImports []string)
func GenDBFixtures ¶ added in v0.9.0
func GenDBFixtures(version uint, objectsInfo []sqlg.ObjectInfo, typesImport string, additionalImports []string)
Types ¶
type CreateFixtureColInfo ¶ added in v0.9.0
type CreateFixtureDDL ¶ added in v0.9.0
type CreateFixtureData ¶ added in v0.9.0
type CreateFixtureData struct { DDL map[string][]string `json:"ddl"` Sequences []CreateFixtureSequence `json:"sequences"` Tables []CreateFixtureTableInfo `json:"tables"` }
type CreateFixtureSequence ¶ added in v0.9.0
type CreateFixtureTableInfo ¶ added in v0.9.0
type CreateFixtureTableInfo struct { Name string `json:"name"` Columns []CreateFixtureColInfo `json:"columns"` }
type DDLData ¶
type DDLData struct { Version uint DBType string TableDefs []DDLDataTable IndexDefs []string }
type DDLDataTable ¶
type DDLDataTableSequence ¶ added in v0.9.0
type DDLGenericData ¶ added in v0.9.0
type DDLGenericData struct { Version uint Sequences []DDLDataTableSequence Tables []DDLGenericDataTableInfo Data map[sql.Type]DDLData }
type DDLGenericDataColInfo ¶ added in v0.9.0
type DDLGenericDataTableInfo ¶ added in v0.9.0
type DDLGenericDataTableInfo struct { Name string Columns []DDLGenericDataColInfo }
type DMLDataTable ¶
type DMLDataTable struct { Table string LowerTable string ObjectName string LowerObjectName string LowerCamelObjectName string InsertColumns []string FuncPrefix string InsertFuncParams []string UpdateFuncParams []string InsertVarNames []string UpdateVarNames []string InsertValues []string UpdateSets []string RawFuncParams []string RawInsertColumns []string RawInsertValues []string RawInsertVarNames []string JSONValues []DMLDataTableJSON }
type DMLDataTableJSON ¶
type DMLDataTableMapField ¶
type DMLDataTableSequence ¶
type DMLGenericData ¶
type DMLGenericData struct { TableDefs []DMLGenericDataTable TypesImport string AdditionalImports []string HasJSON bool HasSequences bool }
type DMLGenericDataTable ¶
type DMLGenericDataTable struct { Table string ObjectName string LowerObjectName string LowerCamelObjectName string SelectColumns []string ScanFields []string MapFields []DMLDataTableMapField FuncPrefix string JSONValues []DMLDataTableJSON Sequences []DMLDataTableSequence }
type MethodsData ¶
Click to show internal directories.
Click to hide internal directories.