pub struct ProcSignature {
pub name: &'static str,
pub description: &'static str,
pub mode: &'static str,
pub works_on_system: bool,
pub admin: bool,
pub deprecated_by: Option<DeprecatedBy>,
pub executable: bool,
pub listed: bool,
pub writes: bool,
pub store_level: bool,
/* private fields */
}Expand description
Static signature and catalog metadata of a built-in procedure.
Fields§
§name: &'static str§description: &'static str§mode: &'static str§works_on_system: bool§admin: bool§deprecated_by: Option<DeprecatedBy>The replacement when the procedure is deprecated (CIP-157’s
deprecatedBy); None means not deprecated. One fact, so a bool and
its replacement cannot disagree.
executable: boolTrue when CALL can actually execute it (as opposed to a
catalog-only entry pinned by CIP-84/CIP-113/CIP-157 scenarios that no
scenario calls).
listed: boolTrue when SHOW PROCEDURES lists it.
writes: boolTrue when a CALL mutates the graph or catalog (ADR-0116 §4) — the
write classification relate’s namespace rules read, so there is
one table (mode does not encode this: DBMS-mode entries such as
dbms.components and tx.setMetaData are not graph/catalog writes).
store_level: boolTrue when the procedure’s commit is a store-level commit of its own
(ADR-0120 §3) — the db.ontology.set / db.ontology.drop store ops,
which push a store-level redo and require the implicit-only /
no-mixed-writes gates; the in-overlay db.ontology.apply write is
not one. The store-op classification reads this table the same way
the write classification reads writes.
Implementations§
Source§impl ProcSignature
impl ProcSignature
Sourcepub fn required_args(&self) -> usize
pub fn required_args(&self) -> usize
Number of leading parameters without a default — the minimum arity a
CALL may pass. (args lists required parameters first.)
Sourcepub fn parameters(
&self,
) -> impl Iterator<Item = (&'static str, &'static str)> + '_
pub fn parameters( &self, ) -> impl Iterator<Item = (&'static str, &'static str)> + '_
The formal parameters as (name, declared type) pairs, required
parameters first — a caller outside this crate’s view of args
(ProcArgMeta is crate-internal). The compile-time CALL
validation reads this.
Sourcepub fn return_columns(&self) -> impl Iterator<Item = &'static str> + '_
pub fn return_columns(&self) -> impl Iterator<Item = &'static str> + '_
The YIELD column names, in signature order — a caller outside this
crate’s view of returns.