Struct pleingres::Buffer [−][src]
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]
impl<'a> Buffer<'a>
pub fn parse<Name: AsRef<[u8]>>(
&mut self,
statement_name: Name,
statement: &str,
parameter_types: &[SqlType]
)
[src]
pub fn parse<Name: AsRef<[u8]>>(
&mut self,
statement_name: Name,
statement: &str,
parameter_types: &[SqlType]
)
Parse a statement.
pub fn named_bind<'b, 'c>(
&'b mut self,
portal_name: &'c str,
statement: &'static str,
parameters: &[&ToSql]
) -> Portal<'b, 'a, 'c>
[src]
pub fn named_bind<'b, 'c>(
&'b mut self,
portal_name: &'c str,
statement: &'static str,
parameters: &[&ToSql]
) -> Portal<'b, 'a, 'c>
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: &[&ToSql]
) -> Portal<'b, 'a, 'static>
[src]
pub fn bind<'b>(
&'b mut self,
statement: &'static str,
parameters: &[&ToSql]
) -> Portal<'b, 'a, 'static>
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: &[&ToSql]
) -> Portal<'b, 'a, 'static>
[src]
pub fn bind_unnamed<'b>(
&'b mut self,
statement: &str,
parameters: &[&ToSql]
) -> Portal<'b, 'a, 'static>
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]
pub fn flush(&mut self)
Ask the server to flush.