sibyl 0.7.0

An OCI-based (synchronous or asynchronous) interface between Rust applications and Oracle databases
Documentation
1
2
3
4
5
6
7
8
9
10
//! OCI Parameter descriptor functions

use crate::{Result, oci};
use super::{*, desc::Descriptor};

pub(crate) fn get(pos: u32, obj_type: u32, obj: &OCIStmt, err: &OCIError) -> Result<Descriptor<OCIParam>> {
    let mut descr = Ptr::<OCIParam>::null();
    oci::param_get(obj, obj_type, err, descr.as_mut_ptr(), pos)?;
    Ok( Descriptor::from(descr) )
}