Page MenuHomePhabricator

[services][backup] Add database helpers
ClosedPublic

Authored by bartek on Jan 5 2023, 5:12 AM.
Tags
None
Referenced Files
F3500269: D6179.id20939.diff
Fri, Dec 20, 1:09 AM
F3497618: D6179.diff
Thu, Dec 19, 7:28 PM
Unknown Object (File)
Wed, Dec 18, 11:09 PM
Unknown Object (File)
Wed, Dec 18, 11:08 PM
Unknown Object (File)
Wed, Dec 18, 10:54 PM
Unknown Object (File)
Wed, Dec 18, 10:21 PM
Unknown Object (File)
Mon, Dec 9, 4:46 AM
Unknown Object (File)
Fri, Dec 6, 9:48 PM
Subscribers

Details

Summary

Added error structures and helper methods for database client. These are mostly copy-pasted from blob and identity services. In the future I plan to extract these to some shared rust library: https://linear.app/comm/issue/ENG-2311/shared-rust-code-across-services

Depends on D6178

Test Plan

These methods are tested altogether with the database code. However, it might be worth adding some unit tests as a follow-up task.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Jan 5 2023, 5:20 AM
This revision is now accepted and ready to land.Jan 9 2023, 7:29 PM
This revision was automatically updated to reflect the committed changes.