Skip to content

SQLite relative path doesn't work with URI #965

@jooohny

Description

@jooohny

I'm working on Windows. I have my config file in root\db-migration\config.js. Where root is my abstract working directory. And it contains the following:

module.exports = {
    development: {
        storage: 'private/db/db.sqlite3',
        dialect: 'sqlite',
    },
};

When I migrate everything is ok and database file appears in correct directory: root\private\db\db.sqlite3.
Once I'm trying to configure it as URI (and that's exactly what I need) like:

module.exports = {
    development: {
        url: 'sqlite:private/db/db.sqlite3',
    },
};

.. and I expect sequelize-cli to do exactly the same thing. But it creates directories in my disk : D:\db\db.sqlite3. Or in D:\private\db\db.sqlite3 if I specify url: 'sqlite:./private/db/db.sqlite3'. I've also tried some deviations with file: or something - I'm only getting errors or facing the same result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions