Packages / rupm

rs-db-driver-oracle-oracle 0.1.0

Oracle: oracle (the driver, re-exported, with a runnable example)

Install

cargo add rs-db-driver-oracle-oracle --registry rupm

In Ruststudio: Packages, search for rs-db-driver-oracle-oracle, Install.

Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-23.

Versions

README

# rs-db-driver-oracle-oracle

Oracle - oracle: ODPI-C based driver

Add it with `rupm add rs-db-driver-oracle-oracle` (or `cargo add rs-db-driver-oracle-oracle --registry rupm`). The driver `oracle` is re-exported as `rs_db_driver_oracle_oracle::oracle`.

**Needs on the PC:** Oracle Instant Client (or a full Oracle client) at run time

## Example

```rust
use oracle::Connection;

fn main() -> Result<(), oracle::Error> {
    let conn = Connection::connect("scott", "tiger", "//localhost:1521/XEPDB1")?;
    let n: i64 = conn.query_row_as::<i64>("SELECT 1 FROM dual", &[])?;
    println!("the database answered {n}");
    Ok(())
}
```