From: Chris Sharp Date: Thu, 12 Apr 2018 12:21:00 +0000 (-0400) Subject: LP#1727557 - Reimplement offline lovefield.js DB in YAML X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fcsharp%2Flp1727557_offline_db_bundled_mode;p=working%2FEvergreen.git 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 --- 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 ] +