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 !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> 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