no-mistakes-postgres-sql 0.109.131

PostgreSQL SQL parsing, statement facts, and identifier extraction for no-mistakes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::{LookupHistory, ScopeStack};

impl ScopeStack {
    pub(in crate::statements::keyed_lookups) fn outer_guards(&self) -> LookupHistory {
        self.outer_guards.correlated_guards()
    }

    pub(in crate::statements::keyed_lookups) fn with_outer_guards(
        &mut self,
        guards: LookupHistory,
        inspect: impl FnOnce(&mut Self),
    ) {
        let old = std::mem::replace(&mut self.outer_guards, guards);
        inspect(self);
        self.outer_guards = old;
    }
}