9 releases (5 breaking)
0.25.0 | Aug 28, 2024 |
---|---|
0.24.0 | Jan 10, 2024 |
0.23.2 | Nov 2, 2023 |
0.23.0 | Jan 31, 2023 |
0.21.0 | Oct 12, 2022 |
#2476 in Database interfaces
250KB
5.5K
SLoC
Firebird adapter for diesel ORM
Diesel is a safe, extensible ORM and Query Builder for Rust. With this crate you can use it for access the Firebird database.
This crate only implements the firebird backend for Diesel. To use diesel features, you must import it.
By default the lib will use the native client. If you want use the pure rust client, enable the pure_rust
feature.
Establishing a connection
use diesel::prelude::*;
use rsfbclient_diesel::FbConnection;
let conn = FbConnection::establish("firebird://SYSDBA:masterkey@localhost/test.fdb");
CRUD example
We also provide a CRUD example with employee.fdb
database.
lib.rs
:
The Firebird Diesel
This crate only implements the firebird backend for Diesel. To use diesel features, you must import it.
By default the lib will use the native client. If you want
use the pure rust client, enable the pure_rust
feature.
Establishing a connection
use diesel::prelude::*;
use rsfbclient_diesel::FbConnection;
let conn = FbConnection::establish("firebird://SYSDBA:masterkey@localhost/test.fdb");
Dependencies
~11–18MB
~237K SLoC