Expand description
SQLite module. This module provides a minimal yet useful Entity framework on top of SQLite with ability to perform any SQL query possible and hydrate results in Rust structs.
Modules§
- Helpers to handle SQLite errors
Structs§
- Builder of SQLite connection
- Database query result Iterator wrapper. This wrapper allows to call entity hydration for each extracted result.
- Projection is a definition of field mapping during a query. Fields come from one or several source structures (can be tables, views or sub queries) and are mapped to a Query as output.
- Each projection field is defined by
- Handful tool to store SQL source aliases.
- The SqliteCleaner is responsible for cleaning up databases by performing tasks defined in SqliteCleaningTask.
- Pool of Sqlite connections
- SqliteConnection wrapper for a pooled connection
- Sqlite transaction wrapper.
- Where condition builder.
Enums§
- Options to apply to the connection
- SqLite hydration error
- Tasks that can be performed by the SqliteCleaner
Traits§
- Extension trait for the SqliteConnection type.
- Get all condition builder.
- Define a query to perform on database and return iterator of a defined entity.
- How to hydrate an entity from a SQLite result row
Type Aliases§
- Type of the connection used in Mithril