Package org.apache.calcite.test
Interface ConnectionFactory
public interface ConnectionFactory
Creates JDBC connections for tests.
The base class is abstract, and all of the with
methods throw.
Avoid creating new sub-classes otherwise it would be hard to support
.with(property, value).with(...)
kind of chains.
If you want augment the connection, use
CalciteAssert.ConnectionPostProcessor
.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault ConnectionFactory
default ConnectionFactory
default ConnectionFactory
with
(CalciteAssert.ConnectionPostProcessor postProcessor)
-
Method Details
-
createConnection
- Throws:
SQLException
-
with
-
with
default ConnectionFactory with(org.apache.calcite.avatica.ConnectionProperty property, Object value) -
with
-