Documentation ¶
Index ¶
- type ColumnSchema
- type Dialect
- type MySQL
- func (d *MySQL) AutoIncrement() string
- func (d *MySQL) ColumnSchema(tables ...string) ([]ColumnSchema, error)
- func (d *MySQL) ColumnType(name string, size uint64, autoIncrement bool) (typ string, unsigned, null bool)
- func (d *MySQL) DataType(name string, size uint64, unsigned bool, prec, scale int64) string
- func (d *MySQL) Quote(s string) string
- func (d *MySQL) QuoteString(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnSchema ¶ added in v0.3.1
type ColumnSchema interface { TableName() string ColumnName() string DataType() string GoType() string IsDatetime() bool IsPrimaryKey() bool IsAutoIncrement() bool Index() (name string, unique bool, ok bool) Default() (string, bool) Size() (int64, bool) Precision() (int64, bool) Scale() (int64, bool) IsNullable() bool Extra() (string, bool) Comment() (string, bool) }
type Dialect ¶
type Dialect interface { ColumnSchema(tables ...string) ([]ColumnSchema, error) ColumnType(name string, size uint64, autoIncrement bool) (typ string, unsigned, null bool) DataType(name string, size uint64, unsigned bool, prec, scale int64) string Quote(s string) string QuoteString(s string) string AutoIncrement() string }
type MySQL ¶
type MySQL struct {
// contains filtered or unexported fields
}
func (*MySQL) AutoIncrement ¶ added in v0.2.0
func (*MySQL) ColumnSchema ¶ added in v0.3.1
func (d *MySQL) ColumnSchema(tables ...string) ([]ColumnSchema, error)
func (*MySQL) ColumnType ¶
func (*MySQL) QuoteString ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.