Struct sea_orm::SqlxPostgresConnector
source · pub struct SqlxPostgresConnector;
Expand description
Defines the [sqlx::postgres] connector
Implementations
sourceimpl SqlxPostgresConnector
impl SqlxPostgresConnector
sourcepub fn accepts(string: &str) -> bool
pub fn accepts(string: &str) -> bool
Check if the URI provided corresponds to postgres://
for a PostgreSQL database
sourcepub async fn connect(
options: ConnectOptions
) -> Result<DatabaseConnection, DbErr>
pub async fn connect(
options: ConnectOptions
) -> Result<DatabaseConnection, DbErr>
Add configuration options for the PostgreSQL database
sourceimpl SqlxPostgresConnector
impl SqlxPostgresConnector
sourcepub fn from_sqlx_postgres_pool(pool: PgPool) -> DatabaseConnection
pub fn from_sqlx_postgres_pool(pool: PgPool) -> DatabaseConnection
Instantiate a sqlx pool connection to a DatabaseConnection
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SqlxPostgresConnector
impl Send for SqlxPostgresConnector
impl Sync for SqlxPostgresConnector
impl Unpin for SqlxPostgresConnector
impl UnwindSafe for SqlxPostgresConnector
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more