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, getDatabase, getDatabaseName, getErrors, getMonitor, getSettings, isAllowedSchema, load, 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
getDatabase, getDatabaseName, getErrors, getSettings, load, 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
-
preLoad
public void preLoad() -
loadInternal
- Throws:
IOExceptionInterruptedException
-
getSchemas
Description copied from class:AbstractJdbcLoaderReturns a string representation of loaded schemas.- Overrides:
getSchemasin classAbstractJdbcLoader<ChDatabase>- Returns:
- string containing schema information
-
submitChAntlrTask
-