Package org.pgcodekeeper.core.loader
Class DatabaseLoader
java.lang.Object
org.pgcodekeeper.core.loader.DatabaseLoader
- Direct Known Subclasses:
JdbcLoaderBase,LibraryLoader,PgDumpLoader,ProjectLoader,TokenLoader
Abstract base class for database schema loaders.
Provides common functionality for loading database schemas with ANTLR task management
and error collection. Supports loading with or without full analysis.
-
Method Summary
Modifier and TypeMethodDescriptionstatic AbstractDatabaseCreates a new database instance based on the database type specified in settings.abstract AbstractDatabaseload()Loads database schema without performing full analysis.Loads database schema and performs full analysis.
-
Method Details
-
loadAndAnalyze
Loads database schema and performs full analysis.- Returns:
- the loaded and analyzed database schema
- Throws:
IOException- if database loading failsInterruptedException- if the loading process is interrupted
-
createDb
Creates a new database instance based on the database type specified in settings.- Parameters:
settings- configuration settings containing the database type- Returns:
- new database instance of the appropriate type
-
load
Loads database schema without performing full analysis.- Returns:
- the loaded database schema
- Throws:
IOException- if database loading failsInterruptedException- if the loading process is interrupted
-
getErrors
-