forked from dgraph-io/badger
-
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.
Breaking Change: Introduce new APIs for Entry creation/modification
* Add functions to create, modify Entry Currently no functions are exposed to create and modify Entry, to be set in a transaction. Functions Set, SetWithMeta, SetWithDiscard, SetWithTTL, all are part of Txn struct. These functions internally create an entry and then call txn.SetEntry. All of Set functions, set a specific property of Entry apart from key and value. This restricts us from setting multiple property for same entry such as meta and TTL. This PR adds functions to set different properties on an existing Entry. After setting desired properties, user can call txn.SetEntry to add entry in the transaction. It also removes entry related functions from Txn Struct except SetEntry and Set. * Fix all compilation failure due to above change using new Entry methods. * Fix comments from GolangCI.
- Loading branch information
1 parent
0ce1d2e
commit e9447c9
Showing
16 changed files
with
198 additions
and
206 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
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
Oops, something went wrong.