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