pub struct WasmQueryEngine { /* private fields */ }Implementations§
Source§impl WasmQueryEngine
impl WasmQueryEngine
pub fn new() -> Self
Sourcepub fn register_table(
&self,
name: &str,
ipc_bytes: &[u8],
) -> Result<usize, JsValue>
pub fn register_table( &self, name: &str, ipc_bytes: &[u8], ) -> Result<usize, JsValue>
Register Arrow IPC stream bytes as a named table. Replaces any existing table with the same name. Returns the number of rows registered.
Sourcepub async fn execute_sql(&self, sql: &str) -> Result<Vec<u8>, JsValue>
pub async fn execute_sql(&self, sql: &str) -> Result<Vec<u8>, JsValue>
Execute SQL, return Arrow IPC stream bytes.
Sourcepub async fn execute_and_register(
&self,
sql: &str,
register_as: &str,
) -> Result<Vec<u8>, JsValue>
pub async fn execute_and_register( &self, sql: &str, register_as: &str, ) -> Result<Vec<u8>, JsValue>
Execute SQL, register result as a named table, return Arrow IPC stream bytes.
Trait Implementations§
Source§impl Default for WasmQueryEngine
impl Default for WasmQueryEngine
Source§impl From<WasmQueryEngine> for JsValue
impl From<WasmQueryEngine> for JsValue
Source§fn from(value: WasmQueryEngine) -> Self
fn from(value: WasmQueryEngine) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for WasmQueryEngine
impl FromWasmAbi for WasmQueryEngine
Source§impl IntoWasmAbi for WasmQueryEngine
impl IntoWasmAbi for WasmQueryEngine
Source§impl LongRefFromWasmAbi for WasmQueryEngine
impl LongRefFromWasmAbi for WasmQueryEngine
Source§impl OptionFromWasmAbi for WasmQueryEngine
impl OptionFromWasmAbi for WasmQueryEngine
Source§impl OptionIntoWasmAbi for WasmQueryEngine
impl OptionIntoWasmAbi for WasmQueryEngine
Source§impl RefFromWasmAbi for WasmQueryEngine
impl RefFromWasmAbi for WasmQueryEngine
Source§type Anchor = RcRef<WasmQueryEngine>
type Anchor = RcRef<WasmQueryEngine>
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 RefMutFromWasmAbi for WasmQueryEngine
impl RefMutFromWasmAbi for WasmQueryEngine
Source§impl TryFromJsValue for WasmQueryEngine
impl TryFromJsValue for WasmQueryEngine
Source§impl VectorFromWasmAbi for WasmQueryEngine
impl VectorFromWasmAbi for WasmQueryEngine
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WasmQueryEngine]>
Source§impl VectorIntoWasmAbi for WasmQueryEngine
impl VectorIntoWasmAbi for WasmQueryEngine
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WasmQueryEngine]>) -> Self::Abi
Source§impl WasmDescribeVector for WasmQueryEngine
impl WasmDescribeVector for WasmQueryEngine
impl SupportsConstructor for WasmQueryEngine
impl SupportsInstanceProperty for WasmQueryEngine
impl SupportsStaticProperty for WasmQueryEngine
Auto Trait Implementations§
impl Freeze for WasmQueryEngine
impl !RefUnwindSafe for WasmQueryEngine
impl Send for WasmQueryEngine
impl Sync for WasmQueryEngine
impl Unpin for WasmQueryEngine
impl UnsafeUnpin for WasmQueryEngine
impl !UnwindSafe for WasmQueryEngine
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> 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> 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.