• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

safe-global / safe-client-gateway / 11462535097

22 Oct 2024 02:36PM UTC coverage: 90.264% (-1.4%) from 91.686%
11462535097

push

github

web-flow
Orm (#1942)

* Add TypeOrm support.
* Introduce a new query logger to TypeORM.
* Ensure TypeORM migrations run after locking the database during startup.
* Establish database connection only when the database module is registered.

2666 of 3269 branches covered (81.55%)

Branch coverage included in aggregate %.

133 of 275 new or added lines in 39 files covered. (48.36%)

1 existing line in 1 file now uncovered.

8849 of 9488 relevant lines covered (93.27%)

422.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.0
/src/datasources/db/v2/database-initialize.hook.ts
1
import { PostgresDatabaseService } from '@/datasources/db/v2/postgres-database.service';
104✔
2
import { Inject, Injectable, type OnModuleInit } from '@nestjs/common';
104✔
3

4
@Injectable()
5
export class DatabaseInitializeHook implements OnModuleInit {
104✔
6
  public constructor(
7
    @Inject(PostgresDatabaseService)
8
    private readonly postgresDatabaseService: PostgresDatabaseService,
16✔
9
  ) {}
10

11
  public async onModuleInit(): Promise<void> {
NEW
12
    await this.postgresDatabaseService.initializeDatabaseConnection();
×
13
  }
14
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc