-
Notifications
You must be signed in to change notification settings - Fork 5
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
DB access #12
Comments
PG Clienthttps://github.com/erleans/pgo is a library with a very simple interface. Pretty easy to wrap up in Gleam, at least at a low level. MigrationsUsing a separate tool for migrations seems a very sensible approach to reduce the amount of things needed to build today.
diesel_cli has a binary that is easy to use 👍 diesel docs are mostly explained in the context of rust projects and diesel 👎 DataMappingLeft as an unsolved problem at this stage Questions.
|
Turns out diesel is not easy to instal without cargo. But there is nothing in principle preventing using precompiled binaries diesel-rs/diesel#2379 A fallback could be a multistage build where the first step only installs diesel and copies accross to a working image based on the offical gleam image |
I would be happy to contribute both a migrations guide to MIdas and a DATABASE_URL support to pgo (or the Gleam wrapper). |
@lpil Both would be great, if you find the time. |
Opened up an issue on pgo for the suggestion of adding configuration by database_url erleans/pgo#34 |
This is the last issue for 0.2, I think I will probably do something ugly in the config file of this project until DATABASE_URL is usable everywhere |
This commit adds handling DB url in the template project. midas-framework/template@e4f227d#diff-db12b97059813e401c06928c7234d2c0R22-R30 It should be moved to midas lib before 0.2 |
There are several levels to this.
Questions
|
No description provided.
The text was updated successfully, but these errors were encountered: