37 lines
751 B
Rust
37 lines
751 B
Rust
#[cfg(feature = "runtime")]
|
|
use lazy_static::lazy_static;
|
|
#[cfg(feature = "runtime")]
|
|
use tokio::runtime::{self, Runtime};
|
|
|
|
#[cfg(feature = "runtime")]
|
|
mod builder;
|
|
mod client;
|
|
mod portal;
|
|
mod query;
|
|
mod query_portal;
|
|
mod statement;
|
|
mod to_statement;
|
|
mod transaction;
|
|
|
|
#[cfg(feature = "runtime")]
|
|
#[cfg(test)]
|
|
mod test;
|
|
|
|
#[cfg(feature = "runtime")]
|
|
pub use crate::builder::*;
|
|
pub use crate::client::*;
|
|
pub use crate::portal::*;
|
|
pub use crate::query::*;
|
|
pub use crate::query_portal::*;
|
|
pub use crate::statement::*;
|
|
pub use crate::to_statement::*;
|
|
pub use crate::transaction::*;
|
|
|
|
#[cfg(feature = "runtime")]
|
|
lazy_static! {
|
|
static ref RUNTIME: Runtime = runtime::Builder::new()
|
|
.name_prefix("postgres-")
|
|
.build()
|
|
.unwrap();
|
|
}
|