Crate rocket_sqlite_rw_pool

Source

Re-exports§

pub use inventory;
pub use paste;
pub use rust_embed;

Macros§

define_database
define_from_request_for_gettable_connection
define_from_request_for_pool_holder
define_sentinel_for_gettable_connection
define_sentinel_for_pool_holder

Structs§

AuthorizedConnector
Struct representing an authorized connector. This connector is pre-authorized, meaning it can create write connections directly.
BatchedBulkValuesClause
A helper for splitting up arbtirary sized bulk inserts into smaller batches which can be executed against a connection.
ConnectionPool
Pool of database connections.
Connector
Connector struct that can be used to get read or write connections from the pool.
PoolInitializer
Wrapper for a PoolInitializerFn.
ReadConnection
A read-only connection to the database.
WriteConnection
A write connection to the database.

Enums§

Error
WriteAuthorization
Enum representing different types of write authorizations. Used for security checks and other related operations.

Functions§

execute_with_params
Execute the given INSERT query against the given transaction with the given parameters.
execute_with_params_named
Execute the given INSERT query against the given transaction with the given parameters.
query_optional_with_params
Execute the given query and return the result, which can be at most one row.
query_optional_with_params_named
Execute the given query and return the result, which can be at most one row.
query_single_with_params
Run a query which should return exactly one row (with the given parameters)
query_single_with_params_named
Run a query which should return exactly one row (with the given parameters)
query_with_params
Execute the given SELECT query against the given transaction with the given parameters, returning the result.
query_with_params_named
Execute the given SELECT query against the given transaction with the given parameters, returning the result.
query_without_params
Execute the given query (which takes no parameters) and return the result.
values_clause
Returns a string of the form VALUES (?,?,...),(?,?,...),... with the given number of columns and rows.

Type Aliases§

PoolInitializerFn
Function to run on every connection grabbed from a pool.