loaders

package
v0.0.0-...-8c7b73d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MsParseType

func MsParseType(args *internal.ArgType, dt string, nullable bool) (int, string, string)

MsParseType parse a mssql type into a Go type based on the column definition.

func MsQueryColumns

func MsQueryColumns(args *internal.ArgType, inspect []string) ([]*models.Column, error)

MsQueryColumns parses the query and generates a type for it.

func MsRelkind

func MsRelkind(relType internal.RelType) string

MsRelkind returns the postgres string representation for RelType.

func MsSchema

func MsSchema(args *internal.ArgType) (string, error)

MsSchema retrieves the name of the current schema.

func MsTables

func MsTables(db models.XODB, schema string, relkind string) ([]*models.Table, error)

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

func MyEnumValues(db models.XODB, schema string, enum string) ([]*models.EnumValue, error)

MyEnumValues loads the enum values.

func MyParseType

func MyParseType(args *internal.ArgType, dt string, nullable bool) (int, string, string)

MyParseType parse a mysql type into a Go type based on the column definition.

func MyQueryColumns

func MyQueryColumns(args *internal.ArgType, inspect []string) ([]*models.Column, error)

MyQueryColumns parses the query and generates a type for it.

func MyRelkind

func MyRelkind(relType internal.RelType) string

MyRelkind returns the mysql string representation for RelType.

func MySchema

func MySchema(args *internal.ArgType) (string, error)

MySchema retrieves the name of the current schema.

func MyTables

func MyTables(db models.XODB, schema string, relkind string) ([]*models.Table, error)

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

func PgParseType(args *internal.ArgType, dt string, nullable bool) (int, string, string)

PgParseType parse a postgres type into a Go type based on the column definition.

func PgQueryColumns

func PgQueryColumns(args *internal.ArgType, inspect []string) ([]*models.Column, error)

PgQueryColumns parses the query and generates a type for it.

func PgQueryStrip

func PgQueryStrip(query []string, queryComments []string)

PgQueryStrip strips stuff.

func PgRelkind

func PgRelkind(relType internal.RelType) string

PgRelkind returns the postgres string representation for RelType.

func PgTables

func PgTables(db models.XODB, schema string, relkind string) ([]*models.Table, error)

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

func SqParseType(args *internal.ArgType, dt string, nullable bool) (int, string, string)

SqParseType parse a sqlite type into a Go type based on the column definition.

func SqQueryColumns

func SqQueryColumns(args *internal.ArgType, inspect []string) ([]*models.Column, error)

SqQueryColumns parses a sqlite query and generates a type for it.

func SqRelkind

func SqRelkind(relType internal.RelType) string

SqRelkind returns the sqlite string representation for RelType.

func SqTableColumns

func SqTableColumns(db models.XODB, schema string, table string) ([]*models.Column, error)

SqTableColumns returns the sqlite table column info.

func SqTables

func SqTables(db models.XODB, schema string, relkind string) ([]*models.Table, error)

SqTables returns the sqlite tables with the manual PK information added. ManualPk is true when the table's primary key is not autoincrement.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL