volatiletech / sqlboiler

Generate a Go ORM tailored to your database schema.
BSD 3-Clause "New" or "Revised" License
6.73k stars 544 forks source link

Cannot create db #345

Closed alishaagupta closed 6 years ago

alishaagupta commented 6 years ago

If you're having a generation problem please answer these questions before submitting your issue. Thanks!

What version of SQLBoiler are you using (sqlboiler --version)?

If this happened at generation time what was the full SQLBoiler command you used to generate your models? (if not applicable leave blank)

createdb: could not connect to database template1: FATAL: Peer authentication failed for user "boiler"

If this happened at runtime what code produced the issue? (if not applicable leave blank)

What is the output of the command above with the -d flag added to it? (Provided you are comfortable sharing this, it contains a blueprint of your schema)

Please provide a relevant database schema so we can replicate your issue (Provided you are comfortable sharing this)

Further information. What did you do, what did you expect?

aarondl commented 6 years ago

This simply means you don't have postgres correctly configured to connect with the credentials you're providing in sqlboiler.toml. createdb is a program we call out to to make a copy of the database for running tests and it's not getting the right credentials. Also next time, please include more details in your bug report.