Struct ft_sys::PgConnection
source · pub struct PgConnection { /* private fields */ }Trait Implementations§
source§impl Connection for PgConnection
impl Connection for PgConnection
§type TransactionManager = AnsiTransactionManager
type TransactionManager = AnsiTransactionManager
The transaction manager implementation used by this connection
source§fn establish(url: &str) -> ConnectionResult<Self>
fn establish(url: &str) -> ConnectionResult<Self>
Establishes a new connection to the database Read more
source§fn execute_returning_count<T>(&mut self, source: &T) -> QueryResult<usize>
fn execute_returning_count<T>(&mut self, source: &T) -> QueryResult<usize>
Execute a single SQL statements given by a query and return
number of affected rows
source§fn transaction_state(
&mut self
) -> &mut <Self::TransactionManager as TransactionManager<Self>>::TransactionStateData
fn transaction_state( &mut self ) -> &mut <Self::TransactionManager as TransactionManager<Self>>::TransactionStateData
Get access to the current transaction state of this connection Read more
source§fn transaction<T, E, F>(&mut self, f: F) -> Result<T, E>
fn transaction<T, E, F>(&mut self, f: F) -> Result<T, E>
Executes the given function inside of a database transaction Read more
source§impl GetPgMetadataCache for PgConnection
impl GetPgMetadataCache for PgConnection
source§fn get_metadata_cache(&mut self) -> &mut PgMetadataCache
fn get_metadata_cache(&mut self) -> &mut PgMetadataCache
Get the
PgMetadataCachesource§impl LoadConnection for PgConnection
impl LoadConnection for PgConnection
§type Cursor<'conn, 'query> = Cursor
type Cursor<'conn, 'query> = Cursor
The cursor type returned by
LoadConnection::load Read more§type Row<'conn, 'query> = PgRow
type Row<'conn, 'query> = PgRow
The row type used as
Iterator::Item for the iterator implementation
of LoadConnection::Cursorsource§fn load<'conn, 'query, T>(
&'conn mut self,
source: T
) -> QueryResult<Self::Cursor<'conn, 'query>>where
T: Query + QueryFragment<Self::Backend> + QueryId + 'query,
Self::Backend: QueryMetadata<T::SqlType>,
fn load<'conn, 'query, T>(
&'conn mut self,
source: T
) -> QueryResult<Self::Cursor<'conn, 'query>>where
T: Query + QueryFragment<Self::Backend> + QueryId + 'query,
Self::Backend: QueryMetadata<T::SqlType>,
Executes a given query and returns any requested values Read more
source§impl SimpleConnection for PgConnection
impl SimpleConnection for PgConnection
source§fn batch_execute(&mut self, query: &str) -> QueryResult<()>
fn batch_execute(&mut self, query: &str) -> QueryResult<()>
Execute multiple SQL statements within the same string. Read more
impl ConnectionSealed for PgConnection
Auto Trait Implementations§
impl Freeze for PgConnection
impl RefUnwindSafe for PgConnection
impl Send for PgConnection
impl Sync for PgConnection
impl Unpin for PgConnection
impl UnwindSafe for PgConnection
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<C> BoxableConnection<<C as Connection>::Backend> for Cwhere
C: Connection + Any,
impl<C> BoxableConnection<<C as Connection>::Backend> for Cwhere
C: Connection + Any,
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self to an expression for Diesel’s query builder. Read more