Struct mz_adapter::catalog::Database
source · pub struct Database {
pub name: String,
pub id: DatabaseId,
pub oid: u32,
pub schemas_by_id: BTreeMap<SchemaId, Schema>,
pub schemas_by_name: BTreeMap<String, SchemaId>,
pub owner_id: RoleId,
pub privileges: PrivilegeMap,
}
Fields§
§name: String
§id: DatabaseId
§oid: u32
§schemas_by_id: BTreeMap<SchemaId, Schema>
§schemas_by_name: BTreeMap<String, SchemaId>
§owner_id: RoleId
§privileges: PrivilegeMap
Trait Implementations§
source§impl CatalogDatabase for Database
impl CatalogDatabase for Database
source§fn id(&self) -> DatabaseId
fn id(&self) -> DatabaseId
Returns a stable ID for the database.
source§fn has_schemas(&self) -> bool
fn has_schemas(&self) -> bool
Returns whether the database contains schemas.
source§fn schema_ids(&self) -> &BTreeMap<String, SchemaId>
fn schema_ids(&self) -> &BTreeMap<String, SchemaId>
Returns the schemas of the database as a map from schema name to
schema ID.
source§fn schemas(&self) -> Vec<&dyn CatalogSchema>
fn schemas(&self) -> Vec<&dyn CatalogSchema>
Returns the schemas of the database.
source§fn privileges(&self) -> &PrivilegeMap
fn privileges(&self) -> &PrivilegeMap
Returns the privileges associated with the database.
source§impl Serialize for Database
impl Serialize for Database
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 Database
impl Send for Database
impl Sync for Database
impl Unpin for Database
impl UnwindSafe for Database
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
.