Documentation ¶
Index ¶
- type Dao
- type Impl
- func (i Impl) All() (data []interface{}, err error)
- func (i Impl) Count() (num int64, err error)
- func (i Impl) Create() (err error)
- func (i Impl) CreateOrUpdate(primaryKeys []string, updateFields []string) (err error)
- func (i Impl) Filter(filter map[string]interface{}) Dao
- func (i Impl) Get() (data interface{}, err error)
- func (i Impl) Limit(pageSize, pageNum int64) Dao
- func (i Impl) MTag() string
- func (i Impl) Model() interface{}
- func (i Impl) OrderBy(orderBy []string) Dao
- func (i Impl) Remove(condition map[string]interface{}) (num int64, err error)
- func (i Impl) Set(conf map[string]interface{}) Dao
- func (i Impl) TableName() string
- func (i Impl) Update(primaryKeys []string, updateFields []string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao interface { Model() interface{} MTag() string Set(conf map[string]interface{}) Dao Filter(filter map[string]interface{}) Dao OrderBy(orderBy []string) Dao Limit(pageSize, pageNum int64) Dao Create() error Remove(condition map[string]interface{}) (num int64, err error) Update(primaryKeys []string, updateFields []string) error CreateOrUpdate(primaryKeys []string, updateFields []string) (err error) Count() (int64, error) Get() (interface{}, error) All() ([]interface{}, error) }
Click to show internal directories.
Click to hide internal directories.