pub struct Ella { /* private fields */ }Implementations§
Source§impl Ella
impl Ella
pub async fn shutdown(self) -> Result<()>
pub async fn query(&self, sql: impl AsRef<str>) -> Result<Lazy>
Sourcepub async fn execute(&self, sql: impl AsRef<str>) -> Result<()>
pub async fn execute(&self, sql: impl AsRef<str>) -> Result<()>
Execute a SQL statement on the datastore.
This is shorthand for self.query("<cmd>").execute().
pub fn table<'a>(&'a self, table: impl Into<TableRef<'a>>) -> GetTable<'a>
pub fn catalog<'a>(&'a self, catalog: impl Into<Id<'a>>) -> GetCatalog<'a>
pub fn schema<'a>(&'a self, schema: impl Into<SchemaRef<'a>>) -> GetSchema<'a>
Sourcepub async fn use_catalog<'a>(self, catalog: impl Into<Id<'a>>) -> Result<Self>
pub async fn use_catalog<'a>(self, catalog: impl Into<Id<'a>>) -> Result<Self>
Set catalog as the default catalog for the current context.
This is broadly equivalent to the SQL statement USE CATALOG <catalog>.
Sourcepub async fn use_schema<'a>(self, schema: impl Into<Id<'a>>) -> Result<Self>
pub async fn use_schema<'a>(self, schema: impl Into<Id<'a>>) -> Result<Self>
Set schema as the default schema for the current context.
This is broadly equivalent to the SQL statement USE SCHEMA <schema>.
pub fn config(&self) -> Config
pub fn default_catalog(&self) -> Id<'static>
pub fn default_schema(&self) -> Id<'static>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Ella
impl !RefUnwindSafe for Ella
impl Send for Ella
impl Sync for Ella
impl Unpin for Ella
impl !UnwindSafe for Ella
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