This repository has been archived on 2025-02-19. You can view files and clone it, but cannot push or open issues or pull requests.
Matheus Sampaio Queiroga e6cab72032 Init pages and two routers
Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
2024-02-03 21:12:51 -03:00

4 lines
220 B
TypeScript

import { Sequelize } from "sequelize";
const { DB_CONNECTION = "sqlite:memory:" } = process.env;
export const dbConection: Sequelize = global["DB_CONNECTION"] || (global["DB_CONNECTION"] = new Sequelize(DB_CONNECTION));