Skip to main content

create_pg_search_pool

Function create_pg_search_pool 

Source
pub async fn create_pg_search_pool(
    database_url: &str,
    max_connections: u32,
) -> Result<Pool<Postgres>, OperationOutcomeError>
Expand description

Creates the search index’s own connection pool.

§Errors

Returns an error if the first connection cannot be opened.