Documentation ¶
Index ¶
- func MsParseType(args *internal.ArgType, dt string, nullable bool) (int, string, string)
- func MsQueryColumns(args *internal.ArgType, inspect []string) ([]*models.Column, error)
- func MsRelkind(relType internal.RelType) string
- func MsSchema(args *internal.ArgType) (string, error)
- func MsTables(db models.XODB, schema string, relkind string) ([]*models.Table, error)
- func MyEnumValues(db models.XODB, schema string, enum string) ([]*models.EnumValue, error)
- func MyParseType(args *internal.ArgType, dt string, nullable bool) (int, string, string)
- func MyQueryColumns(args *internal.ArgType, inspect []string) ([]*models.Column, error)
- func MyRelkind(relType internal.RelType) string
- func MySchema(args *internal.ArgType) (string, error)
- func MyTables(db models.XODB, schema string, relkind string) ([]*models.Table, error)
- func PgIndexColumns(db models.XODB, schema string, table string, index string) ([]*models.IndexColumn, error)
- func PgParseType(args *internal.ArgType, dt string, nullable bool) (int, string, string)
- func PgQueryColumns(args *internal.ArgType, inspect []string) ([]*models.Column, error)
- func PgQueryStrip(query []string, queryComments []string)
- func PgRelkind(relType internal.RelType) string
- func PgTables(db models.XODB, schema string, relkind string) ([]*models.Table, error)
- func SqParseType(args *internal.ArgType, dt string, nullable bool) (int, string, string)
- func SqQueryColumns(args *internal.ArgType, inspect []string) ([]*models.Column, error)
- func SqRelkind(relType internal.RelType) string
- func SqTableColumns(db models.XODB, schema string, table string) ([]*models.Column, error)
- func SqTables(db models.XODB, schema string, relkind string) ([]*models.Table, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MsParseType ¶
MsParseType parse a mssql type into a Go type based on the column definition.
func MsQueryColumns ¶
MsQueryColumns parses the query and generates a type for it.
func MsTables ¶
MsTables returns the MsSQL tables with the manual PK information added. ManualPk is true when the table's primary key is not an identity.
func MyEnumValues ¶
MyEnumValues loads the enum values.
func MyParseType ¶
MyParseType parse a mysql type into a Go type based on the column definition.
func MyQueryColumns ¶
MyQueryColumns parses the query and generates a type for it.
func MyTables ¶
MyTables returns the MySql tables with the manual PK information added. ManualPk is true when the table's primary key is not autoincrement.
func PgIndexColumns ¶
func PgIndexColumns(db models.XODB, schema string, table string, index string) ([]*models.IndexColumn, error)
PgIndexColumns returns the column list for an index.
func PgParseType ¶
PgParseType parse a postgres type into a Go type based on the column definition.
func PgQueryColumns ¶
PgQueryColumns parses the query and generates a type for it.
func PgQueryStrip ¶
PgQueryStrip strips stuff.
func PgTables ¶
PgTables returns the Postgres tables with the manual PK information added. ManualPk is true when the table does not have a sequence defined.
func SqParseType ¶
SqParseType parse a sqlite type into a Go type based on the column definition.
func SqQueryColumns ¶
SqQueryColumns parses a sqlite query and generates a type for it.
func SqTableColumns ¶
SqTableColumns returns the sqlite table column info.
Types ¶
This section is empty.