Connector configuration reference¶
Database objects and procedures¶
The following database objects are created through the file configuration/connector_configuration.sql.
PUBLIC.CONFIGURE_ CONNECTOR (config VARIANT)¶
Entry point procedure available to the ADMIN role. This procedure invokes the Java function ConfigureConnectorHandler.configureConnector.
PUBLIC.CONFIGURE_ CONNECTOR_ VALIDATE (config VARIANT)¶
Procedure used for connector specific validation of the configuration. By default, it returns 'response_code': 'OK'.
It is invoked by the DefaultConfigureConnectorInputValidator function. Can be overwritten both in SQL and Java.
PUBLIC.CONFIGURE_ CONNECTOR_ INTERNAL (config VARIANT)¶
Procedure used for connector specific additional configuration. By default, it returns 'response_code': 'OK'.
It is invoked by the InternalConfigureConnectorCallback. Can be overwritten both in SQL and Java.
Related tables and views¶
Connector configuration is related to and dependent on the objects from the following files:
core.sql(See Core SQL reference)configuration/app_config.sql(See: App config SQL reference)
Related Java objects¶
The following Java objects from the com.snowflake.connectors.application.configuration.connector package and some common components are tightly connected with the above procedures:
Custom handler¶
Handler and its internals can be customized using the following two approaches.
Procedure replacement approach¶
The following components can be replaced using SQL.
Handler¶
To provide whole custom implementation of the ConfigureConnectorHandler the PUBLIC.CONFIGURE_CONNECTOR procedure must be replaced. For example:
Internal procedures¶
Internal VALIDATE and INTERNAL procedures can be also customized through the SQL. They can even invoke another Java handler:
Builder approach¶
ConfigureConnectorHandler can be customized using ConfigureConnectorHandlerBuilder. This builder allows user to provide custom implementations of the following interfaces:
In case one of them is not provided the default implementation provided by the SDK will be used.