Create first class database management APIs in hanami-db

オープン
#9 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
postgresql
領域
cli, database

調査の方向性

まず、Hanami-CLI のデータベース管理コマンドと、既存の Hanami DB の境界を追跡します。現在の shell-outs を、PostgreSQL の createdb を含むデータベースクライアントの CLI と比較し、CLI が委譲すべき公開操作を定義します。Hanami DB を通じてデータベースの作成、マイグレーション、削除が公開され、CLI コマンドが薄いままであれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
言語のデータがありません
スター
3
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

hanami/roadmap のほかの issue

hanami/roadmap の issue をすべて見る

似ている issue

CLI の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。