Class DatabaseDialectResolver
java.lang.Object
io.debezium.connector.jdbc.dialect.DatabaseDialectResolver
Resolves which
DatabaseDialect should be used by the JDBC sink connector.- Author:
- Chris Cranford
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DatabaseDialectresolve(JdbcSinkConnectorConfig config, org.hibernate.SessionFactory sessionFactory) Resolve the database dialect to be used.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
DatabaseDialectResolver
public DatabaseDialectResolver()
-
-
Method Details
-
resolve
public static DatabaseDialect resolve(JdbcSinkConnectorConfig config, org.hibernate.SessionFactory sessionFactory) Resolve the database dialect to be used. If no provider is found that supports the underlying Hibernate dialect, the resolver will automatically return an instance ofGeneralDatabaseDialect.- Parameters:
config- the sink connector's configuration, should never benullsessionFactory- hibernate session factory, should never benull- Returns:
- the database dialect to be used, never
null
-