[−][src]Struct pleingres::Buffer
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]
&mut self,
statement_name: Name,
statement: &str,
parameters: &[&dyn ToSql]
)
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]
&'b mut self,
portal_name: &'c str,
statement: &'static str,
parameters: &[&dyn 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: &[&dyn ToSql]
) -> Portal<'b, 'a, 'static>
[src]
&'b mut self,
statement: &'static str,
parameters: &[&dyn 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: &[&dyn ToSql]
) -> Portal<'b, 'a, 'static>
[src]
&'b mut self,
statement: &str,
parameters: &[&dyn 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]
Ask the server to flush.
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Erased for T
impl<T> Same for T
type Output = T
Should always be Self