Package org.pgcodekeeper.core.loader
Class ProjectLoader
java.lang.Object
org.pgcodekeeper.core.loader.DatabaseLoader
org.pgcodekeeper.core.loader.ProjectLoader
Database loader for pgCodeKeeper project directory structures.
Reads database schemas from organized directory structures containing SQL files
for different database types (PostgreSQL, Microsoft SQL Server, ClickHouse).
Supports override loading and statement replacement functionality.
-
Constructor Summary
ConstructorsConstructorDescriptionProjectLoader(String dirPath, ISettings settings) Creates a new project loader with basic configuration.ProjectLoader(String dirPath, ISettings settings, List<Object> errors) Creates a new project loader with error collection.ProjectLoader(String dirPath, ISettings settings, IMonitor monitor, List<Object> errors, IgnoreSchemaList ignoreSchemaList) Creates a new project loader with full configuration. -
Method Summary
Modifier and TypeMethodDescriptionload()Loads database schema without performing full analysis.voidLoads statement overrides from the overrides directory and applies them to the database.Methods inherited from class org.pgcodekeeper.core.loader.DatabaseLoader
createDb, getErrors, loadAndAnalyze
-
Constructor Details
-
ProjectLoader
Creates a new project loader with basic configuration.- Parameters:
dirPath- path to the project directorysettings- loader settings and configuration
-
ProjectLoader
Creates a new project loader with error collection.- Parameters:
dirPath- path to the project directorysettings- loader settings and configurationerrors- list to collect loading errors
-
ProjectLoader
public ProjectLoader(String dirPath, ISettings settings, IMonitor monitor, List<Object> errors, IgnoreSchemaList ignoreSchemaList) Creates a new project loader with full configuration.- Parameters:
dirPath- path to the project directorysettings- loader settings and configurationmonitor- progress monitor for tracking loading progresserrors- list to collect loading errorsignoreSchemaList- list of schemas to ignore during loading
-
-
Method Details
-
load
Description copied from class:DatabaseLoaderLoads database schema without performing full analysis.- Specified by:
loadin classDatabaseLoader- Returns:
- the loaded database schema
- Throws:
InterruptedException- if the loading process is interruptedIOException- if database loading fails
-
loadOverrides
Loads statement overrides from the overrides directory and applies them to the database.- Parameters:
db- the database to apply overrides to- Throws:
InterruptedException- if loading is interruptedIOException- if file access fails
-