• Joined on 2020-08-07
gepeng closed issue xorm/xorm#2100 2022-01-14 08:53:16 +00:00
How to add quotation marks to the field names in the generated SQL
gepeng commented on issue xorm/xorm#2100 2022-01-14 08:53:16 +00:00
How to add quotation marks to the field names in the generated SQL

x.SetQuotePolicy(dialects.QuotePolicyAlways)

gepeng opened issue xorm/xorm#2100 2022-01-14 08:35:19 +00:00
How to add quotation marks to the field names in the generated SQL
gepeng closed issue xorm/xorm#2080 2021-12-16 03:23:35 +00:00
ModifyColumnSQL
gepeng opened issue xorm/xorm#2083 2021-12-16 03:20:08 +00:00
convet.String2Time failed if string has date part only
gepeng opened issue xorm/xorm#2080 2021-12-08 11:11:02 +00:00
ModifyColumnSQL
gepeng opened issue xorm/xorm#2005 2021-07-22 02:27:56 +00:00
Error, tim zone, exec, time, xorm.exec("insert into abc (ctime) values(?)", time.Now())
gepeng commented on issue xorm/xorm#1897 2021-04-15 02:38:13 +00:00
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"})

gepeng closed issue xorm/xorm#1897 2021-04-15 02:38:13 +00:00
Delete() with a map[string]interface{} parameter
gepeng opened issue xorm/xorm#1897 2021-04-15 01:18:41 +00:00
Delete() with a map[string]interface{} parameter
gepeng closed issue xorm/xorm#1882 2021-03-29 04:37:35 +00:00
How to set different table name on calling sync()?
gepeng opened issue xorm/xorm#1883 2021-03-29 04:36:54 +00:00
solved!
gepeng opened issue xorm/xorm#1882 2021-03-29 03:46:40 +00:00
How to set different table name on calling sync()?
gepeng opened issue xorm/xorm#1769 2020-08-24 00:50:52 +00:00
建议在Session增加SetColumnMapper,方便支持使用map[string]interface{} 执行Update/Delete/Insert时,能够使用created/updated/deleted/version/...等特性
gepeng opened issue xorm/xorm#1768 2020-08-23 03:53:36 +00:00
extends tag 能否支持 map[string]interface{} 类型属性?
gepeng commented on issue xorm/xorm#1767 2020-08-23 03:38:34 +00:00
session.innerInsertMulti(bean) 是否可以支持map[string]interface{} 类型的批量插入?现在的批量插入效率低了一些。

如果是mysql,inser(beans []map[string]interface) 会生成多个"insert into table (fields...) values(?,?,...)"。 inert([]struct{...}) 生成的是insert into table (fields...) values(?,?,?...),(?,?,?...),...。效率会有数量级差别。

gepeng commented on issue xorm/xorm#1767 2020-08-23 03:32:34 +00:00
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 }

gepeng opened issue xorm/xorm#1767 2020-08-23 01:02:43 +00:00
session.innerInsertMulti(bean) 是否可以支持map[string]interface{} 类型的批量插入?现在的批量插入效率低了一些。