no-mistakes-postgres-sql 0.109.128

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
use super::{SqlBoundItemKind, SqlBoundQuery};

impl SqlBoundQuery {
    /// Opaque FROM/projection sources retain unknown row expansion through query wrappers.
    /// A result LIMIT cannot establish the amount of work inside those sources.
    pub fn has_opaque_row_inputs(&self) -> bool {
        self.items.iter().any(|item| match &item.kind {
            SqlBoundItemKind::Opaque => true,
            SqlBoundItemKind::Query(query) => query.has_opaque_row_inputs(),
            _ => false,
        })
    }
}