Skip to main content

ProcSignature

Struct ProcSignature 

Source
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: bool

True 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: bool

True when SHOW PROCEDURES lists it.

§writes: bool

True 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: bool

True 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

Source

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.)

Source

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.

Source

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.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V