123456789101112131415161718192021 |
- import { Sequelize } from 'sequelize';
- import { getDatabasePath } from '../preload/utils';
- const logging = () => {};
- const sequelize = new Sequelize({
- dialect: 'sqlite',
- storage: getDatabasePath(),
- logging,
- pool: {
- max: 20,
- min: 5,
- acquire: 100000,
- },
- });
- export default sequelize;
|