Documentation ¶
Index ¶
- func GetDbTypes(opts []interface{}) map[string]string
- func Read(source interface{}, query string, opts ...interface{}) (*tables.Table, error)
- func SqlCreateQuery(t *tables.Table, table string, opts ...interface{}) string
- func SqlDropQuery(table string, opts ...interface{}) string
- func SqlInsert(t *tables.Table, tx *sql.Tx, table string, opts ...interface{}) error
- func SqlTypeOf(tp reflect.Type, driver string) string
- func Write(source interface{}, t *tables.Table, table string, opts ...interface{}) error
- type AUTOINCREMENT
- type BIGINT
- type BOOLEAN
- type Batch
- type DATE
- type DATETIME
- type DECIMAL_
- type DOUBLE
- type Driver
- type FLOAT
- type INTEGER
- type IfExists_
- type PrimaryKey
- type SMALLINT
- type Schema
- type SqlBigint
- type SqlBool
- type SqlDouble
- type SqlFloat
- type SqlInteger
- type SqlScan
- type SqlSmall
- type SqlString
- type SqlTimestamp
- type TIMESTAMP
- type VARCHAR_
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDbTypes ¶
func SqlCreateQuery ¶
func SqlDropQuery ¶
Types ¶
type AUTOINCREMENT ¶
type AUTOINCREMENT string
type PrimaryKey ¶
type PrimaryKey string
type SqlDouble ¶
type SqlDouble struct {
sql.NullFloat64
}
type SqlFloat ¶
type SqlFloat struct {
sql.NullFloat64
}
type SqlInteger ¶
func (*SqlInteger) Reflect ¶
func (s *SqlInteger) Reflect() reflect.Type
func (*SqlInteger) Scan ¶
func (s *SqlInteger) Scan(value interface{}) error
type SqlString ¶
type SqlString struct {
sql.NullString
}
type SqlTimestamp ¶
func (*SqlTimestamp) Reflect ¶
func (s *SqlTimestamp) Reflect() reflect.Type
func (*SqlTimestamp) Scan ¶
func (s *SqlTimestamp) Scan(value interface{}) error
Click to show internal directories.
Click to hide internal directories.