Documentation ¶
Index ¶
- Constants
- Variables
- func FillFieldsWithTime(m bson.M, fields []string, timeFormat []string, ts ...time.Time) bson.M
- func Get(connName ...string) (*orm, error)
- func HandleCreateModel(model Model) bson.M
- func HandleDeleteData(model Model) bson.M
- func HandleUpdateData(model Model, updateData interface{}) bson.M
- func HandleWhereData(model Model, whereData interface{}) bson.M
- func SetPageSizeMax(n int)
- type Model
Constants ¶
View Source
const ( TimeFormat = "time_format" CreateTime = "create_time" UpdateTime = "update_time" DeleteTime = "delete_time" )
Variables ¶
View Source
var Bson = new(bsonConv)
Functions ¶
func FillFieldsWithTime ¶
func HandleCreateModel ¶
func HandleDeleteData ¶
func HandleUpdateData ¶
func HandleWhereData ¶
func SetPageSizeMax ¶
func SetPageSizeMax(n int)
Types ¶
Click to show internal directories.
Click to hide internal directories.