-
Notifications
You must be signed in to change notification settings - Fork 16
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
Adapter configuration #30
Comments
Yeah of course! I expect this list to be waaay longer in the future :) I would love to have similar configuration to the ruby's AR - through Though it would be nice to leave an option for 12factor. I.e.: there should be still a possibility to configure everything through environment variables, that are in certain format. For example, given this override_prefix: MYAPP
adapters:
postgres:
username: john
password: welcome
hostname: 127.0.0.1
port: 5432
timeout: 5000 # ms
pool: 10 You can for example override hostname with: |
Implementation for this should probably sit within ActiveRecord::Config.adapters.postgres.encoding? || "utf8" |
maybe config file name can be more specific: |
Maybe it would be nice to junk in different environments: override_prefix: MYAPP
environments:
development:
adapters:
postgres:
# ... |
Or maybe just have different names for files, like Elixir does:
|
I prefer the AR style |
We need to have a way to configure the underlying adapter. This is needed for
WDYT @waterlink
The text was updated successfully, but these errors were encountered: