Struct sqlx_core::postgres::PgArguments
source · pub struct PgArguments { /* private fields */ }
Expand description
Implementation of Arguments
for PostgreSQL.
Trait Implementations§
source§impl<'q> Arguments<'q> for PgArguments
impl<'q> Arguments<'q> for PgArguments
type Database = Postgres
source§fn reserve(&mut self, additional: usize, size: usize)
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.source§fn add<T>(&mut self, value: T)where
T: Encode<'q, Self::Database> + Type<Self::Database>,
fn add<T>(&mut self, value: T)where T: Encode<'q, Self::Database> + Type<Self::Database>,
Add the value to the end of the arguments.
fn format_placeholder<W: Write>(&self, writer: &mut W) -> Result
source§impl Default for PgArguments
impl Default for PgArguments
source§fn default() -> PgArguments
fn default() -> PgArguments
Returns the “default value” for a type. Read more
source§impl<'q> From<AnyArguments<'q>> for PgArguments
impl<'q> From<AnyArguments<'q>> for PgArguments
source§fn from(args: AnyArguments<'q>) -> Self
fn from(args: AnyArguments<'q>) -> Self
Converts to this type from the input type.