-
Notifications
You must be signed in to change notification settings - Fork 173
Closed
Labels
Type: enhancementNew feature or requestNew feature or request
Milestone
Description
What feature or improvement would you like to see?
The following documents need to be updated:
arrow-adbc/docs/source/rust/driver_manager.rst
Lines 22 to 51 in cae6bd1
| The driver manager is a library that implements the ADBC API by delegating to | |
| dynamically-loaded drivers. This allows applications to load drivers at | |
| runtime, and use drivers that aren't necessarily written in Rust. It is | |
| currently part of the adbc_core package, though we plan to split it into its | |
| own package for users who don't want or need FFI. | |
| Installation | |
| ============ | |
| .. code-block:: shell | |
| cargo add adbc_core --features driver_manager | |
| Usage | |
| ===== | |
| .. code-block:: rust | |
| use adbc_core::{Connection, Database, Driver, Statement}; | |
| use adbc_core::options::{AdbcVersion, OptionDatabase}; | |
| use adbc_core::driver_manager::ManagedDriver; | |
| // You must build/locate the driver yourself | |
| let mut driver = ManagedDriver::load_dynamic_from_filename( | |
| "/PATH/TO/libadbc_driver_sqlite.so", | |
| None, | |
| AdbcVersion::default(), | |
| ).expect("Failed to load driver"); | |
| let db = driver.new_database().expect("Failed to create database handle"); | |
| let mut conn = db.new_connection().expect("Failed to create connection"); |
lidavidm
Metadata
Metadata
Assignees
Labels
Type: enhancementNew feature or requestNew feature or request