1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
// Copyright (c) 2017 mimir developers
//
// Licensed under the Apache License, Version 2.0
// <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT
// license <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. All files in the project carrying such notice may not be copied,
// modified, or distributed except according to those terms.

//! Rust bindings over the Oracle Database Programming Interface for Drivers and Applications.
#![deny(missing_docs)]
#![feature(ptr_internals, try_from, unique, untagged_unions)]
#![recursion_limit = "128"]

#[macro_use]
extern crate bitflags;
#[macro_use]
extern crate derive_builder;
#[macro_use]
extern crate error_chain;
#[macro_use]
extern crate getset;
#[macro_use]
mod macros;
#[cfg(feature = "trace")]
#[macro_use]
extern crate slog;
#[cfg(feature = "trace")]
#[macro_use]
extern crate slog_try;

extern crate chrono;
extern crate hex_slice;
#[cfg(not(feature = "trace"))]
extern crate slog;

mod common;
mod connection;
mod context;
mod data;
mod dequeue;
mod enqueue;
mod lob;
mod message;
mod object;
mod objectattr;
mod objecttype;
mod odpi;
mod pool;
mod query;
mod rowid;
mod statement;
mod subscription;
mod util;
mod variable;

// Public API
#[allow(missing_docs, unused_doc_comment)]
pub mod error;

pub use connection::Connection;
pub use context::Context;
pub use context::params::AppContext;
pub use data::{Data, TypeInfo};
pub use dequeue::Options as DeqOptions;
pub use enqueue::Options as EnqOptions;
pub use lob::Lob;
pub use message::Properties as MsgProps;
pub use object::Object;
pub use objectattr::ObjectAttr;
pub use objecttype::ObjectType;
pub use odpi::structs::{ODPIBytes, ODPIData, ODPIDataBuffer, ODPIObjectAttrInfo,
                        ODPIObjectTypeInfo, ODPISubscrMessage};
pub use odpi::{constants, enums, flags};
pub use pool::Pool;
pub use query::Info as QueryInfo;
pub use rowid::Rowid;
pub use statement::Statement;
pub use util::ODPIStr;
pub use variable::Var;