Skip to main content

Variables

Trait Variables 

Source
pub trait Variables {
    // Required methods
    fn column(
        &self,
        names: &[&str],
        at: Option<usize>,
    ) -> Result<Option<Variable>>;
    fn param(&self, number: usize) -> Option<Variable>;
}
Expand description

The variables of a PL/pgSQL function that the queries of the function can name.

Required Methods§

Source

fn column(&self, names: &[&str], at: Option<usize>) -> Result<Option<Variable>>

resolve_column_ref: the variable that the names of a column reference name, such as x, r.f or block.x, or None when no variable has the names. * is not a name here.

§Errors

The error of a field that a record does not have, and of a record with no value yet.

Source

fn param(&self, number: usize) -> Option<Variable>

plpgsql_param_ref: the variable of $n, which is the argument n of the function, or None.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§