pub struct ComposedSql {
pub sql: String,
pub bind_params: Vec<String>,
}Expand description
The result of composing a template: final SQL and ordered bind parameter names.
Fields§
§sql: StringThe final SQL string with dialect-specific placeholders.
bind_params: Vec<String>Ordered list of bind parameter names corresponding to placeholders.
For numbered dialects (Postgres, SQLite), names are in alphabetical order with duplicates removed. For positional dialects (MySQL), names are in document order.
Trait Implementations§
Source§impl Clone for ComposedSql
impl Clone for ComposedSql
Source§fn clone(&self) -> ComposedSql
fn clone(&self) -> ComposedSql
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComposedSql
impl Debug for ComposedSql
Source§impl PartialEq for ComposedSql
impl PartialEq for ComposedSql
impl StructuralPartialEq for ComposedSql
Auto Trait Implementations§
impl Freeze for ComposedSql
impl RefUnwindSafe for ComposedSql
impl Send for ComposedSql
impl Sync for ComposedSql
impl Unpin for ComposedSql
impl UnsafeUnpin for ComposedSql
impl UnwindSafe for ComposedSql
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