New issue
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
postgres - won't detect whether database exists #95
Comments
@kuchaguangjie hi, thanks for your bug report! Can you put the 2nd bug to another issue? |
@closetool |
@kuchaguangjie For the first issue, plz see below
|
@kuchaguangjie For the second issue, plz just use lower case, like |
@closetool see: https://gorm.io/docs/connecting_to_the_database.html#PostgreSQL |
@hsluoyz In official docs, |
@hsluoyz Thanks, for the db creation issue, after add 3rd param as Code: dsn := "host=localhost user=postgres password=mypswd port=5432 dbname=casbin sslmode=disable"
a, _ := gormadapter.NewAdapter("postgres", dsn, true)
ef, _ := casbin.NewEnforcer("/path/to/rcba_model.conf", a) |
Repeated database creation:
It will still trying create the database, even I have specified
dbname=casbin
in gorm dsn:Better create only if not exists yet, I guess.
BTW, the 2nd issue about timezone is moved to: #96
The text was updated successfully, but these errors were encountered: