Skip to content

Add option for dialects during project initialization #1528

Open

Description

@IArnaut2

Can you please add option for dialects during project initialization? By default init command generates a project that uses MySQL. What if I want to use sqlite3? I'd have to configure it manually, but I don't know what to put exactly. I've put

{
    "development": {
        "dialect": "sqlite",
        "database": ":memory:"
    }
}

but I'm not sure if that's correct. I've searched the issues and couldn't find exactly what I want.

Activity

  1. IArnaut2 commented on Mar 1, 2025

    @IArnaut2
    Author
    {
      "development": {
        "database": "dev.db",
        "dialect": "sqlite"
      },
      "test": {
        "database": "test.db"
        "dialect": "sqlite"
      },
      "production": {
        "database": "prod.db",
        "dialect": "sqlite"
      }
    }

    I've configured Sequelize myself, but no .sqlite3 files were created.

  2. IArnaut2 commented on Mar 1, 2025

    @IArnaut2
    Author

    I've created dev.db with sqlite3. But when I try migrating to the database, nothing has changed in dev.db file. So much for this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions