Skip to main content

ExpressionNames

Trait ExpressionNames 

Source
pub trait ExpressionNames {
    // Required methods
    fn column(&self, attribute: i64) -> Result<String, SQLError>;
    fn routine(&self, oid: i64) -> Result<Vec<String>, SQLError>;
    fn type_name(&self, oid: i64, modifier: i64) -> Result<String, SQLError>;

    // Provided methods
    fn relation_name(&self) -> Result<String, SQLError> { ... }
    fn collation(&self, oid: i64) -> Result<Vec<String>, SQLError> { ... }
    fn value_catalog(&self) -> Option<&dyn SQLValueCatalog> { ... }
    fn standard_conforming_strings(&self) -> Result<bool, SQLError> { ... }
    fn parameter(&self, number: i64) -> Result<String, SQLError> { ... }
}

Required Methods§

Source

fn column(&self, attribute: i64) -> Result<String, SQLError>

Source

fn routine(&self, oid: i64) -> Result<Vec<String>, SQLError>

Source

fn type_name(&self, oid: i64, modifier: i64) -> Result<String, SQLError>

Provided Methods§

Source

fn relation_name(&self) -> Result<String, SQLError>

The current local relation name used by a whole-row Var.

Source

fn collation(&self, oid: i64) -> Result<Vec<String>, SQLError>

Current SQL-visible name of a selected collation identity.

Source

fn value_catalog(&self) -> Option<&dyn SQLValueCatalog>

Type identities and current output metadata for admitted physical constants.

Source

fn standard_conforming_strings(&self) -> Result<bool, SQLError>

The invoking session’s string-literal rule for reconstructed SQL.

Source

fn parameter(&self, number: i64) -> Result<String, SQLError>

SQL spelling of an external parameter after the renderer validates its positive number.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§