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

#2351 in Database interfaces

Download history 4/week @ 2024-07-29 140/week @ 2024-08-26 17/week @ 2024-09-16 10/week @ 2024-09-23 14/week @ 2024-09-30

387 downloads per month

MIT license

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