@nxtedition/rocksdb 7.0.49 → 7.0.50
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/binding.cc +4 -4
- package/index.js +1 -2
- package/package.json +1 -1
package/binding.cc
CHANGED
|
@@ -1248,8 +1248,8 @@ NAPI_METHOD(updates_init) {
|
|
|
1248
1248
|
const bool keyAsBuffer = EncodingIsBuffer(env, argv[1], "keyEncoding");
|
|
1249
1249
|
const bool valueAsBuffer = EncodingIsBuffer(env, argv[1], "valueEncoding");
|
|
1250
1250
|
|
|
1251
|
-
rocksdb::ColumnFamilyHandle* column;
|
|
1252
|
-
NAPI_STATUS_THROWS(GetColumnFamily(nullptr, env, argv[1], &column));
|
|
1251
|
+
rocksdb::ColumnFamilyHandle* column = nullptr;
|
|
1252
|
+
// NAPI_STATUS_THROWS(GetColumnFamily(nullptr, env, argv[1], &column));
|
|
1253
1253
|
|
|
1254
1254
|
auto updates = std::make_unique<Updates>(database, since, keys, values, data, column, keyAsBuffer, valueAsBuffer);
|
|
1255
1255
|
|
|
@@ -1933,8 +1933,8 @@ NAPI_METHOD(batch_iterate) {
|
|
|
1933
1933
|
const bool keyAsBuffer = EncodingIsBuffer(env, argv[1], "keyEncoding");
|
|
1934
1934
|
const bool valueAsBuffer = EncodingIsBuffer(env, argv[1], "valueEncoding");
|
|
1935
1935
|
|
|
1936
|
-
rocksdb::ColumnFamilyHandle* column;
|
|
1937
|
-
NAPI_STATUS_THROWS(GetColumnFamily(nullptr, env, argv[2], &column));
|
|
1936
|
+
rocksdb::ColumnFamilyHandle* column = nullptr;
|
|
1937
|
+
// NAPI_STATUS_THROWS(GetColumnFamily(nullptr, env, argv[2], &column));
|
|
1938
1938
|
|
|
1939
1939
|
napi_value result;
|
|
1940
1940
|
BatchIterator iterator(nullptr, keys, values, data, column, keyAsBuffer, valueAsBuffer);
|
package/index.js
CHANGED
|
@@ -305,9 +305,8 @@ class RocksLevel extends AbstractLevel {
|
|
|
305
305
|
signal: options?.signal ?? null
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
-
// HACK: We don't properly check for nully column in binding.
|
|
309
308
|
if (options.column) {
|
|
310
|
-
throw new TypeError("'column' not
|
|
309
|
+
throw new TypeError("'column' not implemented")
|
|
311
310
|
}
|
|
312
311
|
|
|
313
312
|
if (typeof options.since !== 'number') {
|