Package io.github.jdbcx
Interface JdbcDialect
- All Known Implementing Classes:
ClickHouseDialect,DefaultDialect,DuckDBDialect
public interface JdbcDialect
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetRemoteTable(Connection conn, String url) Gets table representing the given URL.default ValueFactorygetValueFactory(Format format) default VariableTag
-
Method Details
-
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
-