aboutsummaryrefslogtreecommitdiff
path: root/core/src/Model/TransactionDatabase.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2021-04-01 22:18:46 -0700
committerrtk0c <[email protected]>2021-04-01 22:18:46 -0700
commit2f4b9db39239ed5150094a81743beea42a3eedc2 (patch)
tree7d5795f7c23eb4f92ccffe2476da019db9977f2b /core/src/Model/TransactionDatabase.hpp
parent44f5fa5c8f258e8fc1f7d7e2e45e0485bd6cc490 (diff)
Initial work on SQLite database
Diffstat (limited to 'core/src/Model/TransactionDatabase.hpp')
-rw-r--r--core/src/Model/TransactionDatabase.hpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/core/src/Model/TransactionDatabase.hpp b/core/src/Model/TransactionDatabase.hpp
new file mode 100644
index 0000000..191a8b8
--- /dev/null
+++ b/core/src/Model/TransactionDatabase.hpp
@@ -0,0 +1,34 @@
+#pragma once
+
+#include "cplt_fwd.hpp"
+
+#include <sqlite3.h>
+#include <cstdint>
+
+struct DeliveryId {
+ int64_t id;
+};
+
+class DeliveryTable {
+};
+
+class OrdersTable {
+};
+
+class PurchasesTable {
+};
+
+class TransactionDatabase {
+private:
+ Project* mProject;
+ sqlite3* mDatabase;
+
+public:
+ TransactionDatabase(Project& project);
+ ~TransactionDatabase();
+
+ TransactionDatabase(const TransactionDatabase&) = delete;
+ TransactionDatabase& operator=(const TransactionDatabase&) = delete;
+ TransactionDatabase(TransactionDatabase&&) = default;
+ TransactionDatabase& operator=(TransactionDatabase&&) = default;
+};