Class ChJdbcLoader
java.lang.Object
org.pgcodekeeper.core.database.base.loader.AbstractLoader<T>
org.pgcodekeeper.core.database.base.loader.AbstractJdbcLoader<ChDatabase>
org.pgcodekeeper.core.database.ch.loader.ChJdbcLoader
- All Implemented Interfaces:
IJdbcLoader,ILoader
JDBC-based database schema loader for ClickHouse databases.
Reads database schemas, functions, relations, policies, users, roles, and privileges from a ClickHouse database.
Extends JdbcLoaderBase to provide ClickHouse-specific loading functionality.
-
Constructor Summary
ConstructorsConstructorDescriptionChJdbcLoader(IJdbcConnector connector, DiffSettings diffSettings) Creates a new ClickHouse JDBC loader with the specified parameters. -
Method Summary
Methods inherited from class org.pgcodekeeper.core.database.base.loader.AbstractJdbcLoader
getConnection, getCurrentLocation, getRunner, getSchema, getStatement, getVersion, putSchema, setComment, setCurrentObject, setCurrentOperation, setOwner, setVersionMethods inherited from class org.pgcodekeeper.core.database.base.loader.AbstractLoader
addError, getErrors, getMonitor, getSettings, isAllowedSchema, loadAndAnalyzeMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.pgcodekeeper.core.database.api.loader.ILoader
getErrors, getSettings, loadAndAnalyze
-
Constructor Details
-
ChJdbcLoader
Creates a new ClickHouse JDBC loader with the specified parameters.- Parameters:
connector- the JDBC connector for establishing database connectionsdiffSettings- unified context object containing settings, ignore list, and error accumulator
-
-
Method Details
-
load
Description copied from interface:ILoaderLoads the database schema.- Specified by:
loadin interfaceILoader- Specified by:
loadin classAbstractLoader<ChDatabase>- Returns:
- loaded database
- Throws:
IOExceptionInterruptedException
-
getSchemas
Description copied from class:AbstractJdbcLoaderReturns a string representation of loaded schemas.- Overrides:
getSchemasin classAbstractJdbcLoader<ChDatabase>- Returns:
- string containing schema information
-
submitChAntlrTask
-