python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
There is already an object named 'company_names' in the database
I use Gorm for Golang like this code,
func Connect() (*gorm.DB, error) {
var (
err error
db *gorm.DB
)
dsn := "sqlserver://User:12345@127.0.0.1:1433?database=gorm"
db, err = gorm.O...
sunny
Votes: 0
Answers: 0
Can you use golang-migrate with go's embed function?
I'm trying to use golang-migrate to migrate a sql file into my postgresql database. I'm likely doing this wrong, but when I run the command to migrate it says that no scheme is found:
$ go run ./cmd/...
Jon Leopard
Votes: 0
Answers: 1
Is there a way to achieve postgres table partitioning using gorm v2?
In gorm v2 https://gorm.io/docs/index.html, is there any way to specify that this table is partitioned by some column like https://pg.uptrace.dev/table-partitioning/?
Haresh Suralkar
Votes: 0
Answers: 1
How to pass variable value to shell script from go?
shell.sh
#!/bin/bash
npx create-react-app <project-name> --template typescript
run.go
func runScript(genErr *error) {
if *genErr != nil {
return
}
cmd := exec.Command("...
Ankitha shetty
Votes: 0
Answers: 1