Re-exports§
pub use tracing;
Modules§
- alias_
format - Alias format for different table aliases.
- alias_
translator - Translate a canonical table alias into another AliasFormat format.
- backend
- Toql Api implementations that are database independend
- cache
- Cache to lookup static table information and SQL statements.
- deserialize
- Deserialize Error
- error
- Error handling.
- field_
handler - A FieldHandler may modify a mapped column or expression.
- from_
iterator - Collect keys and structs that implement
Into<Query>
into Query. - from_
row - Trait to convert result row into structs.
- identity
- Identity trait.
- join
- Join enum to simplify update handling of joins.
- join_
handler - A JoinHandler may modify an ON condition in a join clause.
- join_
macro - Convenience macros to work with the Join type.
- key
- Table mapping information for keys.
- key_
fields - Toql query field information for keys.
- keyed
- Traits to access and change the key of a Toql derived struct.
- log_
macro - Macros for backends to log SQL statements and TOQL queries in a common way
- map_key
- An iterator that maps entities into keys.
- mock_db
- The Toql Mock Db provides a dummy database that can be used for testing or documentation examples.
- none_
error_ macro - page
- Page is used as an argument in load functions.
- page_
counts - Return type of load_page method.
- parameter_
map - Combines multiple aux parameters in a lightweight way.
- predicate_
handler - A PredicateHandler may modify a mapped column or expression.
- query
- The Query represents a Toql query but also comes with query builder methods.
- query_
fields - Trait to associate a field type provider with a struct.
- query_
parser - The query parser can turn a string that follows the Toql query syntax into a Query.
- query_
path - Trait to associate a field type provider with a struct.
- result
- A result with a
ToqlError
. - role_
expr - A boolean role expression that can be evaluated.
- role_
validator - Validate a RoleExpr.
- sql
- A raw SQL statement.
- sql_arg
- An argument for SQL expressions.
- sql_
builder - The SQL builder can build different select statements.
- sql_
expr - SQL expression than can be resolved into raw SQL.
- table_
mapper - Translate Toql query fields to database columns, SQL expressions, joins and merges.
- table_
mapper_ registry - A registry for all table mappers.
- toql_
api - The common interface for all database backends.
- tree
- Traits to do operations on nested structs.
- val_
macro - Convenience macros to work with the
Option
type.
Macros§
- join
- log_
literal_ sql - log_
mut_ literal_ sql - log_
mut_ sql - log_sql
- log_
toql - none_
error - ok_
or_ fail - row
- row macro for easier row creation
- rval
- rval_
join - val