Struct mz_adapter::catalog::Schema
source · pub struct Schema {
pub name: QualifiedSchemaName,
pub id: SchemaSpecifier,
pub oid: u32,
pub items: BTreeMap<String, GlobalId>,
pub functions: BTreeMap<String, GlobalId>,
pub owner_id: RoleId,
pub privileges: PrivilegeMap,
}
Fields§
§name: QualifiedSchemaName
§id: SchemaSpecifier
§oid: u32
§items: BTreeMap<String, GlobalId>
§functions: BTreeMap<String, GlobalId>
§owner_id: RoleId
§privileges: PrivilegeMap
Implementations§
source§impl Schema
impl Schema
pub fn into_durable_schema(self, database_id: Option<DatabaseId>) -> Schema
Trait Implementations§
source§impl CatalogSchema for Schema
impl CatalogSchema for Schema
source§fn database(&self) -> &ResolvedDatabaseSpecifier
fn database(&self) -> &ResolvedDatabaseSpecifier
Returns a fully-specified id of the database
source§fn name(&self) -> &QualifiedSchemaName
fn name(&self) -> &QualifiedSchemaName
Returns a fully-specified name of the schema.
source§fn id(&self) -> &SchemaSpecifier
fn id(&self) -> &SchemaSpecifier
Returns a stable ID for the schema.
source§fn item_ids(&self) -> &BTreeMap<String, GlobalId>
fn item_ids(&self) -> &BTreeMap<String, GlobalId>
Returns the items of the schema as a map from item name to
item ID.
source§fn privileges(&self) -> &PrivilegeMap
fn privileges(&self) -> &PrivilegeMap
Returns the privileges associated with the schema.
source§impl Serialize for Schema
impl Serialize for Schema
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnwindSafe for Schema
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> PreferredContainer for Twhere
T: Clone,
impl<T> PreferredContainer for Twhere T: Clone,
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.