Trait Param

Source
pub trait Param {
    const PREFIX: ParamPrefix;

    // Required method
    fn bind(&self, statement: &mut Statement<'_>) -> Result<()>;
}
Expand description

Describes types that can be bound as parameters to a compiled statement.

The kinds of types implementing this trait include:

  • Primitives (numeric types, strings, blobs, etc.)
  • Optionals of primitives
  • Tuples or structs of any of the above
  • Singleton/forwarding wrappers of any of the above, e.g. &T and Box

When derived on a struct, the rename_all (type-level), rename and ignore (field-level) attributes work identically to those of Table; see its documentation for more details.

Required Associated Constants§

Source

const PREFIX: ParamPrefix

The leading symbol in parameter names. (Must be consistent across parameters.)

Required Methods§

Source

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Binds the primitive or the field(s) of a tuple to a raw rusqlite::Statement.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Param for bool

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl Param for f32

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl Param for f64

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl Param for i8

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl Param for i16

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl Param for i32

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl Param for i64

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl Param for isize

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl Param for str

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl Param for u8

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl Param for u16

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl Param for u32

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl Param for u64

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl Param for ()

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Tuples use positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl Param for usize

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl Param for String

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl Param for Vec<u8>

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl Param for NonZeroI8

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl Param for NonZeroI16

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl Param for NonZeroI32

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl Param for NonZeroI64

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl Param for NonZeroIsize

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl Param for NonZeroU8

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl Param for NonZeroU16

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl Param for NonZeroU32

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl Param for NonZeroU64

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl Param for NonZeroUsize

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl Param for [u8]

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> Param for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)
where A: ToSql, B: ToSql, C: ToSql, D: ToSql, E: ToSql, F: ToSql, G: ToSql, H: ToSql, I: ToSql, J: ToSql, K: ToSql, L: ToSql, M: ToSql, N: ToSql, O: ToSql, P: ToSql, Q: ToSql, R: ToSql, S: ToSql, T: ToSql, U: ToSql, V: ToSql, W: ToSql, X: ToSql, Y: ToSql, Z: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Tuples use positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> Param for (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)
where B: ToSql, C: ToSql, D: ToSql, E: ToSql, F: ToSql, G: ToSql, H: ToSql, I: ToSql, J: ToSql, K: ToSql, L: ToSql, M: ToSql, N: ToSql, O: ToSql, P: ToSql, Q: ToSql, R: ToSql, S: ToSql, T: ToSql, U: ToSql, V: ToSql, W: ToSql, X: ToSql, Y: ToSql, Z: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Tuples use positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> Param for (C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)
where C: ToSql, D: ToSql, E: ToSql, F: ToSql, G: ToSql, H: ToSql, I: ToSql, J: ToSql, K: ToSql, L: ToSql, M: ToSql, N: ToSql, O: ToSql, P: ToSql, Q: ToSql, R: ToSql, S: ToSql, T: ToSql, U: ToSql, V: ToSql, W: ToSql, X: ToSql, Y: ToSql, Z: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Tuples use positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> Param for (D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)
where D: ToSql, E: ToSql, F: ToSql, G: ToSql, H: ToSql, I: ToSql, J: ToSql, K: ToSql, L: ToSql, M: ToSql, N: ToSql, O: ToSql, P: ToSql, Q: ToSql, R: ToSql, S: ToSql, T: ToSql, U: ToSql, V: ToSql, W: ToSql, X: ToSql, Y: ToSql, Z: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Tuples use positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> Param for (E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)
where E: ToSql, F: ToSql, G: ToSql, H: ToSql, I: ToSql, J: ToSql, K: ToSql, L: ToSql, M: ToSql, N: ToSql, O: ToSql, P: ToSql, Q: ToSql, R: ToSql, S: ToSql, T: ToSql, U: ToSql, V: ToSql, W: ToSql, X: ToSql, Y: ToSql, Z: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Tuples use positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> Param for (F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)
where F: ToSql, G: ToSql, H: ToSql, I: ToSql, J: ToSql, K: ToSql, L: ToSql, M: ToSql, N: ToSql, O: ToSql, P: ToSql, Q: ToSql, R: ToSql, S: ToSql, T: ToSql, U: ToSql, V: ToSql, W: ToSql, X: ToSql, Y: ToSql, Z: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Tuples use positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> Param for (G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)
where G: ToSql, H: ToSql, I: ToSql, J: ToSql, K: ToSql, L: ToSql, M: ToSql, N: ToSql, O: ToSql, P: ToSql, Q: ToSql, R: ToSql, S: ToSql, T: ToSql, U: ToSql, V: ToSql, W: ToSql, X: ToSql, Y: ToSql, Z: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Tuples use positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> Param for (H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)
where H: ToSql, I: ToSql, J: ToSql, K: ToSql, L: ToSql, M: ToSql, N: ToSql, O: ToSql, P: ToSql, Q: ToSql, R: ToSql, S: ToSql, T: ToSql, U: ToSql, V: ToSql, W: ToSql, X: ToSql, Y: ToSql, Z: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Tuples use positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> Param for (I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)
where I: ToSql, J: ToSql, K: ToSql, L: ToSql, M: ToSql, N: ToSql, O: ToSql, P: ToSql, Q: ToSql, R: ToSql, S: ToSql, T: ToSql, U: ToSql, V: ToSql, W: ToSql, X: ToSql, Y: ToSql, Z: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Tuples use positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> Param for (J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)
where J: ToSql, K: ToSql, L: ToSql, M: ToSql, N: ToSql, O: ToSql, P: ToSql, Q: ToSql, R: ToSql, S: ToSql, T: ToSql, U: ToSql, V: ToSql, W: ToSql, X: ToSql, Y: ToSql, Z: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Tuples use positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> Param for (K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)
where K: ToSql, L: ToSql, M: ToSql, N: ToSql, O: ToSql, P: ToSql, Q: ToSql, R: ToSql, S: ToSql, T: ToSql, U: ToSql, V: ToSql, W: ToSql, X: ToSql, Y: ToSql, Z: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Tuples use positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<K, V> Param for BTreeMap<K, V>
where K: Display, V: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Dollar

Dynamic maps use $ by default because it’s the most flexible prefix.

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<K, V> Param for HashMap<K, V>
where K: Display, V: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Dollar

Dynamic maps use $ by default because it’s the most flexible prefix.

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> Param for (L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)
where L: ToSql, M: ToSql, N: ToSql, O: ToSql, P: ToSql, Q: ToSql, R: ToSql, S: ToSql, T: ToSql, U: ToSql, V: ToSql, W: ToSql, X: ToSql, Y: ToSql, Z: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Tuples use positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> Param for (M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)
where M: ToSql, N: ToSql, O: ToSql, P: ToSql, Q: ToSql, R: ToSql, S: ToSql, T: ToSql, U: ToSql, V: ToSql, W: ToSql, X: ToSql, Y: ToSql, Z: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Tuples use positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<N, O, P, Q, R, S, T, U, V, W, X, Y, Z> Param for (N, O, P, Q, R, S, T, U, V, W, X, Y, Z)
where N: ToSql, O: ToSql, P: ToSql, Q: ToSql, R: ToSql, S: ToSql, T: ToSql, U: ToSql, V: ToSql, W: ToSql, X: ToSql, Y: ToSql, Z: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Tuples use positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<O, P, Q, R, S, T, U, V, W, X, Y, Z> Param for (O, P, Q, R, S, T, U, V, W, X, Y, Z)
where O: ToSql, P: ToSql, Q: ToSql, R: ToSql, S: ToSql, T: ToSql, U: ToSql, V: ToSql, W: ToSql, X: ToSql, Y: ToSql, Z: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Tuples use positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<P, Q, R, S, T, U, V, W, X, Y, Z> Param for (P, Q, R, S, T, U, V, W, X, Y, Z)
where P: ToSql, Q: ToSql, R: ToSql, S: ToSql, T: ToSql, U: ToSql, V: ToSql, W: ToSql, X: ToSql, Y: ToSql, Z: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Tuples use positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<Q, R, S, T, U, V, W, X, Y, Z> Param for (Q, R, S, T, U, V, W, X, Y, Z)
where Q: ToSql, R: ToSql, S: ToSql, T: ToSql, U: ToSql, V: ToSql, W: ToSql, X: ToSql, Y: ToSql, Z: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Tuples use positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<R, S, T, U, V, W, X, Y, Z> Param for (R, S, T, U, V, W, X, Y, Z)
where R: ToSql, S: ToSql, T: ToSql, U: ToSql, V: ToSql, W: ToSql, X: ToSql, Y: ToSql, Z: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Tuples use positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<S, T, U, V, W, X, Y, Z> Param for (S, T, U, V, W, X, Y, Z)
where S: ToSql, T: ToSql, U: ToSql, V: ToSql, W: ToSql, X: ToSql, Y: ToSql, Z: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Tuples use positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<T> Param for Cow<'_, T>
where T: ?Sized + ToOwned + Param,

Source§

const PREFIX: ParamPrefix = T::PREFIX

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<T, U, V, W, X, Y, Z> Param for (T, U, V, W, X, Y, Z)
where T: ToSql, U: ToSql, V: ToSql, W: ToSql, X: ToSql, Y: ToSql, Z: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Tuples use positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<T: ToSql> Param for Option<T>

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<T: ?Sized + Param> Param for &T

Source§

const PREFIX: ParamPrefix = T::PREFIX

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<T: ?Sized + Param> Param for &mut T

Source§

const PREFIX: ParamPrefix = T::PREFIX

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<T: ?Sized + Param> Param for Box<T>

Source§

const PREFIX: ParamPrefix = T::PREFIX

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<T: ?Sized + Param> Param for Rc<T>

Source§

const PREFIX: ParamPrefix = T::PREFIX

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<T: ?Sized + Param> Param for Arc<T>

Source§

const PREFIX: ParamPrefix = T::PREFIX

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<U, V, W, X, Y, Z> Param for (U, V, W, X, Y, Z)
where U: ToSql, V: ToSql, W: ToSql, X: ToSql, Y: ToSql, Z: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Tuples use positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<V, W, X, Y, Z> Param for (V, W, X, Y, Z)
where V: ToSql, W: ToSql, X: ToSql, Y: ToSql, Z: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Tuples use positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<W, X, Y, Z> Param for (W, X, Y, Z)
where W: ToSql, X: ToSql, Y: ToSql, Z: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Tuples use positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<X, Y, Z> Param for (X, Y, Z)
where X: ToSql, Y: ToSql, Z: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Tuples use positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<Y, Z> Param for (Y, Z)
where Y: ToSql, Z: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Tuples use positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<Z> Param for (Z,)
where Z: ToSql,

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Tuples use positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Source§

impl<const N: usize> Param for [u8; N]

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Primitives are bound as positional parameters, hence the prefix is ‘?’

Source§

fn bind(&self, statement: &mut Statement<'_>) -> Result<()>

Implementors§

Source§

impl Param for ToSqlOutput<'_>

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Source§

impl Param for Value

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Source§

impl Param for ValueRef<'_>

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question

Source§

impl Param for Null

Source§

const PREFIX: ParamPrefix = ParamPrefix::Question