summaryrefslogtreecommitdiff
path: root/src/services/db.rs
diff options
context:
space:
mode:
authormrw1593 <botahamec@outlook.com>2023-03-19 12:24:28 -0400
committermrw1593 <botahamec@outlook.com>2023-03-19 12:24:28 -0400
commitf149374e2c6682ea5b9b1d692b001d6ab5faea4a (patch)
tree0a54b08b0fe4ce409108ab1af5d1fdc7fa11157f /src/services/db.rs
parentc00129570baaabe71a3778bc35820e441f51174b (diff)
Implement password hashing
Diffstat (limited to 'src/services/db.rs')
-rw-r--r--src/services/db.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/services/db.rs b/src/services/db.rs
index baf73e9..a8e4918 100644
--- a/src/services/db.rs
+++ b/src/services/db.rs
@@ -1,6 +1,7 @@
use exun::*;
use sqlx::MySqlPool;
+/// Intialize the connection pool
pub async fn initialize(db: &str, user: &str, password: &str) -> Result<MySqlPool, RawUnexpected> {
let url = format!("mysql://{user}:{password}@localhost/{db}");
MySqlPool::connect(&url).await.unexpect()