Documentation ¶
Index ¶
- Constants
- type Column
- type DB
- type DBSQL
- func (s *DBSQL) BatchCreate(table TableName, cols []Column, vals [][]interface{}) error
- func (s *DBSQL) Close() error
- func (s *DBSQL) Count(table TableName, dest interface{}) error
- func (s *DBSQL) Create(table TableName, condition map[Column]interface{}) error
- func (s *DBSQL) Delete(table TableName, condition map[Column]interface{}) error
- func (s *DBSQL) Group(table TableName, column Column, dest interface{}) error
- func (s *DBSQL) Read(table TableName, condition map[Column]interface{}, offset int, limit int, ...) error
- func (s *DBSQL) Update(table TableName, condition map[Column]interface{}) error
- type DbStore
- type TableName
Constants ¶
View Source
const LikeSign = "_like_"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBSQL ¶
type DBSQL struct {
// contains filtered or unexported fields
}
func (*DBSQL) BatchCreate ¶ added in v1.1.1
type DbStore ¶
type DbStore interface { io.Closer Create(table TableName, condition map[Column]interface{}) error BatchCreate(table TableName, cols []Column, vals [][]interface{}) error Read(table TableName, condition map[Column]interface{}, offset int, limit int, order Column, dest interface{}) error Update(table TableName, condition map[Column]interface{}) error Delete(table TableName, condition map[Column]interface{}) error Count(table TableName, dest interface{}) error Group(table TableName, column Column, dest interface{}) error }
Click to show internal directories.
Click to hide internal directories.