Nineya
Home
Blog
软著申请
Gorm create in batch On Conflict got error instance
2025-01-15 00:38:00
3884
Descriptionthe same question:https://github.com/go-gorm/gorm/issues/5754https://github.com/go-gorm/gorm/issues/3810My ex...
Gorm 关联删除可以递归吗
2025-01-15 00:37:58
898
type Class struct { Stus []*Score gorm:"foreignKey:StuID"}type Stu struct { StuID int64 Scores []*Score gorm:"f...
Gorm The return values of the framework and the results of MySQL's internal command-line execution are inconsistent.
2025-01-15 00:37:49
1314
Challenges encountered when using Sharding-Proxy for database sharding and table partitioningscreenshot:result:gorm retu...
Gorm Running AutoMigrate concurrently on the same model fails with various race conditions
2025-01-15 00:37:30
747
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/651DescriptionWhen AutoMigrate is called concurrently fro...
Gorm how to Execute multi update sql ?
2025-01-15 00:37:28
632
sql = `update chapters set parent_id=112812 where id=112770; update chapters set parent_id=112766 where id=112771;`er...
Gorm many2many doesn't work if one table has its key marked as readonly
2025-01-15 00:37:25
1600
GORM Playground LinkAbsolutely not.Descriptiontype ATable struct { ID int32 `gorm:"->;primaryKey"` Name s...
Gorm Production ready Database migration management (Make AutoMigrate production suitable)
2025-01-15 00:37:22
3421
Describe the featureExtend AutoMigrate to scan Schema/Model changes, generate SQL migration scripts automatically, and w...
Gorm CreateInBatches with []map[string]interface, If the key contains a 【.】 , then the insertion error will be reported
2025-01-15 00:37:19
2533
DescriptionWhen I use SQLite as the engine and use CreateInBatch to dynamically insert table data, I specify values as [...
Gorm The result of FindInBatches is incorrect when used with order.
2025-01-15 00:37:17
1518
DescriptionI'm not sure that is a bug. Now I have a table and the primary key is ip. I want to do batch execution in the...
Gorm Plugin to detect and/or prevent re-use of an instance/sesssion
2025-01-15 00:37:14
14789
Describe the featureA plugin which detects when a db instance is being re-used for multiple finalizer methods. The plug...
Gorm use create() batch insert have error
2025-01-15 00:37:11
3375
Your QuestionI have a large array that needs to be inserted into mysql, so I wrote a function, passing the array as a pa...
Gorm How to save nest model and nest array and what is best practice
2025-01-15 00:36:57
3096
Your QuestionI have model like type Rect struct { X1 float64 `json:"x1"` Y1 float64 `json:"...
Gorm 并发场景下,使用raw方法执行sql会报错expected 2 arguments, got 4; invalid value, should be pointer to struct or slice;
2025-01-15 00:36:55
3878
.Raw("select sum(points) as cnt from xx where task_id in ? ", taskIDList).Find(&sum).ErrorComment From: github-actio...
Gorm The model parameter didn't make conditions
2025-01-15 00:36:52
801
Your QuestionWhen I passed an object assigned 10 to its primary key ID, the sql generated is not added condition.Code:t...
Gorm 如何控制不调用常量的String?
2025-01-15 00:36:05
347
`type BalanceLogType uint8const ( BalanceLogTypeTest BalanceLogType = 1 // 测试)func (a BalanceLogType) String() string...
Gorm gorm gen remove SetDefault
2025-01-15 00:36:02
1039
type ServiceContext struct { Config config.Config Dao *do.Query}func NewServiceContext(c config.Config) (*ServiceC...
Gorm How to handle conflict clause in association upsert?
2025-01-15 00:36:00
5892
Context and questionI'm using Gorm v1 in my project and I'm currently migrating from the v1 to the v2 (v1.20.2). I've mi...
Gorm Where(User{Name:"name"}) results in "where pets.name='name'"
2025-01-15 00:35:57
1525
I'm not sure if this is a bug in gorm or just missing from documentation for breaking changes between gorm v1 and v2. Th...
Gorm 更新到最新版本后,使用Gen Guides项目就无法启动项目
2025-01-15 00:35:54
3060
出现问题无法正常启动项目的版本gorm.io/datatypes v1.2.0gorm.io/gen v0.3.23gorm.io/gorm v1.25.5gorm.io/plugin/dbresolver v1.4.7gorm.io/dr...
Gorm commands out of sync. You can't run this command now
2025-01-15 00:35:51
5620
Your QuestionSometimes it happens:1. commands out of sync. You can't run this command now2. busy buffergo version:go1.16...
上一页
下一页
1
…
936
937
938
939
940
…
2246
.