Skip to content

Commit

Permalink
feat: Add Sync + Send to Catalog trait (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenglin-charlie-li authored Feb 20, 2024
1 parent 07c9e0f commit 027f271
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/iceberg/src/catalog/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ use crate::table::Table;
use crate::{Error, ErrorKind, Result};
use async_trait::async_trait;
use std::collections::HashMap;
use std::fmt::Debug;
use std::mem::take;
use std::ops::Deref;
use typed_builder::TypedBuilder;
use uuid::Uuid;

/// The catalog API for Iceberg Rust.
#[async_trait]
pub trait Catalog: std::fmt::Debug {
pub trait Catalog: Debug + Sync + Send {
/// List namespaces from table.
async fn list_namespaces(&self, parent: Option<&NamespaceIdent>)
-> Result<Vec<NamespaceIdent>>;
Expand Down

0 comments on commit 027f271

Please sign in to comment.