aboutsummaryrefslogtreecommitdiff
path: root/app/source/Cplt/Model/Database.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-11-27 12:04:31 -0800
committerrtk0c <[email protected]>2022-11-27 12:04:31 -0800
commit182c8f8357739f905bbd721006480502435b6b43 (patch)
tree082613a474d863182e2ad8f2167f1643f26e67a3 /app/source/Cplt/Model/Database.hpp
parentb01ed99a1cd0c863c8709930658513c04dd70f61 (diff)
Update brace style to match rest of my projectscplt-imgui
Diffstat (limited to 'app/source/Cplt/Model/Database.hpp')
-rw-r--r--app/source/Cplt/Model/Database.hpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/app/source/Cplt/Model/Database.hpp b/app/source/Cplt/Model/Database.hpp
index 222e43d..7d6509b 100644
--- a/app/source/Cplt/Model/Database.hpp
+++ b/app/source/Cplt/Model/Database.hpp
@@ -6,8 +6,7 @@
#include <SQLiteCpp/Statement.h>
#include <cstdint>
-enum class TableKind
-{
+enum class TableKind {
Sales,
SalesItems,
Purchases,
@@ -16,8 +15,7 @@ enum class TableKind
DeliveriesItems,
};
-class SalesTable
-{
+class SalesTable {
public:
SQLite::Statement GetRowCount;
SQLite::Statement GetRows;
@@ -27,8 +25,7 @@ public:
SalesTable(MainDatabase& db);
};
-class PurchasesTable
-{
+class PurchasesTable {
public:
SQLite::Statement GetRowCount;
SQLite::Statement GetRows;
@@ -38,8 +35,7 @@ public:
PurchasesTable(MainDatabase& db);
};
-class DeliveryTable
-{
+class DeliveryTable {
public:
SQLite::Statement FilterByTypeAndId;
SQLite::Statement GetItems;
@@ -48,11 +44,9 @@ public:
DeliveryTable(MainDatabase& db);
};
-class MainDatabase
-{
+class MainDatabase {
private:
- class DatabaseWrapper
- {
+ class DatabaseWrapper {
public:
SQLite::Database mSqlite;
DatabaseWrapper(MainDatabase& self);