* @inheritDoc
(options?: { schema?: string })
| 114 | * @inheritDoc |
| 115 | */ |
| 116 | async getPending(options?: { schema?: string }): Promise<MigrationInfo[]> { |
| 117 | await this.init(); |
| 118 | const schema = options?.schema ?? this.options.schema; |
| 119 | this.storage.setRunSchema?.(schema); |
| 120 | |
| 121 | try { |
| 122 | const all = await this.discoverMigrations(); |
| 123 | const executed = new Set(await this.storage.executed()); |
| 124 | return all.filter(m => !executed.has(m.name)).map(m => ({ name: m.name, path: m.path })); |
| 125 | } finally { |
| 126 | this.storage.unsetRunSchema?.(); |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | /** |
| 131 | * @inheritDoc |
nothing calls this directly
no test coverage detected