Class MsJdbcLoader
java.lang.Object
org.pgcodekeeper.core.database.base.loader.AbstractLoader<T>
org.pgcodekeeper.core.database.base.loader.AbstractJdbcLoader<MsDatabase>
org.pgcodekeeper.core.database.ms.loader.MsJdbcLoader
- All Implemented Interfaces:
IJdbcLoader,ILoader
JDBC-based database schema loader for Microsoft SQL Server databases.
Reads database schemas, tables, functions, procedures, views, types, assemblies, roles, users and other objects from a Microsoft SQL Server database.
Extends JdbcLoaderBase to provide Microsoft SQL Server-specific loading functionality.
-
Constructor Summary
ConstructorsConstructorDescriptionMsJdbcLoader(IJdbcConnector connector, DiffSettings diffSettings) Creates a new Microsoft SQL Server JDBC loader with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetMsType(AbstractStatement statement, String schema, String dataType, boolean isUserDefined, int size, int precision, int scale) static StringgetMsType(AbstractStatement statement, String schema, String dataType, boolean isUserDefined, int size, int precision, int scale, boolean quoteSysTypes) voidpreLoad()voidsetPrivileges(AbstractStatement st, List<MsXmlReader> privs) <T> voidsubmitMsAntlrTask(String sql, Function<TSQLParser, T> parserCtxReader, Consumer<T> finalizer) Methods inherited from class org.pgcodekeeper.core.database.base.loader.AbstractJdbcLoader
getConnection, getCurrentLocation, getRunner, getSchema, getSchemas, 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
-
MsJdbcLoader
Creates a new Microsoft SQL Server 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
-
submitMsAntlrTask
public <T> void submitMsAntlrTask(String sql, Function<TSQLParser, T> parserCtxReader, Consumer<T> finalizer) -
getMsType
public static String getMsType(AbstractStatement statement, String schema, String dataType, boolean isUserDefined, int size, int precision, int scale) -
getMsType
public static String getMsType(AbstractStatement statement, String schema, String dataType, boolean isUserDefined, int size, int precision, int scale, boolean quoteSysTypes) -
setPrivileges
-