summaryrefslogtreecommitdiff
path: root/src/db.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/db.rs')
-rw-r--r--src/db.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/db.rs b/src/db.rs
index f547ab2..5367288 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -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