Trait sqlx::Arguments[][src]

pub trait Arguments<'q>: Default + Send {
    type Database: Database;
    pub fn reserve(&mut self, additional: usize, size: usize);
pub 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

pub fn reserve(&mut self, additional: usize, size: usize)[src]

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

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

Add the value to the end of the arguments.

Loading content...

Implementors

impl<'q> Arguments<'q> for AnyArguments<'q>[src]

type Database = Any

impl<'q> Arguments<'q> for MssqlArguments[src]

type Database = Mssql

impl<'q> Arguments<'q> for MySqlArguments[src]

type Database = MySql

impl<'q> Arguments<'q> for PgArguments[src]

type Database = Postgres

impl<'q> Arguments<'q> for SqliteArguments<'q>[src]

type Database = Sqlite

Loading content...