#orm #framework #async

crash_orm_rocket

Integration for Crash ORM into rocket

3 releases

new 0.7.2 Dec 11, 2024
0.7.1 Dec 5, 2024
0.7.0 Dec 5, 2024

#1357 in Database interfaces

Download history 192/week @ 2024-12-02 178/week @ 2024-12-09

370 downloads per month

MIT license

125KB
2K SLoC

Crash ORM Rocket integration

This is an integration for Crash ORM into rocket.

See the provided tests to learn how to use this library.


lib.rs:

This crate integrates crash_orm into rocket.

To use this crate, attach the [CrashOrmDatabaseFairing] or [CrashOrmDatabaseMigrationFairing] to your rocket instance.

You can then access your configured connection with the request guard &State<CrashOrmDatabaseConnection>.

Dependencies

~19–50MB
~885K SLoC