diff options
author | Greg Soltis <gsoltis@google.com> | 2018-03-22 09:51:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-22 09:51:30 -0700 |
commit | 7a512f4a367aa4c2e75b53531d9b92ad37f130fe (patch) | |
tree | 9b0e2e1d14193ef1eedccefdc089d14be119a783 /Firestore/core/src/firebase/firestore/local/leveldb_transaction.h | |
parent | cf630bfee60694f9bf1577972df169badda0b6e0 (diff) |
Add `ToString()` to `LevelDbTransaction` (#946)
* Initial plumbing for leveldb local parts
* Add model::BatchId
* Port leveldb_key.{h,cc}
* Add string StartsWith
* Add leveldb_key_test.cc to the project
* Revert back to using leveldb::Slice for read/describe
These operations universally operate on keys obtained from leveldb so
it's actually unhelpful to force all the callers to make
absl::string_views from them.
* Start work on ToString for transactions
* Add ToString() method to LevelDbTransaction
* Style
* lint
* Revert addition of util::StartsWith
Diffstat (limited to 'Firestore/core/src/firebase/firestore/local/leveldb_transaction.h')
-rw-r--r-- | Firestore/core/src/firebase/firestore/local/leveldb_transaction.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Firestore/core/src/firebase/firestore/local/leveldb_transaction.h b/Firestore/core/src/firebase/firestore/local/leveldb_transaction.h index 015a6cb..b219a69 100644 --- a/Firestore/core/src/firebase/firestore/local/leveldb_transaction.h +++ b/Firestore/core/src/firebase/firestore/local/leveldb_transaction.h @@ -188,6 +188,8 @@ class LevelDbTransaction { */ void Commit(); + std::string ToString(); + private: leveldb::DB* db_; Mutations mutations_; |