Spaces:
Sleeping
Sleeping
File size: 380 Bytes
57a889c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | import { Global, Module } from '@nestjs/common';
import { DatabaseService } from './database.service';
/**
* Global so every migrated module can inject DatabaseService without re-importing.
* Wraps the existing better-sqlite3 singleton (no new connection).
*/
@Global()
@Module({
providers: [DatabaseService],
exports: [DatabaseService],
})
export class DatabaseModule {}
|