Skip to main content

RoutineNameCatalog

Trait RoutineNameCatalog 

Source
pub trait RoutineNameCatalog {
    // Required methods
    fn schema_security(&self, schema: &str) -> Option<BoundSchemaSecurity>;
    fn current_role(&self) -> RoleReference;
    fn search_path(&self) -> Vec<String>;
    fn require_schema_usage(
        &self,
        schema: &str,
        role: &RoleReference,
    ) -> Result<(), SQLError>;
    fn schema_has_usage(&self, schema: &str, role: &RoleReference) -> bool;
    fn routine_type_display(&self, type_name: &str) -> String;
    fn routine_identity_display(&self, oid: u32) -> Result<String, SQLError>;
}

Required Methods§

Source

fn schema_security(&self, schema: &str) -> Option<BoundSchemaSecurity>

Source

fn current_role(&self) -> RoleReference

Source

fn search_path(&self) -> Vec<String>

Source

fn require_schema_usage( &self, schema: &str, role: &RoleReference, ) -> Result<(), SQLError>

Source

fn schema_has_usage(&self, schema: &str, role: &RoleReference) -> bool

Source

fn routine_type_display(&self, type_name: &str) -> String

format_type_be of a routine argument type: a user-defined type, recorded by identity, is spelled by its current name.

Source

fn routine_identity_display(&self, oid: u32) -> Result<String, SQLError>

format_procedure of an existing routine, including search-path qualification and its current input type names. Call before retaining the routine registry’s write guard.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§