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

[Feature Request] Allow connection without password #337

Closed shousper closed 6 years ago

shousper commented 6 years ago

For local development and CI we don't use a password for our database connections. Could this requirement could be lifted from sqlboiler?

Alternatively, supplying the DSN instead of individual connection string components could be good 👍

Thoughts? :)

aarondl commented 6 years ago

I would consider having a DSN parameter that when present took precedence over the piecemeal ones. Later we could maybe deprecate the individual args if it was desirable. I'm not really sure why they ended up separate, hold over from rails world I guess.

aarondl commented 6 years ago

@shousper Leaving this for someone to PR.

aarondl commented 6 years ago

See #351 comments for why DSN won't be added as a feature.

PR #347 fixes this issue and will be merged shortly.