public interface ConnectionFactory
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.
ConnectionFactories| 限定符和类型 | 方法和说明 |
|---|---|
Connection |
createConnection() |
default ConnectionFactory |
with(CalciteAssert.ConnectionPostProcessor postProcessor) |
default ConnectionFactory |
with(org.apache.calcite.avatica.ConnectionProperty property,
Object value) |
default ConnectionFactory |
with(String property,
Object value) |
Connection createConnection() throws SQLException
SQLExceptiondefault ConnectionFactory with(String property, Object value)
default ConnectionFactory with(org.apache.calcite.avatica.ConnectionProperty property, Object value)
default ConnectionFactory with(CalciteAssert.ConnectionPostProcessor postProcessor)
Copyright © 2012-2023 Apache Software Foundation. All Rights Reserved.