loaders

package
v0.0.0-...-c4aa40a Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2016 License: MIT Imports: 12 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 postgres type into a Go type based on the column definition.

func MsProcessDSN

func MsProcessDSN(u *url.URL, protocol string) string

MsProcessDSN processes a mssql DSN.

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 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 MyProcessDSN

func MyProcessDSN(u *url.URL, protocol string) string

MyProcessDSN processes a mysql DSN.

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 PgIndexColumns

func PgIndexColumns(db models.XODB, schema string, table string, index string) ([]*models.IndexColumn, error)

PgIndexColumnList 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 SqParseType

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

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

func SqProcessDSN

func SqProcessDSN(u *url.URL, protocol string) string

SqProcessDSN processes a sqlite DSN.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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