[][src]Trait sqlx_core::arguments::Arguments

pub trait Arguments<'q>: Send + Sized + Default {
    type Database: Database;
    fn reserve(&mut self, additional: usize, size: usize);
fn add<T>(&mut self, value: T)
    where
        T: 'q + Send + Encode<'q, Self::Database> + Type<Self::Database>
; }

A tuple of arguments to be sent to the database.

Associated Types

Loading content...

Required methods

fn reserve(&mut self, additional: usize, size: usize)

Reserves the capacity for at least additional more values (of size total bytes) to be added to the arguments without a reallocation.

fn add<T>(&mut self, value: T) where
    T: 'q + Send + Encode<'q, Self::Database> + Type<Self::Database>, 

Add the value to the end of the arguments.

Loading content...

Implementors

Loading content...