pub struct DeltaFunnelRuntime { /* private fields */ }Expand description
Blocking runtime boundary for high-level Delta Funnel session actions.
This type is intended to be owned by synchronous host bindings. Constructing it only creates a Tokio runtime; it does not register sources, plan SQL, execute DataFusion, contact SQL Server, or write rows.
The blocking methods are intended for non-async host threads. Rust async
callers should use DeltaFunnelSession async methods directly. Calling
these methods from inside an active Tokio runtime returns a configuration
error instead of relying on Tokio’s nested-runtime panic.
Implementations§
Source§impl DeltaFunnelRuntime
impl DeltaFunnelRuntime
Sourcepub fn new() -> Result<Self, DeltaFunnelError>
pub fn new() -> Result<Self, DeltaFunnelError>
Creates a multi-threaded Tokio runtime for blocking host integrations.
§Errors
Returns a configuration error if Tokio cannot create the runtime.
Sourcepub fn table_from_sql(
&self,
session: &mut DeltaFunnelSession,
sql: &str,
) -> Result<LazyTable, DeltaFunnelError>
pub fn table_from_sql( &self, session: &mut DeltaFunnelSession, sql: &str, ) -> Result<LazyTable, DeltaFunnelError>
Runs async SQL table planning for a synchronous host.
§Errors
Returns the same error as DeltaFunnelSession::table_from_sql.
Sourcepub fn dry_run_to_mssql(
&self,
session: &DeltaFunnelSession,
request: &OutputWritePlan,
) -> Result<MssqlDryRunOutputReport, DeltaFunnelError>
pub fn dry_run_to_mssql( &self, session: &DeltaFunnelSession, request: &OutputWritePlan, ) -> Result<MssqlDryRunOutputReport, DeltaFunnelError>
Runs a single-output dry run through the high-level session API.
§Errors
Returns the same error as DeltaFunnelSession::dry_run_to_mssql.
Sourcepub fn dry_run_all_to_mssql(
&self,
session: &DeltaFunnelSession,
requests: &[OutputWritePlan],
) -> Result<MssqlDryRunWorkflowReport, DeltaFunnelError>
pub fn dry_run_all_to_mssql( &self, session: &DeltaFunnelSession, requests: &[OutputWritePlan], ) -> Result<MssqlDryRunWorkflowReport, DeltaFunnelError>
Runs a multi-output dry run through the high-level session API.
§Errors
Returns the same error as DeltaFunnelSession::dry_run_all_to_mssql.
Sourcepub fn dry_run_all_to_mssql_with_scan_summary(
&self,
session: &DeltaFunnelSession,
requests: &[OutputWritePlan],
) -> Result<MssqlDryRunWorkflowReport, DeltaFunnelError>
pub fn dry_run_all_to_mssql_with_scan_summary( &self, session: &DeltaFunnelSession, requests: &[OutputWritePlan], ) -> Result<MssqlDryRunWorkflowReport, DeltaFunnelError>
Runs a multi-output dry run with source scan-summary options.
§Errors
Returns the same error as
DeltaFunnelSession::dry_run_all_to_mssql_with_scan_summary.
Sourcepub fn write_to_mssql(
&self,
session: &DeltaFunnelSession,
request: &OutputWritePlan,
) -> Result<MssqlWriteReport, DeltaFunnelError>
pub fn write_to_mssql( &self, session: &DeltaFunnelSession, request: &OutputWritePlan, ) -> Result<MssqlWriteReport, DeltaFunnelError>
Blocks on one selected output write.
§Errors
Returns the same error as DeltaFunnelSession::write_to_mssql.
Sourcepub fn write_all(
&self,
session: &DeltaFunnelSession,
requests: &[OutputWritePlan],
) -> Result<WriteAllReport, DeltaFunnelError>
pub fn write_all( &self, session: &DeltaFunnelSession, requests: &[OutputWritePlan], ) -> Result<WriteAllReport, DeltaFunnelError>
Blocks on the default multi-output write workflow.
§Errors
Returns the same error as DeltaFunnelSession::write_all.
Sourcepub fn write_all_with_options(
&self,
session: &DeltaFunnelSession,
requests: &[OutputWritePlan],
options: WriteAllOptions,
) -> Result<WriteAllReport, DeltaFunnelError>
pub fn write_all_with_options( &self, session: &DeltaFunnelSession, requests: &[OutputWritePlan], options: WriteAllOptions, ) -> Result<WriteAllReport, DeltaFunnelError>
Blocks on the multi-output write workflow with explicit options.
§Errors
Returns the same error as DeltaFunnelSession::write_all_with_options.
Auto Trait Implementations§
impl !Freeze for DeltaFunnelRuntime
impl RefUnwindSafe for DeltaFunnelRuntime
impl Send for DeltaFunnelRuntime
impl Sync for DeltaFunnelRuntime
impl Unpin for DeltaFunnelRuntime
impl UnsafeUnpin for DeltaFunnelRuntime
impl UnwindSafe for DeltaFunnelRuntime
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> AsAny for T
impl<T> AsAny for T
Source§fn any_ref(&self) -> &(dyn Any + Send + Sync + 'static)
fn any_ref(&self) -> &(dyn Any + Send + Sync + 'static)
dyn Any reference to the object: Read moreSource§fn as_any(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ
fn as_any(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ
Arc<dyn Any> reference to the object: Read moreSource§fn into_any(self: Box<T>) -> Box<dyn Any + Send + Sync>
fn into_any(self: Box<T>) -> Box<dyn Any + Send + Sync>
Box<dyn Any>: Read moreSource§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
std::any::type_name, since Any does not provide it and
Any::type_id is useless as a debugging aid (its Debug is just a mess of hex digits).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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
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>
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