pub struct EllaState { /* private fields */ }
Implementations§
Source§impl EllaState
impl EllaState
pub fn with_config(&mut self, config: EllaConfig)
pub async fn query(&self, sql: impl AsRef<str>) -> Result<Lazy>
pub async fn create_topic( &self, id: TableId<'static>, info: TopicInfo, if_not_exists: bool, or_replace: bool, ) -> Result<Arc<EllaTopic>>
pub async fn create_view( &self, id: TableId<'static>, info: ViewInfo, if_not_exists: bool, or_replace: bool, ) -> Result<Arc<EllaView>>
pub async fn create_table( &self, id: TableId<'static>, info: TableInfo, if_not_exists: bool, or_replace: bool, ) -> Result<Arc<EllaTable>>
pub fn table(&self, table: TableId<'_>) -> Option<Arc<EllaTable>>
pub async fn create_catalog<'a>( &self, catalog: impl Into<Id<'a>>, if_not_exists: bool, ) -> Result<Arc<EllaCatalog>>
pub async fn create_schema<'a>( &self, schema: impl Into<SchemaRef<'a>>, if_not_exists: bool, ) -> Result<Arc<EllaSchema>>
pub fn resolve(&self, table: TableRef<'_>) -> TableId<'static>
pub fn log(&self) -> &Arc<TransactionLog>
pub fn root(&self) -> &Path
pub fn session(&self) -> &SessionState
pub fn cluster(&self) -> &Arc<EllaCluster>
pub fn store(&self) -> &Arc<dyn ObjectStore + 'static>
pub fn config(&self) -> &EllaConfig
pub fn default_catalog(&self) -> &Id<'static>
pub fn default_schema(&self) -> &Id<'static>
pub fn codec(&self) -> EllaExtensionCodec
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EllaState
impl !RefUnwindSafe for EllaState
impl Send for EllaState
impl Sync for EllaState
impl Unpin for EllaState
impl !UnwindSafe for EllaState
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 more