#oracle-database

sys odpic-sys

Bindings to Oracle Database Programming Interface for C (ODPI-C)

3 unstable releases

0.2.0 Mar 1, 2025
0.1.1 Dec 24, 2024
0.1.0 Nov 16, 2024

#8 in #oracle-database

Download history 30591/week @ 2025-12-06 31945/week @ 2025-12-13 31891/week @ 2025-12-20 33105/week @ 2025-12-27 37951/week @ 2026-01-03 36680/week @ 2026-01-10 37848/week @ 2026-01-17 36431/week @ 2026-01-24 39463/week @ 2026-01-31 38801/week @ 2026-02-07 37424/week @ 2026-02-14 38840/week @ 2026-02-21 45492/week @ 2026-02-28 45808/week @ 2026-03-07 45682/week @ 2026-03-14 37140/week @ 2026-03-21

179,920 downloads per month
Used in 16 crates (via oracle)

UPL-1.0/Apache-2.0

3MB
47K SLoC

C 39K SLoC // 0.2% comments Rust 5.5K SLoC // 0.0% comments SQL 2K SLoC // 0.1% comments Python 130 SLoC // 0.5% comments Shell 15 SLoC // 0.7% comments

odpic-sys

The crate provides low-level Rust bindings to ODPI-C.

Usage

Put this in your Cargo.toml:

[dependencies]
odpic-sys = "0.2.0"

The following Cargo features are supported:

  • separate_blocking separates functions which may be blocked by network round-trips.

    When the feature is enabled, functions whose column Round-Trips? value in ODPI-C Function Round-Trips is Yes or Maybe are moved from the top-level module to the blocking module.

Note about doc comments

Doc comments in this crate are verbatim copies of ODPI-C doc. They are written for C language and may be inappropriate for Rust.

Compile-time Requirements

See Compile-time Requirements.

Relation between odpic-sys version and ODPI-C version

odpic-sys version ODPI-C version RustTarget note
0.2.0 5.5.0 1.59 (*1)
0.1.1 5.4.1 1.59
0.1.0 5.4.0 1.59

*1: Some constants' types were changed from u32 to appropriate ones.

License

Same with ODPI-C

  1. the Universal Permissive License v 1.0 or at your option, any later version; and/or
  2. the Apache License v 2.0.

Copyrights

Copyrights of src/binding_*.rs files belong to respective owners. The files were generated from ODPI-C header files and documents.

Dependencies