Struct sea_orm::SqlxPostgresConnector
source · pub struct SqlxPostgresConnector;
Expand description
Defines the [sqlx::postgres] connector
Implementations§
source§impl 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
source§impl 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