Registry / database / odbc-api

odbc-api

JSON →
library27.0.0rscratesunverified

Write ODBC applications in (mostly) safe Rust.

# Cargo.toml [dependencies] odbc-api = "27.0.0"
INSTALL
IMPORT
SIG · ODBC-API
O
odbc-api
databaserustv27.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Connection
use odbc_api::Connection;

Connect to a database using an ODBC data source name.

use odbc_api::Connection; fn main() -> Result<(), Box<dyn std::error::Error>> { let env = odbc_api::Environment::new()?; let conn = env.connect("DSN=MyDSN", "user", "pass")?; println!("Connected!"); Ok(()) }
Debug
Known issues
gotchaRequires an ODBC driver manager and driver to be installed on the system.
fix
Install unixODBC (Linux) or use the built-in Windows ODBC manager.
affects: >=0.0.0
Upgrade
Version history
27.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
odbc-api — cargo add odbc-api · libregistry