Reset configuration reference¶
Details about objects and procedures associated with the reset configuration feature.
Database objects and procedures¶
The following database objects are created using the configuration/reset_configuration.sql.
PUBLIC.RESET_ CONFIGURATION()¶
Entry point procedure available to the ADMIN role. This procedure invokes the Java ResetConfigurationHandler.resetConfiguration handler.
PUBLIC.RESET_ CONFIGURATION_ VALIDATE()¶
Used to provide additional connector specific validation. By default returns 'response_code': 'OK'.
It is invoked by the default ResetConfigurationValidator. Can be overwritten both in SQL and Java.
PUBLIC.RESET_ CONFIGURATION_ INTERNAL()¶
Used to provide additional connector specific logic. By default returns 'response_code': 'OK'.
It is invoked by the default ResetConfigurationCallback. Can be overwritten both in SQL and Java.
Related tables and views¶
Configuration reset is related to and dependent on the objects from the following files:
core.sql(See Core SQL reference)prerequisites.sql(See Prerequisites SQL Reference)configuration/app_config.sql(See: App config SQL reference)configuration/connector_configuration.sql(See: Connector configuration reference)
Related Java objects¶
The following Java objects from the com.snowflake.connectors.application.configuration.reset package and some common components are tightly connected with the above procedures:
ResetConfigurationHandlerResetConfigurationValidatorResetConfigurationCallbackResetConfigurationSdkCallbackResetConfigurationHandlerBuilderConnectorStatusServiceConfigurationRepositoryPrerequisitesRepositoryTransactionManagerConnectorErrorHandler
Custom handler¶
Handlers can be customized by being completely replaced using SQL or by implementing Java interfaces.
Replacing using SQL¶
The following components can be replaced using SQL.
Handler¶
To provide a custom implementation of ResetConfigurationHandler the PUBLIC.RESET_CONFIGURATION procedure must be replaced. For example:
Internal procedure¶
The INTERNAL procedure can also be customized through SQL.
It can also invoke another Java handler:
Builder approach¶
ResetConfigurationHandler can be customized using ResetConfigurationHandlerBuilder. This builder allows the developer to provide custom implementations of the following interfaces:
ResetConfigurationValidatorResetConfigurationCallbackConnectorErrorHelper
Not all interfaces need to be implemented, in which case the default implementation provided by the SDK is used.
The following example shows how ResetConfigurationValidator can be customized.