HomeDevCentral

Provide a database module

Description

Provide a database module

Summary:
The database module allows to create a r2d2 pool, with PostgreSQL
Diesel connections.

The module has been prepared refactoring the code to initialize
a database pool or to test if a database connection works.

Some of the code is extracted from the Rocket manual,
see https://rocket.rs/guide/state/#databases

Test Plan:
Examples provided for documentation are extracted
from API production code

Reviewers: dereckson

Reviewed By: dereckson

Differential Revision: https://devcentral.nasqueron.org/D1662

Details

Provenance
derecksonAuthored on Sep 4 2018, 14:23
derecksonPushed on Sep 4 2018, 14:28
Reviewer
dereckson
Differential Revision
D1662: Provide a database module
Parents
rLFc70b6d09159b: Improve Cargo metadata
Branches
Unknown
Tags
Unknown