SqlCatalog

Struct SqlCatalog 

Source
pub struct SqlCatalog { /* private fields */ }

Implementations§

Source§

impl SqlCatalog

Source

pub async fn new( url: &str, name: &str, object_store: ObjectStoreBuilder, ) -> Result<Self, Error>

Source

pub fn catalog_list(&self) -> Arc<SqlCatalogList>

Source§

impl SqlCatalog

Source

pub fn duplicate(&self, name: &str) -> Self

Trait Implementations§

Source§

impl Catalog for SqlCatalog

Source§

fn name(&self) -> &str

Catalog name

Source§

fn create_namespace<'life0, 'life1, 'async_trait>( &'life0 self, namespace: &'life1 Namespace, properties: Option<HashMap<String, String>>, ) -> Pin<Box<dyn Future<Output = Result<HashMap<String, String>, IcebergError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Create a namespace in the catalog

Source§

fn drop_namespace<'life0, 'life1, 'async_trait>( &'life0 self, _namespace: &'life1 Namespace, ) -> Pin<Box<dyn Future<Output = Result<(), IcebergError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Drop a namespace in the catalog

Source§

fn load_namespace<'life0, 'life1, 'async_trait>( &'life0 self, _namespace: &'life1 Namespace, ) -> Pin<Box<dyn Future<Output = Result<HashMap<String, String>, IcebergError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Load the namespace properties from the catalog

Source§

fn update_namespace<'life0, 'life1, 'async_trait>( &'life0 self, _namespace: &'life1 Namespace, _updates: Option<HashMap<String, String>>, _removals: Option<Vec<String>>, ) -> Pin<Box<dyn Future<Output = Result<(), IcebergError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Update the namespace properties in the catalog

Source§

fn namespace_exists<'life0, 'life1, 'async_trait>( &'life0 self, _namespace: &'life1 Namespace, ) -> Pin<Box<dyn Future<Output = Result<bool, IcebergError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Check if a namespace exists

Source§

fn list_tabulars<'life0, 'life1, 'async_trait>( &'life0 self, namespace: &'life1 Namespace, ) -> Pin<Box<dyn Future<Output = Result<Vec<Identifier>, IcebergError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Lists all tables, views, and materialized views in the given namespace. Read more
Source§

fn list_namespaces<'life0, 'life1, 'async_trait>( &'life0 self, _parent: Option<&'life1 str>, ) -> Pin<Box<dyn Future<Output = Result<Vec<Namespace>, IcebergError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Lists all namespaces under an optional parent namespace. Read more
Source§

fn tabular_exists<'life0, 'life1, 'async_trait>( &'life0 self, identifier: &'life1 Identifier, ) -> Pin<Box<dyn Future<Output = Result<bool, IcebergError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Checks if a table, view, or materialized view exists in the catalog. Read more
Source§

fn drop_table<'life0, 'life1, 'async_trait>( &'life0 self, identifier: &'life1 Identifier, ) -> Pin<Box<dyn Future<Output = Result<(), IcebergError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Drops a table from the catalog and deletes all associated data and metadata files. Read more
Source§

fn drop_view<'life0, 'life1, 'async_trait>( &'life0 self, identifier: &'life1 Identifier, ) -> Pin<Box<dyn Future<Output = Result<(), IcebergError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Drops a view from the catalog and deletes its metadata. Read more
Source§

fn drop_materialized_view<'life0, 'life1, 'async_trait>( &'life0 self, identifier: &'life1 Identifier, ) -> Pin<Box<dyn Future<Output = Result<(), IcebergError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Drops a materialized view from the catalog and deletes its metadata and data files. Read more
Source§

fn load_tabular<'life0, 'async_trait>( self: Arc<Self>, identifier: &'life0 Identifier, ) -> Pin<Box<dyn Future<Output = Result<Tabular, IcebergError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Loads a table, view, or materialized view from the catalog. Read more
Source§

fn create_table<'async_trait>( self: Arc<Self>, identifier: Identifier, create_table: CreateTable, ) -> Pin<Box<dyn Future<Output = Result<Table, IcebergError>> + Send + 'async_trait>>
where Self: 'async_trait,

Creates a new table in the catalog with the specified configuration. Read more
Source§

fn create_view<'async_trait>( self: Arc<Self>, identifier: Identifier, create_view: CreateView<Option<()>>, ) -> Pin<Box<dyn Future<Output = Result<View, IcebergError>> + Send + 'async_trait>>
where Self: 'async_trait,

Creates a new view in the catalog with the specified configuration. Read more
Source§

fn create_materialized_view<'async_trait>( self: Arc<Self>, identifier: Identifier, create_view: CreateMaterializedView, ) -> Pin<Box<dyn Future<Output = Result<MaterializedView, IcebergError>> + Send + 'async_trait>>
where Self: 'async_trait,

Creates a new materialized view in the catalog with the specified configuration. Read more
Source§

fn update_table<'async_trait>( self: Arc<Self>, commit: CommitTable, ) -> Pin<Box<dyn Future<Output = Result<Table, IcebergError>> + Send + 'async_trait>>
where Self: 'async_trait,

Updates a table’s metadata by applying the specified commit operation. Read more
Source§

fn update_view<'async_trait>( self: Arc<Self>, commit: CommitView<Option<()>>, ) -> Pin<Box<dyn Future<Output = Result<View, IcebergError>> + Send + 'async_trait>>
where Self: 'async_trait,

Updates a view’s metadata by applying the specified commit operation. Read more
Source§

fn update_materialized_view<'async_trait>( self: Arc<Self>, commit: CommitView<FullIdentifier>, ) -> Pin<Box<dyn Future<Output = Result<MaterializedView, IcebergError>> + Send + 'async_trait>>
where Self: 'async_trait,

Updates a materialized view’s metadata by applying the specified commit operation. Read more
Source§

fn register_table<'life0, 'async_trait>( self: Arc<Self>, identifier: Identifier, metadata_location: &'life0 str, ) -> Pin<Box<dyn Future<Output = Result<Table, IcebergError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Registers an existing table in the catalog using its metadata location. Read more
Source§

impl Debug for SqlCatalog

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T