Documentation ¶
Index ¶
- Constants
- func Migrate(path string)
- func Unfold(path string) (res []string)
- type Attr
- type Field
- func (f *Field) BuildSql() string
- func (f *Field) Comment(comment string) *Field
- func (f *Field) Default(value interface{}) *Field
- func (f *Field) GetSql() string
- func (f *Field) ID() *Field
- func (f *Field) Length(length int) *Field
- func (f *Field) Places(places int) *Field
- func (f *Field) Typ(typ uint) *Field
- func (f *Field) Unsigned() *Field
- type Fields
- type Schema
- func (s *Schema) Create() (err error)
- func (s *Schema) Decimal(name string) *Field
- func (s *Schema) Double(name string) *Field
- func (s *Schema) Enum(name string) *Field
- func (s *Schema) Float(name string) *Field
- func (s *Schema) ID(name string) *Field
- func (s *Schema) Int(name string) *Field
- func (s *Schema) Int16(name string) *Field
- func (s *Schema) Int32(name string) *Field
- func (s *Schema) Int64(name string) *Field
- func (s *Schema) Int8(name string) *Field
- func (s *Schema) Mutation() (err error)
- func (s *Schema) Name(name string) *Schema
- func (s *Schema) NewField(name string) *Field
- func (s *Schema) RefreshOriginals() (err error)
- func (s *Schema) String(name string) *Field
- func (s *Schema) Uint(name string) *Field
- func (s *Schema) Uint16(name string) *Field
- func (s *Schema) Uint32(name string) *Field
- func (s *Schema) Uint64(name string) *Field
- func (s *Schema) Uint8(name string) *Field
Constants ¶
View Source
const ( Int = iota Int8 Int16 Int32 Int64 UInt UInt8 UInt16 UInt32 UInt64 String Float32 Float64 Decimal Time TimePtr )
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.