Skip to content

Usage with Sequelize? #4

Description

@bradisbell

Any tips on using this module with Sequelize? I'm trying like so:

const db = new Sequelize({
  dialect: 'sqlite',
  dialectModule: {
    Database: require('@farjs/better-sqlite3-wrapper')
  },
  storage: `${process.cwd()}/db.sqlite`
});

Under Node.js, this results in an immediate process exit. Under Bun, there is an SQLITE_MISUSE error.

I'm guessing there's another thing to two that needs shimmed, but I thought I'd see if you've already tried the module with Sequelize.

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