Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Bit = "BIT" TinyInt = "TINYINT" SmallInt = "SMALLINT" MediumInt = "MEDIUMINT" Int = "INT" Integer = "INTEGER" BigInt = "BIGINT" Enum = "ENUM" Set = "SET" Char = "CHAR" Varchar = "VARCHAR" NVarchar = "NVARCHAR" TinyText = "TINYTEXT" Text = "TEXT" NText = "NTEXT" Clob = "CLOB" MediumText = "MEDIUMTEXT" LongText = "LONGTEXT" Uuid = "UUID" UniqueIdentifier = "UNIQUEIDENTIFIER" SysName = "SYSNAME" Date = "DATE" DateTime = "DATETIME" Time = "TIME" TimeStamp = "TIMESTAMP" TimeStampz = "TIMESTAMPZ" Decimal = "DECIMAL" Numeric = "NUMERIC" Real = "REAL" Float = "FLOAT" Double = "DOUBLE" Binary = "BINARY" VarBinary = "VARBINARY" TinyBlob = "TINYBLOB" Blob = "BLOB" MediumBlob = "MEDIUMBLOB" LongBlob = "LONGBLOB" Bytea = "BYTEA" Bool = "BOOL" Boolean = "BOOLEAN" Serial = "SERIAL" BigSerial = "BIGSERIAL" Json = "JSON" Jsonb = "JSONB" )
Functions ¶
func SQLType2Type ¶
default sql type change to go types
Types ¶
type NameMapperFunc ¶
type Option ¶
type Option func(*Options)
func CreateTabelDSN ¶
func DataSource ¶
func NameMapper ¶
func NameMapper(nameMap NameMapperFunc) Option
func Tagger ¶
func Tagger(tagger TaggerFunc) Option
func TypeMapper ¶
func TypeMapper(typeMapper TypeMapperFunc) Option
type Options ¶
type Options struct { NameMap NameMapperFunc Tagger TaggerFunc TypeMapper TypeMapperFunc DSN string Driver string CreateTableDSN string }
type TaggerFunc ¶
type TypeMapperFunc ¶
Click to show internal directories.
Click to hide internal directories.