pub fn create_pool(database_url: &str) -> OrmResult<Pool>Expand description
Create a connection pool from a database URL.
This is a convenience helper that uses NoTls and small default settings
(suitable for local/dev). For production, prefer:
create_pool_with_tlsif your DB requires TLScreate_pool_with_manager_configto inject pool/manager tuning
§Example
ⓘ
let pool = pgorm::create_pool("postgres://user:pass@localhost/db")?;
let client = pool.get().await?;