Package org.pgcodekeeper.core.loader.pg
Class JdbcPgLoader
java.lang.Object
org.pgcodekeeper.core.loader.DatabaseLoader
org.pgcodekeeper.core.loader.jdbc.JdbcLoaderBase
org.pgcodekeeper.core.loader.pg.JdbcPgLoader
JDBC-based database schema loader for PostgreSQL databases.
Reads database schemas, functions, views, tables, types, sequences, extensions, and other objects from a PostgreSQL database.
Supports timezone configuration and Greenplum database detection.
Extends JdbcLoaderBase to provide PostgreSQL-specific loading functionality.
-
Constructor Summary
ConstructorsConstructorDescriptionJdbcPgLoader(AbstractJdbcConnector connector, String timezone, ISettings settings, IMonitor monitor, IgnoreSchemaList ignoreSchemaList) Creates a new PostgreSQL JDBC loader with the specified parameters. -
Method Summary
Methods inherited from class org.pgcodekeeper.core.loader.jdbc.JdbcLoaderBase
addError, getCachedTypeByOid, getConnection, getCurrentLocation, getExtensionSchema, getLastSysOid, getMonitor, getMsType, getMsType, getRoleByOid, getRunner, getSchemas, getSettings, getStatement, getVersion, isGreenplumDb, isIgnoredSchema, putSchema, setAuthor, setComment, setCurrentObject, setCurrentOperation, setOwner, setOwner, setPrivileges, setPrivileges, setPrivileges, setPrivileges, submitAntlrTask, submitChAntlrTask, submitMsAntlrTask, submitPlpgsqlTaskMethods inherited from class org.pgcodekeeper.core.loader.DatabaseLoader
createDb, getErrors, loadAndAnalyze
-
Constructor Details
-
JdbcPgLoader
public JdbcPgLoader(AbstractJdbcConnector connector, String timezone, ISettings settings, IMonitor monitor, IgnoreSchemaList ignoreSchemaList) Creates a new PostgreSQL JDBC loader with the specified parameters.- Parameters:
connector- the JDBC connector for establishing database connectionstimezone- the timezone to set for the database connectionsettings- loader settings and configurationmonitor- progress monitor for tracking loading progressignoreSchemaList- 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:
IOException- if database loading failsInterruptedException- if the loading process is interrupted
-