We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if err := orm.SetupConnections(orm.ConnectionConfig{ DB: db, Dialect: orm.Dialects.PostgreSQL, Entities: []orm.Entity{ //... }, DatabaseValidations: true, }); err != nil { log.Fatalf("orm.SetupConnections: %v", err) }
2023/10/04 14:52:44 orm.SetupConnections: pq: syntax error at or near "\"
The text was updated successfully, but these errors were encountered:
Looks like this happens because of "\dt" is failing with database/sql
database/sql
db, err := sql.Open("postgres", conf.DatabaseUrl) if err != nil { log.Fatal(err) } if _, err := db.Exec("\\dt"); err != nil { log.Fatalf("db.Exec: %v", err) } // 2023/10/04 14:57:35 db.Exec: pq: syntax error at or near "\"
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: