Documentation
¶
Index ¶
- Variables
- type Column
- func (c *Column) Add(field string) error
- func (c *Column) AddAt(field string, index int) error
- func (c *Column) AddAtWithDefault(field string, defaultValue string, index int) error
- func (c *Column) AddWithDefault(field string, defaultValue string) error
- func (c *Column) Alter(oldName string, newName string) error
- func (c *Column) AlterByIndex(index int, newName string) error
- func (c *Column) DeleteByIndex(index int) error
- func (c *Column) DeleteByName(name string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrColumnNotFound 列不存在 ErrColumnNotFound = errors.New("column not found") // ErrIndexOutOfRange 索引越界 ErrIndexOutOfRange = errors.New("index out of range") )
Functions ¶
This section is empty.
Types ¶
type Column ¶
type Column struct {
Path string
}
func (*Column) AddAtWithDefault ¶
AddAtWithDefault 添加带默认值的新列到指定位置
func (*Column) AddWithDefault ¶
AddWithDefault 添加带默认值的新列到末尾
func (*Column) AlterByIndex ¶
AlterByIndex 根据索引修改列名
func (*Column) DeleteByIndex ¶
DeleteByIndex 根据索引删除列
Click to show internal directories.
Click to hide internal directories.