Documentation
¶
Index ¶
- Constants
- Variables
- func Get() *connection
- func InsertData(table string, data DataMap) (int64, error)
- func UpdateData(table string, saveData, whereDate DataMap) (int64, error)
- type DataMap
- type Fields
- type Table
- func (this *Table) AddColumn(data []Fields)
- func (this *Table) Delete(key DataMap)
- func (this *Table) Insert(data DataMap) (int64, error)
- func (this *Table) PreColumn(data DataMap) DataMap
- func (this *Table) Query() ([]DataMap, error)
- func (this *Table) Record(key interface{}) (DataMap, error)
- func (this *Table) Save(data DataMap) (int64, error)
- func (this *Table) Update(data DataMap) (int64, error)
Constants ¶
View Source
const ( FieldType_String = 1 FieldType_Int = 2 FieldType_DATETIME = 3 )
Variables ¶
View Source
var (
ERROR_NOT_CONNECTION = errors.New("db not connection")
)
View Source
var ERROR_NOT_FOUND_RECORD = errors.New("NOT FOUND RECORD")
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.