Crate zksync_db_connection

Source
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 to write!, but without the need to unwrap() the result.
writeln_str
Writing a line to a String. This is equivalent to writeln!, but without the need to unwrap() the result.