Extract the catalog from the database.
(
BenchmarkModule benchmarkModule, DatabaseType databaseType, Connection connection)
| 543 | |
| 544 | /** Extract the catalog from the database. */ |
| 545 | public static AbstractCatalog getCatalog( |
| 546 | BenchmarkModule benchmarkModule, DatabaseType databaseType, Connection connection) |
| 547 | throws SQLException { |
| 548 | switch (databaseType) { |
| 549 | case NOISEPAGE: // fall-through |
| 550 | case HSQLDB: |
| 551 | return getCatalogHSQLDB(benchmarkModule); |
| 552 | default: |
| 553 | return getCatalogDirect(databaseType, connection); |
| 554 | } |
| 555 | } |
| 556 | |
| 557 | /** |
| 558 | * Create an in-memory instance of HSQLDB to extract all of the catalog information. |