Class AdbcDriverManager

java.lang.Object
org.apache.arrow.adbc.drivermanager.AdbcDriverManager

public final class AdbcDriverManager extends Object
Instantiate connections to ADBC databases generically based on driver name.
  • Method Details

    • connect

      public AdbcDatabase connect(String driverFactoryName, BufferAllocator allocator, Map<String,Object> parameters) throws AdbcException
      Connect 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

      public static AdbcDriverManager getInstance()