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)
Apr 3 2024, 12:11 AM
Unknown Object (File)
Apr 3 2024, 12:11 AM
Unknown Object (File)
Apr 3 2024, 12:11 AM
Unknown Object (File)
Apr 3 2024, 12:11 AM
Unknown Object (File)
Apr 3 2024, 12:11 AM
Unknown Object (File)
Apr 3 2024, 12:10 AM
Unknown Object (File)
Apr 2 2024, 11:59 PM
Unknown Object (File)
Apr 2 2024, 12:15 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
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.