2022-03-20 23:09:38 -07:00
|
|
|
import { Sequelize } from 'sequelize-typescript';
|
2022-03-06 16:46:59 -08:00
|
|
|
|
|
|
|
export const sequelize = new Sequelize({
|
|
|
|
dialect: 'sqlite',
|
2022-03-20 23:09:38 -07:00
|
|
|
database: 'drift',
|
|
|
|
storage: process.env.MEMORY_DB === "true" ? ":memory:" : __dirname + './../drift.sqlite',
|
|
|
|
models: [__dirname + '/models'],
|
|
|
|
host: 'localhost',
|
2022-03-06 16:46:59 -08:00
|
|
|
});
|