Struct mz_coord::catalog::CatalogEntry
source · [−]pub struct CatalogEntry {
item: CatalogItem,
used_by: Vec<GlobalId>,
id: GlobalId,
oid: u32,
name: QualifiedObjectName,
}Fields
item: CatalogItemused_by: Vec<GlobalId>id: GlobalIdoid: u32name: QualifiedObjectNameImplementations
sourceimpl CatalogEntry
impl CatalogEntry
sourcepub fn desc(
&self,
name: &FullObjectName
) -> Result<Cow<'_, RelationDesc>, SqlCatalogError>
pub fn desc(
&self,
name: &FullObjectName
) -> Result<Cow<'_, RelationDesc>, SqlCatalogError>
Reports the description of the datums produced by this catalog item.
sourcepub fn func(&self) -> Result<&'static Func, SqlCatalogError>
pub fn func(&self) -> Result<&'static Func, SqlCatalogError>
Returns the mz_sql::func::Func associated with this CatalogEntry.
sourcepub fn index(&self) -> Option<&Index>
pub fn index(&self) -> Option<&Index>
Returns the inner Index if this entry is an index, else None.
sourcepub fn source(&self) -> Option<&Source>
pub fn source(&self) -> Option<&Source>
Returns the inner Source if this entry is a source, else None.
sourcepub fn secret(&self) -> Option<&Secret>
pub fn secret(&self) -> Option<&Secret>
Returns the inner Secret if this entry is a secret, else None.
pub fn connection(&self) -> Result<&Connection, SqlCatalogError>
sourcepub fn source_desc(&self) -> Result<&SourceDesc, SqlCatalogError>
pub fn source_desc(&self) -> Result<&SourceDesc, SqlCatalogError>
Returns the mz_storage::client::sources::SourceDesc associated with
this CatalogEntry.
sourcepub fn uses(&self) -> &[GlobalId]
pub fn uses(&self) -> &[GlobalId]
Collects the identifiers of the dataflows that this dataflow depends upon.
sourcepub fn item(&self) -> &CatalogItem
pub fn item(&self) -> &CatalogItem
Returns the CatalogItem associated with this catalog entry.
sourcepub fn name(&self) -> &QualifiedObjectName
pub fn name(&self) -> &QualifiedObjectName
Returns the fully qualified name of this catalog entry.
Trait Implementations
sourceimpl CatalogItem for CatalogEntry
impl CatalogItem for CatalogEntry
sourcefn name(&self) -> &QualifiedObjectName
fn name(&self) -> &QualifiedObjectName
Returns the fully qualified name of the catalog item.
sourcefn desc(
&self,
name: &FullObjectName
) -> Result<Cow<'_, RelationDesc>, SqlCatalogError>
fn desc(
&self,
name: &FullObjectName
) -> Result<Cow<'_, RelationDesc>, SqlCatalogError>
Returns a description of the result set produced by the catalog item. Read more
sourcefn func(&self) -> Result<&'static Func, SqlCatalogError>
fn func(&self) -> Result<&'static Func, SqlCatalogError>
Returns the resolved function. Read more
sourcefn source_desc(&self) -> Result<&SourceDesc, SqlCatalogError>
fn source_desc(&self) -> Result<&SourceDesc, SqlCatalogError>
Returns the resolved source connection. Read more
sourcefn connection(&self) -> Result<&Connection, SqlCatalogError>
fn connection(&self) -> Result<&Connection, SqlCatalogError>
Returns the resolved connection. Read more
sourcefn create_sql(&self) -> &str
fn create_sql(&self) -> &str
A normalized SQL statement that describes how to create the catalog item. Read more
sourcefn item_type(&self) -> SqlCatalogItemType
fn item_type(&self) -> SqlCatalogItemType
Returns the type of the catalog item.
sourcefn index_details(&self) -> Option<(&[MirScalarExpr], GlobalId)>
fn index_details(&self) -> Option<(&[MirScalarExpr], GlobalId)>
Returns the index details associated with the catalog item, if the catalog item is an index. Read more
sourcefn table_details(&self) -> Option<&[Expr<Aug>]>
fn table_details(&self) -> Option<&[Expr<Aug>]>
Returns the column defaults associated with the catalog item, if the catalog item is a table. Read more
sourcefn type_details(&self) -> Option<&CatalogTypeDetails<IdReference>>
fn type_details(&self) -> Option<&CatalogTypeDetails<IdReference>>
Returns the type information associated with the catalog item, if the catalog item is a type. Read more
sourceimpl Clone for CatalogEntry
impl Clone for CatalogEntry
sourcefn clone(&self) -> CatalogEntry
fn clone(&self) -> CatalogEntry
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl !RefUnwindSafe for CatalogEntry
impl Send for CatalogEntry
impl Sync for CatalogEntry
impl Unpin for CatalogEntry
impl !UnwindSafe for CatalogEntry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> FutureExt for T
impl<T> FutureExt for T
sourcefn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
sourcefn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message T in a tonic::Request
sourceimpl<T> ProgressEventTimestamp for T where
T: Data + Debug + Any,
impl<T> ProgressEventTimestamp for T where
T: Data + Debug + Any,
sourceimpl<P, R> ProtoType<R> for P where
R: RustType<P>,
impl<P, R> ProtoType<R> for P where
R: RustType<P>,
sourcefn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See RustType::from_proto.
sourcefn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See RustType::into_proto.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more