コード例 #1
0
        /// <summary>
        /// Return a handle to the current DB state.
        /// Iterators and Gets created with this handle will all observe a stable snapshot of the current DB state.
        /// </summary>
        public SnapShot CreateSnapshot()
        {
            var result = new SnapShot(LevelDBInterop.leveldb_create_snapshot(this.Handle), this);

            GC.KeepAlive(this);
            return(result);
        }
コード例 #2
0
ファイル: DB.cs プロジェクト: bkwcl/LevelDB
 /// <summary>
 /// Return a handle to the current DB state.
 /// Iterators and Gets created with this handle will all observe a stable snapshot of the current DB state.
 /// </summary>
 public SnapShot CreateSnapshot()
 {
     return(new SnapShot(LevelDBInterop.leveldb_create_snapshot(this.Handle), this));
 }