[][src]Struct pleingres::Buffer

pub struct Buffer<'a> { /* fields omitted */ }

A single connection uses just two buffers, allocated at the beginning of the connection. This type is a view into one of these buffer, which can be used to send orders via the provided methods.

Methods

impl<'a> Buffer<'a>[src]

pub fn parse<Name: AsRef<[u8]>>(
    &mut self,
    statement_name: Name,
    statement: &str,
    parameters: &[&dyn ToSql]
)
[src]

Parse a statement.

pub fn named_bind<'b, 'c>(
    &'b mut self,
    portal_name: &'c str,
    statement: &'static str,
    parameters: &[&dyn ToSql]
) -> Portal<'b, 'a, 'c>
[src]

Bind a statement to parameters and a "portal", which is a result identifier. If only one statement is executed at a time, the unnamed portal (i.e. "") works.

pub fn bind<'b>(
    &'b mut self,
    statement: &'static str,
    parameters: &[&dyn ToSql]
) -> Portal<'b, 'a, 'static>
[src]

Bind a statement to parameters and a "portal", which is a result identifier. If only one statement is executed at a time, the unnamed portal (i.e. "") works.

pub fn bind_unnamed<'b>(
    &'b mut self,
    statement: &str,
    parameters: &[&dyn ToSql]
) -> Portal<'b, 'a, 'static>
[src]

Bind a statement to parameters and a "portal", which is a result identifier. If only one statement is executed at a time, the unnamed portal (i.e. "") works.

pub fn flush(&mut self)[src]

Ask the server to flush.

Auto Trait Implementations

impl<'a> Send for Buffer<'a>

impl<'a> Sync for Buffer<'a>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self