Create first class database management APIs in hanami-db
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by tracing the database-management commands in Hanami-CLI and the existing Hanami DB boundaries. Compare the current shell-outs to database client CLIs, including createdb for PostgreSQL, and define the public operations that the CLI should delegate to. Done means database creation, migration, and deletion are exposed by Hanami DB while the CLI commands remain thin.
Written by the indexing model from the issue text.
Description
Right now all the methods for creating, migrating, deleting, etc. databases are spread across the various commands in Hanami-CLI.
We should make these real public APIs in the Hanami DB gem, and keep the db commands in the CLI as slim as possible, simply calling into these APIs.
At th same time time, we should look at directly talking to the database engine where possible, rather than shelling out to the database client CLIs (eg calling createdb and friends in Postgres’ case). Wrapping the ClIs is brittle, error prone and overly complicated to implement.
- Dominant language
- No language data
- Stars
- 3
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from hanami/roadmap
-
Difficulty 5/5 Over a week Newbie friendliness 28/100
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
resend/resend-chat-sdk#83 ·
Maintainers usually reply within 8 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
TigreGotico/phoonnx#1045 ·
Maintainers usually reply within 1 day