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)
Tue, Mar 4, 6:34 AM
Unknown Object (File)
Tue, Mar 4, 6:34 AM
Unknown Object (File)
Tue, Mar 4, 6:34 AM
Unknown Object (File)
Tue, Mar 4, 6:34 AM
Unknown Object (File)
Tue, Mar 4, 6:34 AM
Unknown Object (File)
Tue, Mar 4, 6:33 AM
Unknown Object (File)
Tue, Mar 4, 6:25 AM
Unknown Object (File)
Mon, Feb 24, 8:57 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
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.