CoastalCommitsPastes/server/lib/sequelize.ts

10 lines
286 B
TypeScript
Raw Normal View History

import { Sequelize } from 'sequelize-typescript';
2022-03-06 19:46:59 -05:00
export const sequelize = new Sequelize({
dialect: 'sqlite',
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
});