Crate db_core[][src]

Expand description

libadmin database operations

Traits and datastructures used in libadmin to interact with database.

To use an unsupported database with libadmin, traits present within this crate should be implemented.

Organisation

Database functionallity is divided accross various modules:

  • errors: error data structures used in this crate
  • ops: meta operations like connection pool creation, migrations and getting connection from pool

Re-exports

pub use ops::GetConnection;

Modules

useful imports for supporting a new database

represents all the ways a trait can fail using this crate

meta operations like migration and connecting to a database

useful imports for users working with a supported database

Test utilities

Structs

data structure describing credentials of a user

payload to register a user with username and email

data structure containing only a password field

payload to update email in the database

payload to update a username in database

payload to register a user with only username

Traits