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: Remove need of installing local Postgres when using remote database #442
Comments
For context, see #200. I've run into issues with I wish there was some way we could use |
Just forked and got Problems I still see are the Generally I think it is problematic to force the user to have a local db installation. Remote databases are a common use case and in some environments users may not have the ability to install the databases' tools locally. |
https://www.postgresql.org/docs/9.6/static/reference-client.html
|
Yes, (under good circumstances) one can install the client only or even the full server. |
@micdahl If you can make this to happen via a PR, we'll be more than happy to accept it. I'm also wondering about |
@jodosha Pull request is available. |
@micdahl
I'm confused by this sentence ☝️ . I assumed that your problems with PG Please be aware that Is your PR an attempt to remove our limitations in production env? Thanks. |
Yes, generally, I think so. But even in production this would be helpful, I think. If the database related commands are disabled in production, the user has to create the tables manually? I think it would be more elegant if hanami would do the job. |
@micdahl It would be great if we can remove these issues in development with Docker. Please iterate again with that PR.
Nope. Of course We disabled destructive operations (eg |
@micdahl I use the very same Docker setup. As a workaround I have created noops for these commands in the application server, i.e.
This was necessary in order for the BTW how this problem (namely creation of the |
Closing as stale discussion. If someone would take care of this, we'll be more than happy to merge it. Thank you all. |
Hanami::Model::Migrator::PostgresAdapter
uses commands likecreatedb
anddropdb
which require a local Postgres installation, even when a non-local database is used.Would it be possible to use the corresponding SQL-queries (e.g.
CREATE DATABASE
) instead?The text was updated successfully, but these errors were encountered: