rsfbclient_diesel/
lib.rs

1//! The Firebird Diesel
2//!
3//! This crate only implements the firebird backend for [Diesel](https://docs.diesel.rs/2.0.x/diesel/index.html). To use diesel features, you must import it.
4//!
5//! By default the lib will use the [native client](../rsfbclient_native/struct.NativeFbClient.html). If you want
6//! use the [pure rust client](../rsfbclient_rust/struct.RustFbClient.html), enable the `pure_rust` feature.
7//!
8//! ### Establishing a connection
9//! ```rust,ignore
10//! use diesel::prelude::*;
11//! use rsfbclient_diesel::FbConnection;
12//!
13//! let conn = FbConnection::establish("firebird://SYSDBA:masterkey@localhost/test.fdb");
14//! ```
15
16mod fb;
17pub use fb::*;
18
19#[cfg(any(feature = "linking", feature = "pure_rust"))]
20#[cfg(test)]
21mod tests;