no_mistakes_postgres_engine/embedded/helpers/constant.rs
1//! An exported `const` whose initializer is already SQL text.
2//!
3//! Importers splice it through the same hole as a helper. A tagged fragment is
4//! only safe for `.append`; an untagged template would stringify the object.
5
6use crate::embedded::walk::resolve::functions::provenance::RecoveredSql;
7
8#[derive(Clone, PartialEq, Eq)]
9pub struct ExportedConstant {
10 #[doc(hidden)]
11 pub sql: RecoveredSql,
12 /// `sql\`...\`` statement object, not a string literal.
13 #[doc(hidden)]
14 pub fragment: bool,
15}