pub struct BaseHandler { /* private fields */ }Expand description
Core query executor: transactional writes via sqlx, and optionally
analytical reads via a pluggable [ReadEngine] (DuckDB or DataFusion).
Implementations§
Source§impl BaseHandler
impl BaseHandler
Sourcepub fn has_read_engine(&self) -> bool
pub fn has_read_engine(&self) -> bool
Whether an analytical read engine is attached.
Sourcepub fn normalize_name(name: &str) -> String
pub fn normalize_name(name: &str) -> String
Unicode NFD normalization — decomposes characters then lowercases. Useful for matching names with different Unicode representations.
Sourcepub async fn execute_write(
&self,
op: WriteOp<'_>,
) -> Result<QueryResult<AnyRow>, DbkitError>
pub async fn execute_write( &self, op: WriteOp<'_>, ) -> Result<QueryResult<AnyRow>, DbkitError>
Execute a write operation against the transactional pool.
Placeholders are backend-native: $1, $2, … for Postgres, ? for
MySQL/SQLite. sqlx’s Any driver does not rewrite them, so write the
SQL for the backend you connected to.
Auto Trait Implementations§
impl !RefUnwindSafe for BaseHandler
impl !UnwindSafe for BaseHandler
impl Freeze for BaseHandler
impl Send for BaseHandler
impl Sync for BaseHandler
impl Unpin for BaseHandler
impl UnsafeUnpin for BaseHandler
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