@nxtedition/rocksdb 7.0.22 → 7.0.23
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
CHANGED
|
@@ -1103,7 +1103,7 @@ NAPI_METHOD(updates_next) {
|
|
|
1103
1103
|
NAPI_ARGV(2);
|
|
1104
1104
|
|
|
1105
1105
|
Updates* updates;
|
|
1106
|
-
NAPI_STATUS_THROWS(napi_get_value_external(env, argv[0], (
|
|
1106
|
+
NAPI_STATUS_THROWS(napi_get_value_external(env, argv[0], reinterpret_cast<void**>(&updates)));
|
|
1107
1107
|
|
|
1108
1108
|
auto worker = new UpdatesNextWorker(env, updates, argv[1]);
|
|
1109
1109
|
worker->Queue(env);
|
|
@@ -1115,7 +1115,7 @@ NAPI_METHOD(updates_close) {
|
|
|
1115
1115
|
NAPI_ARGV(1);
|
|
1116
1116
|
|
|
1117
1117
|
Updates* updates;
|
|
1118
|
-
NAPI_STATUS_THROWS(napi_get_value_external(env, argv[0], (
|
|
1118
|
+
NAPI_STATUS_THROWS(napi_get_value_external(env, argv[0], reinterpret_cast<void**>(&updates)));
|
|
1119
1119
|
|
|
1120
1120
|
updates->Detach(env);
|
|
1121
1121
|
updates->Close();
|
|
@@ -1135,8 +1135,11 @@ NAPI_METHOD(db_put) {
|
|
|
1135
1135
|
std::string val;
|
|
1136
1136
|
NAPI_STATUS_THROWS(ToString(env, argv[2], val));
|
|
1137
1137
|
|
|
1138
|
+
rocksdb::ColumnFamilyHandle* column;
|
|
1139
|
+
NAPI_STATUS_THROWS(GetColumnFamily(database, env, argv[3], &column));
|
|
1140
|
+
|
|
1138
1141
|
rocksdb::WriteOptions writeOptions;
|
|
1139
|
-
ROCKS_STATUS_THROWS(database->db_->Put(writeOptions, key, val));
|
|
1142
|
+
ROCKS_STATUS_THROWS(database->db_->Put(writeOptions, column, key, val));
|
|
1140
1143
|
|
|
1141
1144
|
return 0;
|
|
1142
1145
|
}
|
package/package.json
CHANGED
|
Binary file
|