Package io.github.jdbcx
Interface JdbcDialect
- All Known Implementing Classes:
ClickHouseDialect,DefaultDialect,DuckDBDialect
public interface JdbcDialect
-
Method Summary
Modifier and TypeMethodDescriptiondefault CompressionGets preferred compression algorithm.default FormatGets preferred data format.default StringgetRemoteTable(Connection conn, String url) Gets table representing the given URL.default ValueFactorygetValueFactory(Format format) default VariableTagdefault booleandefault booleansupports(Compression compress) Checks if the compression algorithm is supported or not.default booleanChecks if the data format is supported or not.
-
Method Details
-
supports
Checks if the compression algorithm is supported or not.- Parameters:
compress- non-null compression algorihtm- Returns:
- true if it's supported; false otherwise
-
supports
Checks if the data format is supported or not.- Parameters:
format- non-null data format- Returns:
- true if it's supported; false otherwise
-
supportMultipleResultSetsPerStatement
default boolean supportMultipleResultSetsPerStatement()- Returns:
- true multiple ResultSets are supported; false otherwise
-
getPreferredCompression
Gets preferred compression algorithm.- Returns:
- non-null compression algorithm
-
getPreferredFormat
Gets preferred data format.- Returns:
- non-null data format
-
getVariableTag
-
getValueFactory
-
getMapper
ResultMapper getMapper() -
getRemoteTable
Gets table representing the given URL. This is typically used in a query like shown below.select * from {{ bridge.db.mysql1: select 1 }}The inner query will be translated to'http://bridge-server:8080/<uuid>.csv'by default. This various on different databases, for examples:- On DuckDB, it's
read_csv('http://bridge-server:8080/<uuid>.csv', auto_detect=true) - On ClickHouse, url table function will be used, so it becomes
url('http://bridge-server:8080/<uuid>.csv', 'CSVWithNames')
- Parameters:
conn- connectionurl- url- Returns:
- table representing the given URL
- Throws:
SQLException
- On DuckDB, it's
-