Gorm [MySQL] TIMESTAMP NULL DEFAULT NULL 类型无法使用 gorm tag 创建

Your Question目标表结构CREATE TABLE `test` ( `id` INT ( 11 ) AUTO_INCREMENT NOT NULL, `name` VARCHAR ( 20 ) NULL DEFAUL...

Gorm Rollback logic error in "func (db *DB) Transaction"

GORM Playground LinkReference issue - playground link to followDescriptionIn finisher_api.go: 644 defer func() { ...

Gorm 单独where引起的查询bug

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/777Description第二个First没有查询toys表func TestGORM(t *testing.T...

Gorm about time.Time question

Your Questiontype Remind struct { ID uint `gorm:"column:id;primaryKey;autoIncrement" json:"i...

Gorm Feature: Support GORM elasticsearch driver?

Describe the featureSupport GORM elasticsearch driver?like:* https://github.com/go-gorm/clickhouse* https://github.com/g...

Gorm ScyllaDB support

Describe the featureIt could be really nice if there were a driver for ScyllaDBMotivationRight now I'm using postgres bu...

Gorm Support for SurrealDB

Describe the featureWe need support for SurrealDBMotivationSurrealDB (https://surrealdb.com) is an emerging DB in NewSql...

Gorm Add YDB support

Describe the featureAdd support for YDBYDB is a versatile open source Distributed SQL Database that combines high availa...

Gorm Support libsql/Turso

Describe the featureUnless I am mistaken, Gorm does not support a network connected SQLite database, specifically libsql...

Gorm Support for SurrealDB

Describe the featureSupport for SurrealDBMotivationSurrealDB is becoming popular in NewSQL paradigm hence favorite SDK l...

Gorm Gorm callbacks using raw() or native query not worked

My Code`package main import ( "context" "fmt" "gorm.io/driver/postgres" "gorm.io/gorm" "log" ...

Gorm Association Deletion is not working as expected.

Your QuestionI have models as follows, type MuscleGroup struct { gorm.Model // Embedding gorm.Model Muscle...

Gorm 使用 save 更新已有数据为什么需要传 created_at ? 做成在 更新时忽略 created_at 会不会更好一些

Comment From: hhstu尝试使用以下方法:CreatedAt time.Time `json:"created_at" gorm:"<-:create"`这会导致用 sa...

Gorm Order func accept interface{} type but it not order and not error when the value is not an expected type. so why not change it or add a new func.

Describe the featureThe order func is this:func (db *DB) Order(value interface{}) (tx *DB) { tx = db.getInstance() ...

Gorm How to preload in many to many with the condition

Your Questionlet me explain the problem with an examplei have user and course in many to many relationship. every user c...

Gorm Can i filter preload inside children?

Your QuestionCan i filter preload inside children ?My Modeltype MasterLayanan struct { ID int ...

Gorm Remove double quotes from generated SQL to support lowercase table and column names

I have a feature request regarding the SQL generated by GORM. Currently, GORM encloses table and column names in double ...

Gorm GORM connects to "postgres" db instead of explicitly specified

Your Questionfunc Connect(cfg *Config) (db *gorm.DB, err error) { dsn := fmt.Sprintf( "host=%s user=%s pa...

Gorm Select Joins combined with same 'where' conditions twice when called 'Scan' more than two times

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/442DescriptionWhen I tried to get parent and its child by...

Gorm Bulk & Nested firstOrCreate With Association

Your QuestionHi there! I'm working on optimizing a worker that is responsible for importing records into the DB from an ...
上一页 下一页
.