Package org.apache.calcite.sql
Interface SqlDialectFactory
- All Known Implementing Classes:
SqlDialectFactoryImpl
public interface SqlDialectFactory
Creates a
SqlDialect
appropriate
for a given database metadata object.-
Method Summary
Modifier and TypeMethodDescriptioncreate
(DatabaseMetaData databaseMetaData) Creates aSqlDialect
from a DatabaseMetaData.
-
Method Details
-
create
Creates aSqlDialect
from a DatabaseMetaData.Does not maintain a reference to the DatabaseMetaData -- or, more importantly, to its
Connection
-- after this call has returned.- Parameters:
databaseMetaData
- used to determine which dialect of SQL to generate- Throws:
RuntimeException
- if there was an error creating the dialect
-