summaryrefslogtreecommitdiff
path: root/src/state.rs
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2024-08-20 21:11:43 +0200
committerSanto Cariotti <santo@dcariotti.me>2024-08-20 21:11:43 +0200
commitc2b09dbb88591d9695c1cd2227c5d559b4a8e775 (patch)
tree8773ae641ea61c90024c3e7b5dd184dbf6a3cbab /src/state.rs
parent3c8b004d6ecb6764cd5bc935aaeaf884040320ab (diff)
Add state for database
Diffstat (limited to 'src/state.rs')
-rw-r--r--src/state.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/state.rs b/src/state.rs
new file mode 100644
index 0000000..d4719b9
--- /dev/null
+++ b/src/state.rs
@@ -0,0 +1,7 @@
+use std::sync::Arc;
+
+use tokio_postgres::Client;
+#[derive(Clone)]
+pub struct AppState {
+ pub client: Arc<Client>,
+}