Class AdbcDriverManager
java.lang.Object
org.apache.arrow.adbc.drivermanager.AdbcDriverManager
Instantiate connections to ADBC databases generically based on driver name.
-
Method Summary
Modifier and TypeMethodDescriptionConnect to a database.static AdbcDriverManagervoidregisterDriver(String driverFactoryName, Function<BufferAllocator, AdbcDriver> driverFactory) Register a driver manually.
-
Method Details
-
connect
public AdbcDatabase connect(String driverFactoryName, BufferAllocator allocator, Map<String, Object> parameters) throws AdbcExceptionConnect to a database.- Parameters:
driverFactoryName- The driver to use.allocator- The allocator to use.parameters- Parameters for the driver.- Returns:
- The AdbcDatabase instance.
- Throws:
AdbcException- if the driver was not found or if connection fails.
-
registerDriver
public void registerDriver(String driverFactoryName, Function<BufferAllocator, AdbcDriver> driverFactory) Register a driver manually.- Parameters:
driverFactoryName- The name of the driver to associate with the construction function.driverFactory- The function to use to instantiate the driver.
-
getInstance
-