Struct ella_server::client::EllaClient
source · 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 !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> 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> 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