Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Support Multiple databases create cli

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript, mysql
領域
cli, database

調査の方向性

Start with the sequelize db:create CLI entry point and the config.js example showing multiple named databases, then trace how the dialect is resolved for the command. Done means the command creates both configured databases and reports their names instead of raising the undefined-dialect error.

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

説明

What you are doing?

<config.js>

module.exports = {
  "development": {
    "databases": {
      "database1": {
        ...
        "dialect": "mysql"
      },
      "database2": {
        ...
        "dialect": "mysql"
      }
    }
  }
}

What do you expect to happen?

I want to input "sequelize db:create" in terminal

Loaded configuration file "config\config.js".
Using environment "development".
Database **database1, database2** created.

What is actually happening?

Just print Error message!!!
example...

ERROR: Dialect undefined does not support db:create / db:drop commands
I want "databases" set in config.js to be applied to create.

I know that read databases based on config.js and setting models in sequelize.
But cli doesn't work to create "databases" that setted within config.js.
Is there any way to do this(Create "databases" using cli or any other way)?

Dialect: mysql
Database version: Ver 8.0.28 for Win64 on x86_64
Sequelize CLI version: ^6.4.1
Sequelize version: ^6.19.0

主要言語
JavaScript
スター
2.6k
フォーク
524
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

sequelize/cli のほかの issue

sequelize/cli の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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