pub struct QueryExecutor { /* private fields */ }Implementations§
Source§impl QueryExecutor
impl QueryExecutor
pub fn new() -> Self
Sourcepub fn execute_select(
&self,
stmt: &SelectStatement,
table: &Table,
) -> Result<Vec<Row>>
pub fn execute_select( &self, stmt: &SelectStatement, table: &Table, ) -> Result<Vec<Row>>
Execute a SELECT statement with optional catalog for JOIN support
Sourcepub fn execute_select_with_catalog(
&self,
stmt: &SelectStatement,
table: &Table,
catalog: Option<&TableCatalog>,
) -> Result<Vec<Row>>
pub fn execute_select_with_catalog( &self, stmt: &SelectStatement, table: &Table, catalog: Option<&TableCatalog>, ) -> Result<Vec<Row>>
Execute a SELECT statement with catalog support for JOINs
Sourcepub fn execute_insert(
&self,
stmt: &InsertStatement,
table: &Table,
) -> Result<usize>
pub fn execute_insert( &self, stmt: &InsertStatement, table: &Table, ) -> Result<usize>
Execute an INSERT statement
Sourcepub fn execute_upsert(
&self,
stmt: &UpsertStatement,
table: &Table,
) -> Result<(usize, usize)>
pub fn execute_upsert( &self, stmt: &UpsertStatement, table: &Table, ) -> Result<(usize, usize)>
Execute an UPSERT statement If a row with the key_column value exists, update it; otherwise insert it
Sourcepub fn execute_update(
&self,
stmt: &UpdateStatement,
table: &Table,
) -> Result<usize>
pub fn execute_update( &self, stmt: &UpdateStatement, table: &Table, ) -> Result<usize>
Execute an UPDATE statement
Sourcepub fn execute_delete(
&self,
stmt: &DeleteStatement,
table: &Table,
) -> Result<usize>
pub fn execute_delete( &self, stmt: &DeleteStatement, table: &Table, ) -> Result<usize>
Execute a DELETE statement
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueryExecutor
impl RefUnwindSafe for QueryExecutor
impl Send for QueryExecutor
impl Sync for QueryExecutor
impl Unpin for QueryExecutor
impl UnwindSafe 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
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>
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 more