pub struct BaseHandler { /* private fields */ }Expand description
Core query executor for Postgres writes and optionally DuckDB reads.
Implementations§
Source§impl BaseHandler
impl BaseHandler
Sourcepub fn has_duckdb(&self) -> bool
pub fn has_duckdb(&self) -> bool
Whether DuckDB is attached for reads.
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<PgRow>, DbkitError>
pub async fn execute_write( &self, op: WriteOp<'_>, ) -> Result<QueryResult<PgRow>, DbkitError>
Execute a write operation against Postgres.
Auto Trait Implementations§
impl Freeze for BaseHandler
impl !RefUnwindSafe for BaseHandler
impl Send for BaseHandler
impl Sync for BaseHandler
impl Unpin for BaseHandler
impl UnsafeUnpin for BaseHandler
impl !UnwindSafe 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