Block a user
How to add quotation marks to the field names in the generated SQL
How to add quotation marks to the field names in the generated SQL
x.SetQuotePolicy(dialects.QuotePolicyAlways)
How to add quotation marks to the field names in the generated SQL
convet.String2Time failed if string has date part only
Error, tim zone, exec, time, xorm.exec("insert into abc (ctime) values(?)", time.Now())
Delete() with a map[string]interface{} parameter
type Any struct { Name string } )
func (this *Any) TableName() string { return this.Name }
... x.Where("id=?", 1).Delete(&Any{"user"})
Delete() with a map[string]interface{} parameter
Delete() with a map[string]interface{} parameter
How to set different table name on calling sync()?
How to set different table name on calling sync()?
建议在Session增加SetColumnMapper,方便支持使用map[string]interface{} 执行Update/Delete/Insert时,能够使用created/updated/deleted/version/...等特性
extends tag 能否支持 map[string]interface{} 类型属性?
session.innerInsertMulti(bean) 是否可以支持map[string]interface{} 类型的批量插入?现在的批量插入效率低了一些。
如果是mysql,inser(beans []map[string]interface) 会生成多个"insert into table (fields...) values(?,?,...)"。 inert([]struct{...}) 生成的是insert into table (fields...) values(?,?,?...),(?,?,?...),...。效率会有数量级差别。
session.innerInsertMulti(bean) 是否可以支持map[string]interface{} 类型的批量插入?现在的批量插入效率低了一些。
// Like codes followed. Beans may be a big array
func importer(x *xorm.Engine, tableName string, beans []map[string]interface{}) error { _, err:= x.Table(tableName).Insert(beans) return err }
session.innerInsertMulti(bean) 是否可以支持map[string]interface{} 类型的批量插入?现在的批量插入效率低了一些。