Skip to main content

Module locking

Module locking 

Source

Structs§

JoinEquality
left_table.left_column = right_table.right_column, an inner-join or WHERE equality between two distinct base relations.
LockingSelectMetadata
Locking SELECT facts later lock-ordering rules can query.

Functions§

extract_locking_select_metadata
Parse sql and return one record per SELECT that uses FOR UPDATE.
extract_locking_select_metadata_with_placeholders
Like extract_locking_select_metadata, where positions are the SQL line and column of each generated interpolation marker (EmbeddedSqlCall::recovered_placeholder_positions). Only identifiers at those positions count as bound values, so user-authored text that merely spells the marker stays a column.