Crate rocket_sqlite_rw_pool
source ·Re-exports
pub use inventory;pub use paste;pub use rust_embed;
Macros
Structs
- Struct representing an authorized connector. This connector is pre-authorized, meaning it can create write connections directly.
- A helper for splitting up arbtirary sized bulk inserts into smaller batches which can be executed against a connection.
- Pool of database connections.
- Connector struct that can be used to get read or write connections from the pool.
- Wrapper for a
PoolInitializerFn. - A read-only connection to the database.
- A write connection to the database.
Enums
- Enum representing different types of write authorizations. Used for security checks and other related operations.
Functions
- Execute the given INSERT query against the given transaction with the given parameters.
- Execute the given query and return the result, which can be at most one row.
- Run a query which should return exactly one row (with the given parameters)
- Execute the given SELECT query against the given transaction with the given parameters, returning the result.
- Execute the given query (which takes no parameters) and return the result.
- Returns a string of the form
VALUES (?,?,...),(?,?,...),...with the given number of columns and rows.
Type Aliases
- Function to run on every connection grabbed from a pool.