#[warn(missing_docs)]
mod builder;
mod debug;
mod sealed;
mod traits;
#[cfg(feature="unstable")]
pub mod tls;
#[cfg(not(feature="unstable"))]
mod tls;
#[cfg(feature="unstable")]
pub mod client;
#[cfg(not(feature="unstable"))]
mod client;
#[cfg(feature="unstable")]
pub mod reader;
#[cfg(not(feature="unstable"))]
mod reader;
#[cfg(feature="unstable")]
pub mod credentials;
#[cfg(not(feature="unstable"))]
mod credentials;
#[cfg(feature="unstable")]
pub mod server_params;
#[cfg(not(feature="unstable"))]
mod server_params;
pub mod errors;
pub use builder::Builder;
pub use pool::Client;
pub use errors::{Error};
pub use traits::{Executor, ExecuteResult};
pub use edgedb_protocol::model;
pub use edgedb_protocol::query_arg::{QueryArg, QueryArgs};
pub use edgedb_protocol::{QueryResult};
#[cfg(feature="derive")]
pub use edgedb_derive::Queryable;
mod pool;
pub async fn connect() -> Result<Client, Error> {
let pool = Client::new(Builder::from_env().await?);
pool.ensure_connected().await?;
Ok(pool)
}