Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3377791
D3083.id9371.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3083.id9371.diff
View Options
diff --git a/services/backup/docker-server/contents/server/CMakeLists.txt b/services/backup/docker-server/contents/server/CMakeLists.txt
--- a/services/backup/docker-server/contents/server/CMakeLists.txt
+++ b/services/backup/docker-server/contents/server/CMakeLists.txt
@@ -62,6 +62,7 @@
include_directories(
./src
+ ./src/DatabaseEntities
./_generated
${Boost_INCLUDE_DIR}
${DEV_HEADERS_PATH}
diff --git a/services/backup/docker-server/contents/server/src/DatabaseEntities/Item.h b/services/backup/docker-server/contents/server/src/DatabaseEntities/Item.h
new file mode 100644
--- /dev/null
+++ b/services/backup/docker-server/contents/server/src/DatabaseEntities/Item.h
@@ -0,0 +1,26 @@
+#pragma once
+
+#include <aws/core/Aws.h>
+#include <aws/dynamodb/DynamoDBClient.h>
+
+#include <string>
+
+namespace comm {
+namespace network {
+namespace database {
+
+typedef Aws::Map<Aws::String, Aws::DynamoDB::Model::AttributeValue>
+ AttributeValues;
+
+class Item {
+ virtual void validate() const = 0;
+
+public:
+ virtual std::string getTableName() const = 0;
+ virtual std::string getPrimaryKey() const = 0;
+ virtual void assignItemFromDatabase(const AttributeValues &itemFromDB) = 0;
+};
+
+} // namespace database
+} // namespace network
+} // namespace comm
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 28, 7:32 AM (21 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2592967
Default Alt Text
D3083.id9371.diff (1 KB)
Attached To
Mode
D3083: [services] Backup - Database - add Item
Attached
Detach File
Event Timeline
Log In to Comment