summaryrefslogtreecommitdiff
path: root/src/state.rs
diff options
context:
space:
mode:
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>,
+}