* Close all provider connections
()
| 200 | * Close all provider connections |
| 201 | */ |
| 202 | static async closeAll(): Promise<void> { |
| 203 | const promises: Promise<void>[] = []; |
| 204 | |
| 205 | if (this.graphProvider) { |
| 206 | promises.push(this.graphProvider.close()); |
| 207 | } |
| 208 | if (this.vectorProvider) { |
| 209 | promises.push(this.vectorProvider.close()); |
| 210 | } |
| 211 | |
| 212 | await Promise.all(promises); |
| 213 | |
| 214 | // Reset initialization flags |
| 215 | this.schemaInitialized = false; |
| 216 | this.vectorInfrastructureInitialized = false; |
| 217 | } |
| 218 | } |