pub struct KeyspaceMeta(/* private fields */);
Expand description
A snapshot of the schema’s metadata.
Implementations§
Source§impl KeyspaceMeta
impl KeyspaceMeta
Sourcepub fn aggregrates_iter(&self) -> AggregateIterator ⓘ
pub fn aggregrates_iter(&self) -> AggregateIterator ⓘ
Iterator over the aggregates in this keyspace
Sourcepub fn fields_iter(&self) -> FieldIterator ⓘ
pub fn fields_iter(&self) -> FieldIterator ⓘ
Iterator over the field in this keyspace
Sourcepub fn table_by_name(&self, name: &str) -> Option<TableMeta>
pub fn table_by_name(&self, name: &str) -> Option<TableMeta>
Gets the table metadata for the provided table name.
Sourcepub fn materialized_view_by_name(
&self,
name: &str,
) -> Option<MaterializedViewMeta>
pub fn materialized_view_by_name( &self, name: &str, ) -> Option<MaterializedViewMeta>
Gets the materialized view metadata for the provided materialized view name.
Sourcepub fn user_type_by_name(&self, name: &str) -> Option<ConstDataType>
pub fn user_type_by_name(&self, name: &str) -> Option<ConstDataType>
Gets the data type for the provided type name.
Sourcepub fn get_function_by_name(
&self,
name: &str,
arguments: Vec<&str>,
) -> Option<FunctionMeta>
pub fn get_function_by_name( &self, name: &str, arguments: Vec<&str>, ) -> Option<FunctionMeta>
Gets the function metadata for the provided function name.
Sourcepub fn aggregate_by_name(
&self,
name: &str,
arguments: Vec<&str>,
) -> Option<AggregateMeta>
pub fn aggregate_by_name( &self, name: &str, arguments: Vec<&str>, ) -> Option<AggregateMeta>
Gets the aggregate metadata for the provided aggregate name.
Sourcepub fn table_iter(&mut self) -> TableIterator ⓘ
pub fn table_iter(&mut self) -> TableIterator ⓘ
Iterator over the tables in this keyspaces
Sourcepub fn function_iter(&mut self) -> FunctionIterator ⓘ
pub fn function_iter(&mut self) -> FunctionIterator ⓘ
Iterator over the functions in this keyspaces
Sourcepub fn user_type_iter(&mut self) -> UserTypeIterator ⓘ
pub fn user_type_iter(&mut self) -> UserTypeIterator ⓘ
Iterator over the UDTs in this keyspaces
Sourcepub fn materialized_view_iter(&mut self) -> MaterializedViewIterator ⓘ
pub fn materialized_view_iter(&mut self) -> MaterializedViewIterator ⓘ
Iterator over the materialized views in this keyspaces
Sourcepub fn field_by_name(&self, name: &str) -> Option<MetadataFieldValue>
pub fn field_by_name(&self, name: &str) -> Option<MetadataFieldValue>
Gets a metadata field for the provided name. Metadata fields allow direct access to the column data found in the underlying “keyspaces” metadata table.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyspaceMeta
impl RefUnwindSafe for KeyspaceMeta
impl !Send for KeyspaceMeta
impl !Sync for KeyspaceMeta
impl Unpin for KeyspaceMeta
impl UnwindSafe for KeyspaceMeta
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