Spaces:
Sleeping
Sleeping
| 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). | |
| */ | |
| () | |
| ({ | |
| providers: [DatabaseService], | |
| exports: [DatabaseService], | |
| }) | |
| export class DatabaseModule {} | |