python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Gorm: Batch insert into ClickHouse with Array columns
I would like to batch-insert data into our ClickHouse database. Using gorm, I can easily use
type audit struct{
field1 string `json:"field1"`,
field2 string `json:"field2"`,
}
...

Duy Bui
Votes: 0
Answers: 1
ERRO[0003] ERROR: relation "public.databases" does not exist (SQLSTATE 42P01)
I am using gorm (Golang) to connect to my postgres database below the connection code
func NewDatabase(config *config.Config) *gorm.DB {
dsn := fmt.Sprintf(
"host=%s user=%s password=...

Sahil Paudel
Votes: 0
Answers: 1
DELETE USING in gorm?
The title pretty much said it all.
In Postgre we have DELETE FROM ... USING ... WHERE ...
In gorm, I can not see that option any where. I try to avoid sub select as much as possible
tuan
Votes: 0
Answers: 1
gorm AutoMigrate() add new primaryKey not woring
type Passport struct {
Uid int64 `gorm:"primaryKey"`
...
}
i used
dbMain.Set("gorm:table_options", "CHARSET=utf8mb4").AutoMigrate(new(Passport))
to creat...

Himawari_zou
Votes: 0
Answers: 0