Skip to main content

EnumLabelCatalog

Trait EnumLabelCatalog 

Source
pub trait EnumLabelCatalog {
    // Required methods
    fn enum_type_labels(
        &self,
        type_oid: u32,
    ) -> Result<Option<Arc<EnumTypeLabels>>>;
    fn enum_label_uncommitted(&self, label_oid: u32) -> bool;
    fn enum_type_name(&self, type_oid: u32) -> Result<Option<String>>;
    fn has_enum_types(&self) -> bool;
}
Expand description

Catalog access for enum label input and output, supplied by the statement’s execution context and by catalog-aware binding.

Required Methods§

Source

fn enum_type_labels(&self, type_oid: u32) -> Result<Option<Arc<EnumTypeLabels>>>

The labels of one enum type in the statement’s catalog generation, or None when the catalog has no such type.

Source

fn enum_label_uncommitted(&self, label_oid: u32) -> bool

Whether the current transaction added this label to a type that it did not create. PostgreSQL rejects such a label until the transaction commits.

Source

fn enum_type_name(&self, type_oid: u32) -> Result<Option<String>>

format_type_be of the type, which qualifies a type hidden by the search path.

Source

fn has_enum_types(&self) -> bool

Whether the statement catalog defines any enum type; binding skips enum literal validation otherwise.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§