Documentation ¶
Index ¶
- Constants
- func CalcMysqlBatchSize(data interface{}) int
- func Deserialize(sourceData []byte, destStruct interface{}) error
- func InitBatchSqlGeneration() *batchSqlGeneration
- func InitSqlGeneration(model schema.Tabler, selected Selected) *sqlGeneration
- func IsInnerStruct(structField reflect.StructField) bool
- type OperatorSymbol
- type Selected
Constants ¶
View Source
const ( BASIC_MODEL_CREATED_AT = "created_at" BASIC_MODEL_UPDATED_AT = "updated_at" BASIC_MODEL_DELETED_AT = "deleted_at" BASIC_MODEL_PRIMARY_KEY = "id" )
Variables ¶
This section is empty.
Functions ¶
func CalcMysqlBatchSize ¶
func CalcMysqlBatchSize(data interface{}) int
CalcMysqlBatchSize 批量插入时计算长度的
func Deserialize ¶
Deserialize ...
func InitBatchSqlGeneration ¶
func InitBatchSqlGeneration() *batchSqlGeneration
func InitSqlGeneration ¶
InitSqlGeneration 初始化
func IsInnerStruct ¶
func IsInnerStruct(structField reflect.StructField) bool
Types ¶
type OperatorSymbol ¶
type OperatorSymbol string
OperatorSymbol 。。。
const ( EQUAL OperatorSymbol = "=" LIKE OperatorSymbol = "like" IN OperatorSymbol = "in" NULL OperatorSymbol = "is null" NOT_NULL OperatorSymbol = "is not null" GREATER_THEN OperatorSymbol = ">" GREATER_THEN_EQUAL OperatorSymbol = ">=" LESS_THAN OperatorSymbol = "<" LESS_THAN_EQUAL OperatorSymbol = "<=" NOT_EQUAL OperatorSymbol = "<>" )
Click to show internal directories.
Click to hide internal directories.