ockam_node::storage::database

Function with_postgres

Source
pub async fn with_postgres<F, Fut>(f: F) -> Result<()>
where F: Fn(SqlxDatabase) -> Fut + Send + Sync + 'static, Fut: Future<Output = Result<()>> + Send + 'static,
Expand description

This function can be used to run some test code with a postgres database