Skip to content

How can I default to sqlcipher4 with sequelize? #33

Description

@rohit5ram
const Sequelize = require("sequelize");
const db = new Sequelize({
    dialect: 'sqlite',
    storage: path.join(process.cwd(), "sample.db"),
    dialectModulePath: '@journeyapps/sqlcipher',
    logging: false,
    define: {
        freezeTableName: true
    }
});
db.query("PRAGMA key = 'password'");

I am not able to open the sample.db file with sqlitebrowser SQLCIPHER 4.
Screenshot from 2020-04-16 11-57-50

The only way its works is by adding the below line and then use SQLICIPHER 3 in sqlitebrowser
db.query('PRAGMA cipher_compatibility = 3'); Screenshot from 2020-04-16 11-58-50

Activity

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