what should i use with sequelize mysql mysql 2 or sqlite code example
Example 1: sequelize mariadb example
const sequelize = new Sequelize('database', 'username', 'password', {
dialect: 'mariadb',
dialectOptions: {
// Your mariadb options here
// connectTimeout: 1000
}
});
Example 2: sequelize sqlite example
const sequelize = new Sequelize('database', 'username', 'password', {
dialect: 'sqlite',
storage: 'path/to/database.sqlite' // or ':memory:'
dialectOptions: {
// Your sqlite3 options here
}
});