pub struct AsyncQueryExecutor { /* private fields */ }Expand description
Async query executor for streaming results
Implementations§
Source§impl AsyncQueryExecutor
impl AsyncQueryExecutor
Sourcepub async fn execute_streaming(
&self,
_query: String,
) -> Result<JsValue, JsValue>
pub async fn execute_streaming( &self, _query: String, ) -> Result<JsValue, JsValue>
Execute query asynchronously with streaming results This is useful for large result sets
Sourcepub fn execute_in_worker(&self, _query: String) -> Promise
pub fn execute_in_worker(&self, _query: String) -> Promise
Execute query in a Web Worker for background processing
Sourcepub fn batch_size(&self) -> usize
pub fn batch_size(&self) -> usize
Get batch size
Sourcepub fn set_batch_size(&mut self, size: usize)
pub fn set_batch_size(&mut self, size: usize)
Set batch size
Trait Implementations§
Source§impl From<AsyncQueryExecutor> for JsValue
impl From<AsyncQueryExecutor> for JsValue
Source§fn from(value: AsyncQueryExecutor) -> Self
fn from(value: AsyncQueryExecutor) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for AsyncQueryExecutor
impl FromWasmAbi for AsyncQueryExecutor
Source§impl IntoWasmAbi for AsyncQueryExecutor
impl IntoWasmAbi for AsyncQueryExecutor
Source§impl RefFromWasmAbi for AsyncQueryExecutor
impl RefFromWasmAbi for AsyncQueryExecutor
Source§type Anchor = RcRef<AsyncQueryExecutor>
type Anchor = RcRef<AsyncQueryExecutor>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl TryFromJsValue for AsyncQueryExecutor
impl TryFromJsValue for AsyncQueryExecutor
Source§impl VectorFromWasmAbi for AsyncQueryExecutor
impl VectorFromWasmAbi for AsyncQueryExecutor
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[AsyncQueryExecutor]>
Source§impl VectorIntoWasmAbi for AsyncQueryExecutor
impl VectorIntoWasmAbi for AsyncQueryExecutor
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[AsyncQueryExecutor]>) -> Self::Abi
Source§impl WasmDescribeVector for AsyncQueryExecutor
impl WasmDescribeVector for AsyncQueryExecutor
impl SupportsConstructor for AsyncQueryExecutor
impl SupportsInstanceProperty for AsyncQueryExecutor
impl SupportsStaticProperty for AsyncQueryExecutor
Auto Trait Implementations§
impl Freeze for AsyncQueryExecutor
impl RefUnwindSafe for AsyncQueryExecutor
impl Send for AsyncQueryExecutor
impl Sync for AsyncQueryExecutor
impl Unpin for AsyncQueryExecutor
impl UnwindSafe for AsyncQueryExecutor
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.