dendrite/internal/cosmosdbutil
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
..
connection.go Add tenant-id to all docs and cross-tenant queries (#14) 2021-07-27 14:10:35 +10:00
document_seq.go Add CT and UT to all documents and refactor (#17) 2021-09-20 17:41:04 +10:00
errors.go Implement Cosmos DB for the RoomServer Service (#5) 2021-05-20 14:42:33 +10:00
partition_offset_table.go Use a common way to generate CollectionName and PartitionKey (#18) 2021-09-23 09:02:37 +10:00
writer.go Implement Cosmos DB for the KeyServer Service (#6) 2021-05-21 09:34:30 +10:00
writer_exclusive.go Implement Cosmos DB for the RoomServer Service (#5) 2021-05-20 14:42:33 +10:00