Documentation ¶
Index ¶
- Variables
- func CreateUser(user *model.MouseUser) error
- func InitDatabase() (err error)
- type Columns
- type Cursor
- func (c *Cursor) Delete(v interface{}, where ...interface{}) error
- func (c *Cursor) Find(out interface{}, where ...interface{}) *Cursor
- func (c *Cursor) FindPagination(page, pageSize int, out interface{}, where ...interface{}) *Cursor
- func (c *Cursor) FindPaginationAndOrder(page, pageSize int, order string, out interface{}, where ...interface{}) (int64, error)
- func (c *Cursor) Insert(v interface{}) error
- func (c *Cursor) Like(field, name string) *Cursor
- func (c *Cursor) Llike(field, name string) *Cursor
- func (c *Cursor) MustFind(out interface{}, where ...interface{}) error
- func (c *Cursor) Order(value string) error
- func (c *Cursor) Page(current, pageSize int) *Cursor
- func (c *Cursor) Rlike(field, name string) *Cursor
- func (c *Cursor) Save(v interface{}) error
- func (c *Cursor) Select(query interface{}, args ...interface{}) *Cursor
- func (c *Cursor) Sql(v interface{}, sql string, params ...interface{}) error
- func (c *Cursor) Table(name string) *Cursor
- func (c *Cursor) Updates(v interface{}, attrs ...interface{}) (int64, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CreateUser ¶
func InitDatabase ¶
func InitDatabase() (err error)
Types ¶
type Cursor ¶
var (
Conn *Cursor
)
func (*Cursor) FindPagination ¶
FindPagination find with pagination
Click to show internal directories.
Click to hide internal directories.