Page MenuHomePhabricator

[services][backup] Add database helpers
ClosedPublic

Authored by bartek on Jan 5 2023, 5:12 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 9, 4:46 AM
Unknown Object (File)
Fri, Dec 6, 9:48 PM
Unknown Object (File)
Sun, Dec 1, 4:01 AM
Unknown Object (File)
Sat, Nov 30, 12:57 AM
Unknown Object (File)
Sat, Nov 30, 12:57 AM
Unknown Object (File)
Sat, Nov 30, 12:57 AM
Unknown Object (File)
Sat, Nov 30, 12:57 AM
Unknown Object (File)
Sat, Nov 30, 12:57 AM
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
No Lint Coverage
Unit
No Test Coverage

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.