LP#1727557 - Reimplement offline lovefield.js DB in YAML user/csharp/lp1727557_offline_db_bundled_mode
authorChris Sharp <csharp@georgialibraries.org>
Thu, 12 Apr 2018 12:21:00 +0000 (08:21 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Thu, 12 Apr 2018 12:21:00 +0000 (08:21 -0400)
This is the first step towards enabling lovefield's
"bundled mode", which may better handle the large
offline blocked files generated by Evergreen sites.

See https://github.com/google/lovefield/blob/master/docs/dd/02_data_store.md#232-bundled-mode-experiment

Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/web/js/ui/default/staff/offline_db.yml [new file with mode: 0644]

diff --git a/Open-ILS/web/js/ui/default/staff/offline_db.yml b/Open-ILS/web/js/ui/default/staff/offline_db.yml
new file mode 100644 (file)
index 0000000..3236305
--- /dev/null
@@ -0,0 +1,51 @@
+%YAML 1.2
+---
+name: offline
+version: 3
+pragma:
+  enableBundledMode: true
+
+table:
+  Object:
+    column:
+      type: string
+      id: string
+      object: object
+    constraint:
+      primaryKey: [ type, id ]
+
+  CacheDate:
+    column:
+      type: string
+      cachedate: datetime
+    constraint:
+      primaryKey: [ type ]
+
+  Setting:
+    column:
+      name: string
+      value: string
+    constraint:
+      primaryKey: [ name ]
+
+  StatCat:
+    column:
+      id: integer
+      value: object
+    constraint:
+      primaryKey: [ id ]
+      
+  OfflineXact:
+    column:
+      seq: integer
+      value: object
+    constraint:
+      primaryKey: [ seq ]
+
+  OfflineBlocks:
+    column:
+      barcode: string
+      reason: string
+    constraint:
+      primaryKey: [ barcode ]
+