From a21e5512d80607840b3be62670d3dc1351dd6300 Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Thu, 12 Apr 2018 08:21:00 -0400 Subject: [PATCH] LP#1727557 - Reimplement offline lovefield.js DB in YAML 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 --- Open-ILS/web/js/ui/default/staff/offline_db.yml | 51 +++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Open-ILS/web/js/ui/default/staff/offline_db.yml 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 index 0000000000..323630508b --- /dev/null +++ b/Open-ILS/web/js/ui/default/staff/offline_db.yml @@ -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 ] + -- 2.11.0