rocksdb-native 3.1.1 → 3.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CMakeLists.txt +1 -1
- package/index.js +6 -2
- package/package.json +1 -1
- package/prebuilds/android-arm64/rocksdb-native.bare +0 -0
- package/prebuilds/android-ia32/rocksdb-native.bare +0 -0
- package/prebuilds/android-x64/rocksdb-native.bare +0 -0
- package/prebuilds/darwin-arm64/rocksdb-native.bare +0 -0
- package/prebuilds/darwin-arm64/rocksdb-native.node +0 -0
- package/prebuilds/darwin-x64/rocksdb-native.bare +0 -0
- package/prebuilds/darwin-x64/rocksdb-native.node +0 -0
- package/prebuilds/ios-arm64/rocksdb-native.bare +0 -0
- package/prebuilds/ios-arm64-simulator/rocksdb-native.bare +0 -0
- package/prebuilds/ios-x64-simulator/rocksdb-native.bare +0 -0
- package/prebuilds/linux-arm64/rocksdb-native.bare +0 -0
- package/prebuilds/linux-arm64/rocksdb-native.node +0 -0
- package/prebuilds/linux-x64/rocksdb-native.bare +0 -0
- package/prebuilds/linux-x64/rocksdb-native.node +0 -0
- package/prebuilds/win32-arm64/rocksdb-native.bare +0 -0
- package/prebuilds/win32-arm64/rocksdb-native.node +0 -0
- package/prebuilds/win32-x64/rocksdb-native.bare +0 -0
- package/prebuilds/win32-x64/rocksdb-native.node +0 -0
package/CMakeLists.txt
CHANGED
package/index.js
CHANGED
|
@@ -28,13 +28,17 @@ class RocksDB {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
get closed() {
|
|
31
|
-
return this.isRoot() ? this._state.closed : this.
|
|
31
|
+
return this.isRoot() ? this._state.closed : this._index === -1
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
get path() {
|
|
35
35
|
return this._state.path
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
get snapshotted() {
|
|
39
|
+
return this._snapshot !== null
|
|
40
|
+
}
|
|
41
|
+
|
|
38
42
|
get defaultColumnFamily() {
|
|
39
43
|
return this._columnFamily
|
|
40
44
|
}
|
|
@@ -172,6 +176,6 @@ module.exports = exports = RocksDB
|
|
|
172
176
|
exports.ColumnFamily = ColumnFamily
|
|
173
177
|
|
|
174
178
|
function maybeClosed(db) {
|
|
175
|
-
if (db._state.closing || db.
|
|
179
|
+
if (db._state.closing || db._index === -1)
|
|
176
180
|
throw new Error('RocksDB session is closed')
|
|
177
181
|
}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|