This commit is contained in:
Leon Zeng
2024-04-09 15:18:18 +08:00
commit 313b997903
52 changed files with 8569 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
import { TypeOrmModuleOptions } from '@nestjs/typeorm';
import { resolve } from 'path';
export const database = (): TypeOrmModuleOptions => ({
type: 'better-sqlite3',
database: resolve(__dirname, '../../database.db'),
synchronize: true,
autoLoadEntities: true,
})
+1
View File
@@ -0,0 +1 @@
export * from './database.config';