pub enum SqlParam {
Text(String),
Json(Bytes),
Binary(Bytes),
Null,
}Expand description
A bind parameter for a parameterized SQL query.
Created by SqlBuilder::push_param and consumed by the database executor.
Each variant maps to a different sqlx encode path.
Variants§
Text(String)
A text value (TEXT / VARCHAR).
Json(Bytes)
A JSON value (JSONB / JSON). The bytes contain valid JSON.
Binary(Bytes)
Raw binary data (BYTEA).
Null
An explicit SQL NULL.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SqlParam
impl RefUnwindSafe for SqlParam
impl Send for SqlParam
impl Sync for SqlParam
impl Unpin for SqlParam
impl UnsafeUnpin for SqlParam
impl UnwindSafe for SqlParam
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