pub trait SequenceLifecycleCatalog {
// Required methods
fn temporary_schema_name(&self) -> String;
fn sequence_is_owned(&self, relation: &RelationIdentity) -> bool;
fn schema_exists(&self, schema: &str) -> bool;
fn current_user_name(&self) -> String;
fn require_schema_create(
&self,
schema: &str,
role: &str,
) -> Result<(), SQLError>;
fn relation_kind_at(
&self,
name: &str,
) -> Result<Option<&'static str>, String>;
}Expand description
Namespace and ownership metadata needed to bind one sequence lifecycle target.
Required Methods§
fn temporary_schema_name(&self) -> String
fn sequence_is_owned(&self, relation: &RelationIdentity) -> bool
fn schema_exists(&self, schema: &str) -> bool
fn current_user_name(&self) -> String
fn require_schema_create( &self, schema: &str, role: &str, ) -> Result<(), SQLError>
fn relation_kind_at(&self, name: &str) -> Result<Option<&'static str>, String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".