Skip to main content

get_pg_cache_database

Function get_pg_cache_database 

Source
pub async fn get_pg_cache_database(
    trader_id: TraderId,
) -> Result<PostgresCacheDatabase>
Expand description

Retrieves a PostgresCacheDatabase for trader_id using default connection options.

ยงErrors

Returns an error if connecting to the database or initializing the cache adapter fails.