Skip to content
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

Support database url for PostgreSQL #39

Open
dzhlobo opened this issue Jan 31, 2017 · 0 comments
Open

Support database url for PostgreSQL #39

dzhlobo opened this issue Jan 31, 2017 · 0 comments

Comments

@dzhlobo
Copy link

dzhlobo commented Jan 31, 2017

For now we have to setup username, password, host and database name, etc:

  database PostgreSQL do |db|
    db.name               = "database_name"
    db.username           = "username"
    db.password           = "password"
    db.host               = "localhost"
    db.port               = 5432
  end

I suggest to add one option -- url. Which would look like a string username:password@localhost:5432/database_name:

  database PostgreSQL do |db|
    db.url = "my_username:password@localhost:5432/my_database_name"
  end
@dzhlobo dzhlobo changed the title Support database_url for PostgreSQL Support database url for PostgreSQL Jan 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant