This repository has been archived by the owner on Mar 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ana Maria Franco <[email protected]>
- Loading branch information
1 parent
5d09324
commit 923f222
Showing
8 changed files
with
1,232 additions
and
7 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
29 changes: 29 additions & 0 deletions
29
cmd/aries-agent-mobile/pkg/component/storage/sqlite/errors.go
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
Copyright SecureKey Technologies Inc. All Rights Reserved. | ||
SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package sqlite | ||
|
||
import ( | ||
"errors" | ||
) | ||
|
||
const ( | ||
// Error messages we return. | ||
failureWhileOpeningSQLiteConnectionErrMsg = "failure while opening SQLite connection using path %s: %w" | ||
failureWhileClosingSQLiteConnection = "failure while closing SQLite DB connection: %w" | ||
failureWhilePingingSQLiteErrMsg = "failure while pinging SQLite at path %s : %w" | ||
failureWhileCreatingTableErrMsg = "failure while creating table %s: %w" | ||
failureWhileExecutingInsertStatementErrMsg = "failure while executing insert statement on table %s: %w" | ||
failureWhileQueryingRowErrMsg = "failure while querying row: %w" | ||
failureWhileExecutingBatchStatementErrMsg = "failure while executing batch upsert on table %s: %w" | ||
// Error messages returned from MySQL that we directly check for. | ||
valueNotFoundErrMsgFromSQlite = "no rows" | ||
) | ||
|
||
var ( | ||
errBlankDBPath = errors.New("DB Path for new SQLite DB provider can't be blank") | ||
errBlankStoreName = errors.New("store name is required") | ||
) |
Oops, something went wrong.