struct Builder {
dialect: Dialect,
parameters: Vec<Value>,
binary_parameters: BTreeSet<usize>,
}Fields§
§dialect: Dialect§parameters: Vec<Value>§binary_parameters: BTreeSet<usize>Implementations§
Source§impl Builder
impl Builder
Sourcefn name(&self, value: &str) -> Result<String, DatabaseError>
fn name(&self, value: &str) -> Result<String, DatabaseError>
Quotes a validated logical identifier using the target SQL dialect.
Sourcefn bind(&mut self, value: Value) -> String
fn bind(&mut self, value: Value) -> String
Appends one bind value without interpolating it into SQL text.
Sourcefn bind_field(
&mut self,
field: &Field,
value: Value,
) -> Result<String, DatabaseError>
fn bind_field( &mut self, field: &Field, value: Value, ) -> Result<String, DatabaseError>
Encodes a logical field value before binding it to the physical dialect.
Sourcefn bind_named_field(
&mut self,
declaration: &Entity,
field: &str,
value: Value,
) -> Result<String, DatabaseError>
fn bind_named_field( &mut self, declaration: &Entity, field: &str, value: Value, ) -> Result<String, DatabaseError>
Finds the declared field type for a parameterized comparison.
Sourcefn comparison_name(
&self,
declaration: &Entity,
name: &str,
) -> Result<String, DatabaseError>
fn comparison_name( &self, declaration: &Entity, name: &str, ) -> Result<String, DatabaseError>
Resolves a comparison key without changing the projected app field.
Sourcefn filter(
&mut self,
declaration: &Entity,
predicate: &Predicate,
) -> Result<String, DatabaseError>
fn filter( &mut self, declaration: &Entity, predicate: &Predicate, ) -> Result<String, DatabaseError>
Lowers a validated predicate recursively while preserving parameter order.
Sourcefn compare(
&mut self,
declaration: &Entity,
field: &str,
operator: &str,
value: &Value,
) -> Result<String, DatabaseError>
fn compare( &mut self, declaration: &Entity, field: &str, operator: &str, value: &Value, ) -> Result<String, DatabaseError>
Handles null equality with SQL null semantics.
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnsafeUnpin for Builder
impl UnwindSafe for Builder
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