SQLite

For SQLite compatibility you'll needsqlite3@^4.0.0. Configure Sequelize like this:

  1. const sequelize = new Sequelize('database', 'username', 'password', {
  2. // sqlite! now!
  3. dialect: 'sqlite',
  4. // the storage engine for sqlite
  5. // - default ':memory:'
  6. storage: 'path/to/database.sqlite'
  7. })

Or you can use a connection string as well with a path:

  1. const sequelize = new Sequelize('sqlite:/home/abs/path/dbname.db')
  2. const sequelize = new Sequelize('sqlite:relativePath/dbname.db')