pub struct QueryExecutor { /* private fields */ }Expand description
Handles SQL query execution via HTTP.
Implementations§
Source§impl QueryExecutor
impl QueryExecutor
Sourcepub async fn execute(
&self,
sql: &str,
files: Option<Vec<(String, String, Vec<u8>, Option<String>)>>,
params: Option<Vec<Value>>,
namespace_id: Option<String>,
) -> Result<QueryResponse, KalamLinkError>
pub async fn execute( &self, sql: &str, files: Option<Vec<(String, String, Vec<u8>, Option<String>)>>, params: Option<Vec<Value>>, namespace_id: Option<String>, ) -> Result<QueryResponse, KalamLinkError>
Execute a SQL query with optional parameters and namespace.
Sourcepub async fn execute_with_progress(
&self,
sql: &str,
files: Option<Vec<(String, String, Vec<u8>, Option<String>)>>,
params: Option<Vec<Value>>,
namespace_id: Option<String>,
progress: Option<Arc<dyn Fn(UploadProgress) + Send + Sync>>,
) -> Result<QueryResponse, KalamLinkError>
pub async fn execute_with_progress( &self, sql: &str, files: Option<Vec<(String, String, Vec<u8>, Option<String>)>>, params: Option<Vec<Value>>, namespace_id: Option<String>, progress: Option<Arc<dyn Fn(UploadProgress) + Send + Sync>>, ) -> Result<QueryResponse, KalamLinkError>
Execute a SQL query with optional parameters and namespace, with upload progress callback.
Trait Implementations§
Source§impl Clone for QueryExecutor
impl Clone for QueryExecutor
Source§fn clone(&self) -> QueryExecutor
fn clone(&self) -> QueryExecutor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for QueryExecutor
impl !UnwindSafe for QueryExecutor
impl Freeze for QueryExecutor
impl Send for QueryExecutor
impl Sync for QueryExecutor
impl Unpin for QueryExecutor
impl UnsafeUnpin for QueryExecutor
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