dendrite/userapi/storage/devices
alexfca 927238a686
Use a common way to generate CollectionName and PartitionKey (#18)
* - Create CosmosDocument as a base class
- Add CT and UT
- Refactor all tables to use the CosmosDocument

* - Add UpsertDocument method to perform updates in a generic way
- Add SetUpdateTime() to update the UT for updates
- Refactor it all

* - Add Performquery method
- Refactor appservice_events_table

* - Update naffka Topics and Messages to use the common pattern

* - Update keyserver to use the common pattern for collection and PK

* - Update mediaapi to use the common pattern for collection and pk

* - Update roomserver to use the common pattern for collectionname and pk

* - Update signingkeyserver to use the common pattern for collectionname and pk

* - Update userapi touse the common pattern for collectionname and pk

* - Update partitionOffset to use the common collectionname and pk
- Remove generic GetPartitionKey() method

Co-authored-by: alexf@example.com <alexf@example.com>
2021-09-23 09:02:37 +10:00
..
cosmosdb Use a common way to generate CollectionName and PartitionKey (#18) 2021-09-23 09:02:37 +10:00
postgres Top-level setup package (#1605) 2020-12-02 17:41:00 +00:00
sqlite3 Only include go-sqlite3 on the relevant binaries (#1900) 2021-07-20 11:18:14 +01:00
interface.go Update last seen on sync requests (#1593) 2020-11-20 11:29:02 +00:00
storage.go storage.go 2021-05-06 14:41:27 +10:00
storage_wasm.go storage.go 2021-05-06 14:41:27 +10:00