diff options
author | Santo Cariotti <santo@dcariotti.me> | 2021-03-14 12:55:21 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2021-03-14 12:55:21 +0100 |
commit | 6acc53da212e7506fd33534fd5cf9baa0d01e4ea (patch) | |
tree | fa9c35bace83a46f74ae11ad23eb58f47eba2161 /src/db.rs | |
parent | f7932c366bab2f5d0726f4d1cdf5b9dbeddf92eb (diff) |
chore: add docs
Diffstat (limited to 'src/db.rs')
-rw-r--r-- | src/db.rs | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1,6 +1,7 @@ use crate::errors::AppError; use deadpool_postgres::{Client, Pool, PoolError}; +/// Return a valid `Client` to make SQL queries pub async fn get_client(pool: Pool) -> Result<Client, AppError> { pool.get() .await |