rust-postgres/postgres/src/lib.rs

33 lines
651 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-28 20:59:17 +00:00
mod portal;
mod query;
2018-12-21 21:34:09 +00:00
mod 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-28 20:59:17 +00:00
pub use crate::portal::*;
pub use crate::query::*;
2018-12-21 21:34:09 +00:00
pub use crate::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();
}