forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(indexer-alt): standardise Db Errors on anyhow
## Description Return `anyhow::Result`s from `sui_pg_db::Db` APIs, hiding the underlying connection library's error type. This was done to make it easier to support read-only transactions, which require executing a DB statement after acquiring a connection (to ensure it is read-only), which might produce diesel's error type, while acquiring the connection produces an error from `bb8`. ## Test plan CI
- Loading branch information
Showing
3 changed files
with
13 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters