pub struct EllaClient { /* private fields */ }Implementations§
Source§impl EllaClient
impl EllaClient
pub async fn connect(channel: Channel) -> Result<Self>
pub async fn create_table( &self, table: TableRef<'_>, info: TableInfo, if_not_exists: bool, or_replace: bool, ) -> Result<RemoteTable>
pub async fn get_table( &self, table: TableRef<'_>, ) -> Result<Option<RemoteTable>>
pub async fn query<S: Into<String>>(&self, query: S) -> Result<Lazy>
pub fn config(&self) -> EllaConfig
pub fn default_catalog(&self) -> Id<'static>
pub fn default_schema(&self) -> Id<'static>
pub async fn set_config( &mut self, config: EllaConfig, persist: bool, ) -> Result<()>
pub async fn use_catalog<'a>( &mut self, catalog: impl Into<Id<'a>>, ) -> Result<()>
pub async fn use_schema<'a>(&mut self, schema: impl Into<Id<'a>>) -> Result<()>
pub async fn create_catalog<'a>( &mut self, catalog: impl Into<Id<'a>>, if_not_exists: bool, ) -> Result<()>
pub async fn create_schema<'a>( &mut self, schema: impl Into<SchemaRef<'a>>, if_not_exists: bool, ) -> Result<()>
Trait Implementations§
Source§impl Clone for EllaClient
impl Clone for EllaClient
Source§fn clone(&self) -> EllaClient
fn clone(&self) -> EllaClient
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for EllaClient
impl !RefUnwindSafe for EllaClient
impl Send for EllaClient
impl Sync for EllaClient
impl Unpin for EllaClient
impl !UnwindSafe for EllaClient
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§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