Function sql::pure::purify [−][src]
pub fn purify(
catalog: &dyn SessionCatalog,
stmt: Statement<Raw>
) -> impl Future<Output = Result<Statement<Raw>, Error>>
Expand description
Purifies a statement, removing any dependencies on external state.
See the section on purification in the crate documentation for details.
Note that purification is asynchronous, and may take an unboundedly long
time to complete. As a result purification does not have access to a
SessionCatalog
, as that would require
locking access to the catalog for an unbounded amount of time.