db

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Engine *xorm.Engine

Engine 数据库引擎

Functions

func GetList

func GetList(session *xorm.Session, md IModel, pageIndex, pageSize int) (list *model.ListModel, err error)

GetList 获取分页数据

func NewSession

func NewSession() *xorm.Session

NewSession 创建新的数据库操作对象

Types

type IModel

type IModel interface {
	TableName() string
	NewItems() interface{}
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL