Expand description
Common utils for data access layer (DAL) implementations.
Modules§
- connection
- connection_
pool - error
- instrument
- DAL query instrumentation.
- macro_
utils - Miscellaneous helper macros.
- metrics
- utils
Macros§
- interpolate_
query - Interpolates the provided DB query consisting of several or comma-separated parts, each of parts being a string literal
or
_
._
parts are substituted with the provided variables in the order of appearance. - match_
query_ as - Builds a set of statically compiled DB queries based on the provided condition. This allows to avoid copying similar queries
or making them dynamic (i.e., using
sqlx::query()
function etc.). - write_
str - Writes to a
String
. This is equivalent towrite!
, but without the need tounwrap()
the result. - writeln_
str - Writing a line to a
String
. This is equivalent towriteln!
, but without the need tounwrap()
the result.