Rust Firebird Client
A Firebird client library to Rust programing language
How to use it
- Start choosing the lib variation you want
// For use the compile time linked version
linked
// Or using the runtime loaded lib
with_client
// Or using the pure rust implementation
pure_rust
- Set your connection params
// For a remote server
let mut conn = linked
.host
.db_name
.connect?
// Or if you need a embedded/local only access
let mut conn = linked
.embedded
.db_name
.connect?
- Now you can use the lib
let rows = conn.query_iter?;
...
More examples here.
Cargo features
All features can be used at the same time if needed.
linking
Will use the dynamic library of the official fbclient
at runtime and compiletime. Used in systems where there is already a firebird client installed and configured.
dynamic_loading
Can find the official fbclient
native library by path at runtime, does not need the library at compiletime. Useful when you need to build in a system without a firebird client installed.
pure_rust
Uses a pure rust implementation of the firebird wire protocol, does not need the native library at all. Useful for cross-compilation and allow a single binary to be deployed without needing to install the firebird client.
Goals
- Rust Api
- Dynamic link with fbclient
- Dynamic loading the fbclient(.dll or .so)
- ARM support
- Firebird embedded support
- Extern this api to ruby
- Extern this api to lua (in a new repo)