Package io.github.jdbcx
Interface DriverExtension
- All Superinterfaces:
Comparable<DriverExtension>
- All Known Implementing Classes:
CodeQLDriverExtension,DbDriverExtension,DefaultDriverExtension,HelpDriverExtension,PromptDriverExtension,PrqlDriverExtension,ScriptDriverExtension,ShellDriverExtension,VarDriverExtension,VersionDriverExtension,WebDriverExtension
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault intdefault JdbcActivityListenercreateListener(QueryContext context, Connection conn, Properties props) Creates a connection listener.static PropertiesextractProperties(DriverExtension extension, Properties properties) default Propertiesdefault PropertiesgetConfig(Properties props) Gets configuration for this extension.default ConnectiongetConnection(String url, Properties props) default PropertiesGets the default configuration for this extension, containing all supported options with their default values.Gets the default configuration options supported by this extension.default StringgetMatched(List<String> list, String pattern) default StringgetName()getOptions(Properties props) Gets the consolidated configuration options supported by this extension.getSchemas(String pattern, Properties props) default ResultSetgetTables(String schemaPattern, String tableNamePattern, String[] types, Properties props) default StringgetUsage()default booleandefault booleandefault booleandefault booleanWhether this extension supports execution without passing any properties and content.
-
Field Details
-
DEFAULT_JDBC_TABLE_TYPE
- See Also:
-
JDBC_TABLE_FIELDS
-
-
Method Details
-
getMatched
-
extractProperties
-
createListener
default JdbcActivityListener createListener(QueryContext context, Connection conn, Properties props) Creates a connection listener.- Parameters:
context- query contextconn- connection to listenprops- connection properties, usually tailored for this extension- Returns:
- non-null connection listener
-
getName
-
getAliases
-
hasConfig
-
getConfig
-
getConfig
Gets configuration for this extension.- Parameters:
props- optional properties to merge into the configuration, could be null- Returns:
- non-null configuration for this extension
-
getConnection
- Throws:
SQLException
-
getSchemas
-
getTables
default ResultSet getTables(String schemaPattern, String tableNamePattern, String[] types, Properties props) throws SQLException - Throws:
SQLException
-
getDefaultConfig
Gets the default configuration for this extension, containing all supported options with their default values.- Returns:
- non-null default configuration
-
getOptions
Gets the consolidated configuration options supported by this extension.- Parameters:
props- optional connection properties, could benull- Returns:
- non-null configuration options supported by this extension
-
getDefaultOptions
Gets the default configuration options supported by this extension.- Returns:
- non-null default options
-
getDescription
-
getUsage
-
supportsDirectQuery
default boolean supportsDirectQuery() -
supportsInspection
default boolean supportsInspection() -
supportsNoArguments
default boolean supportsNoArguments()Whether this extension supports execution without passing any properties and content.- Returns:
- true if the extension supports execution without passing any properties and content; false otherwise
-
compareTo
- Specified by:
compareToin interfaceComparable<DriverExtension>
-