Package io.github.jdbcx
Interface DriverExtension
- All Known Implementing Classes:
BlackholeDriverExtension,DefaultDriverExtension,PrqlDriverExtension,ScriptDriverExtension
public interface DriverExtension
-
Method Summary
Modifier and TypeMethodDescriptiondefault ConnectionListenercreateListener(Connection conn, String url, Properties props) Creates a connection listener.default PropertiesgetConfig(Properties props) Gets configuration for this extension.default PropertiesGets default configuration for this extension.Gets default options for this extension.getOptions(Properties props) Gets options available for this extension.
-
Method Details
-
createListener
Creates a connection listener.- Parameters:
conn- connection to listenurl- connection stringprops- connection properties- Returns:
- non-null connection listener
-
getConfig
Gets configuration for this extension.- Parameters:
props- optional connection properties to merge into the configuration, could be null- Returns:
- non-null configuration for this extension
-
getDefaultConfig
Gets default configuration for this extension. Same asgetConfig(null).- Returns:
- non-null default configuration
-
getOptions
Gets options available for this extension.- Parameters:
props- optional connection properties, could be null- Returns:
- non-null options for this extension
-
getDefaultOptions
Gets default options for this extension. Same asgetOptions(null).- Returns:
- non-null default options
-