Documentation
¶
Index ¶
- Constants
- Variables
- type Column
- func (c *Column) AutoIncrement() bool
- func (c *Column) AutoNow() bool
- func (c *Column) AutoNowAdd() bool
- func (c *Column) Decode(p []byte) (interface{}, error)
- func (c *Column) FullName() string
- func (c *Column) GetValue(v reflect.Value) (interface{}, error)
- func (c *Column) HasEncoding() bool
- func (c *Column) HasGetter() bool
- func (c *Column) HasSetter() bool
- func (c *Column) IsManyRelation() bool
- func (c *Column) IsOneRelation() bool
- func (c *Column) PrimaryKey() bool
- func (c *Column) Scan(v reflect.Value) interface{}
- func (c *Column) Set(v reflect.Value, i interface{}) error
- func (c *Column) SetValue(v reflect.Value, i interface{}) error
- type Columner
- type Table
- type Tabler
- type Througher
Constants ¶
View Source
const ( OneToOne = iota + 1 OneToMany ManyToOne ManyToMany ForeignKey = ManyToOne )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Column ¶
type Column struct {
Table *Table
Type reflect.Type
Index int
Field string
Name string // many_to_many is table name
Relation int
RelationType reflect.Type
RelationTable *Table
Valuer, Scanner bool
Getter, Setter int
GetType, SetType reflect.Type
GetError, SetError bool
GetPointer bool
Encoding string // json or gob
// many_to_many only
NameLeft, NameRight string
ThroughTable *Table
ThroughLeft, ThroughRight *Column
}
func (*Column) AutoIncrement ¶
func (*Column) AutoNowAdd ¶
func (*Column) HasEncoding ¶
func (*Column) IsManyRelation ¶
func (*Column) IsOneRelation ¶
func (*Column) PrimaryKey ¶
Click to show internal directories.
Click to hide internal directories.