pub struct QueryProcessor { /* private fields */ }
Expand description
High-performance query processor
Implementations§
Source§impl QueryProcessor
impl QueryProcessor
Sourcepub fn new() -> QueryProcessor
pub fn new() -> QueryProcessor
Create a new query processor
Sourcepub fn with_cache(cache_size: usize) -> QueryProcessor
pub fn with_cache(cache_size: usize) -> QueryProcessor
Create a query processor with custom cache
Sourcepub fn process_detailed(&mut self, query: &str) -> JsValue
pub fn process_detailed(&mut self, query: &str) -> JsValue
Process a query and return detailed results
Sourcepub fn set_optimization_level(&mut self, level: u8)
pub fn set_optimization_level(&mut self, level: u8)
Set optimization level (0-3)
Sourcepub fn clear_cache(&mut self)
pub fn clear_cache(&mut self)
Clear processor cache
Source§impl QueryProcessor
impl QueryProcessor
Sourcepub fn process_query(&mut self, query: &str) -> QueryResult
pub fn process_query(&mut self, query: &str) -> QueryResult
Internal query processing with full result details
Trait Implementations§
Source§impl Default for QueryProcessor
impl Default for QueryProcessor
Source§impl From<QueryProcessor> for JsValue
impl From<QueryProcessor> for JsValue
Source§fn from(value: QueryProcessor) -> Self
fn from(value: QueryProcessor) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for QueryProcessor
impl FromWasmAbi for QueryProcessor
Source§impl IntoWasmAbi for QueryProcessor
impl IntoWasmAbi for QueryProcessor
Source§impl LongRefFromWasmAbi for QueryProcessor
impl LongRefFromWasmAbi for QueryProcessor
Source§impl OptionFromWasmAbi for QueryProcessor
impl OptionFromWasmAbi for QueryProcessor
Source§impl OptionIntoWasmAbi for QueryProcessor
impl OptionIntoWasmAbi for QueryProcessor
Source§impl RefFromWasmAbi for QueryProcessor
impl RefFromWasmAbi for QueryProcessor
Source§type Anchor = RcRef<QueryProcessor>
type Anchor = RcRef<QueryProcessor>
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 QueryProcessor
impl RefMutFromWasmAbi for QueryProcessor
Source§impl TryFromJsValue for QueryProcessor
impl TryFromJsValue for QueryProcessor
Source§impl VectorFromWasmAbi for QueryProcessor
impl VectorFromWasmAbi for QueryProcessor
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[QueryProcessor]>
Source§impl VectorIntoJsValue for QueryProcessor
impl VectorIntoJsValue for QueryProcessor
fn vector_into_jsvalue(vector: Box<[QueryProcessor]>) -> JsValue
Source§impl VectorIntoWasmAbi for QueryProcessor
impl VectorIntoWasmAbi for QueryProcessor
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[QueryProcessor]>) -> Self::Abi
Source§impl WasmDescribeVector for QueryProcessor
impl WasmDescribeVector for QueryProcessor
impl SupportsConstructor for QueryProcessor
impl SupportsInstanceProperty for QueryProcessor
impl SupportsStaticProperty for QueryProcessor
Auto Trait Implementations§
impl Freeze for QueryProcessor
impl RefUnwindSafe for QueryProcessor
impl Send for QueryProcessor
impl Sync for QueryProcessor
impl Unpin for QueryProcessor
impl UnwindSafe for QueryProcessor
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> 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::Abi
Source§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
.