rust-postgres/postgres/src/lib.rs

39 lines
807 B
Rust
Raw Normal View History

2018-12-21 21:34:09 +00:00
#[cfg(feature = "runtime")]
use lazy_static::lazy_static;
#[cfg(feature = "runtime")]
use tokio::runtime::{self, Runtime};
#[cfg(feature = "runtime")]
mod builder;
mod client;
2018-12-29 05:01:10 +00:00
mod copy_out_reader;
2018-12-28 20:59:17 +00:00
mod portal;
mod query;
mod query_portal;
2018-12-21 21:34:09 +00:00
mod statement;
2018-12-29 04:20:31 +00:00
mod to_statement;
2018-12-21 21:46:50 +00:00
mod transaction;
2018-12-21 21:34:09 +00:00
2018-12-22 05:01:49 +00:00
#[cfg(feature = "runtime")]
#[cfg(test)]
mod test;
2018-12-21 21:34:09 +00:00
#[cfg(feature = "runtime")]
pub use crate::builder::*;
pub use crate::client::*;
2018-12-29 05:01:10 +00:00
pub use crate::copy_out_reader::*;
2018-12-28 20:59:17 +00:00
pub use crate::portal::*;
pub use crate::query::*;
pub use crate::query_portal::*;
2018-12-21 21:34:09 +00:00
pub use crate::statement::*;
2018-12-29 04:20:31 +00:00
pub use crate::to_statement::*;
2018-12-21 21:46:50 +00:00
pub use crate::transaction::*;
2018-12-21 21:34:09 +00:00
#[cfg(feature = "runtime")]
lazy_static! {
static ref RUNTIME: Runtime = runtime::Builder::new()
.name_prefix("postgres-")
.build()
.unwrap();
}