no-mistakes-postgres-engine 0.109.131

PostgreSQL embedded SQL extraction, schema catalog, and replay-safety analysis for no-mistakes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! An exported `const` whose initializer is already SQL text.
//!
//! Importers splice it through the same hole as a helper. A tagged fragment is
//! only safe for `.append`; an untagged template would stringify the object.

use crate::embedded::walk::resolve::functions::provenance::RecoveredSql;

#[derive(Clone, PartialEq, Eq)]
pub struct ExportedConstant {
    #[doc(hidden)]
    pub sql: RecoveredSql,
    /// `sql\`...\`` statement object, not a string literal.
    #[doc(hidden)]
    pub fragment: bool,
}