consts/database.go

33 lines
769 B
Go
Raw Normal View History

2024-06-17 11:18:27 +08:00
// Package consts ...
//
// Description : consts ...
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 2024-06-17 11:16
package consts
const (
2024-06-17 15:36:16 +08:00
DatabaseDriverMysql = "mysql" // mysql 数据库驱动
DatabaseDriverSqlite3 = "sqlite3" // sqlLite3 数据库驱动
2024-06-17 11:18:27 +08:00
)
2024-08-21 16:27:58 +08:00
const (
SqlTypeList = "list"
SqlTypeDetail = "detail"
SqlTypeCount = "count"
SqlTypeInsert = "insert"
SqlTypeUpdate = "update"
SqlTypeDelete = "delete"
)
2024-08-23 12:11:45 +08:00
// Equal , NotEqual , In , NotIn , Like, NotLike
const (
WhereOperateEqual = "equal" // =
WhereOperateNotEqual = "not_equal" // !=
WhereOperateIn = "in" // in
WhereOperateNotIn = "not_in" // not in
WhereOperateLike = "like" // like
WhereOperateNotLike = "not_like" // not like
)