pub struct PgBackend;Expand description
Postgres Backend implementation.
Implementations§
Trait Implementations§
Source§impl Backend for PgBackend
impl Backend for PgBackend
Source§fn row_id_column(&self) -> Option<&'static str>
fn row_id_column(&self) -> Option<&'static str>
Backend-dependent field name for the database’s internal identifier for each row. Read more
fn create_migration_sql( &self, current: &ADB, ops: Vec<Operation>, ) -> Result<String, Error>
Source§fn connect(&self, path: &str) -> Result<Connection, Error>
fn connect(&self, path: &str) -> Result<Connection, Error>
Establish a new sync connection. Read more
Source§fn connect_async<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<ConnectionAsync, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
PgBackend: 'async_trait,
fn connect_async<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<ConnectionAsync, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
PgBackend: 'async_trait,
Establish a new async connection. The format of the connection
string is backend-dependent.
Auto Trait Implementations§
impl Freeze for PgBackend
impl RefUnwindSafe for PgBackend
impl Send for PgBackend
impl Sync for PgBackend
impl Unpin for PgBackend
impl UnwindSafe for PgBackend
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