@nxtedition/rocksdb 13.1.2 → 13.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/binding.cc +6 -13
- package/package.json +1 -1
package/binding.cc
CHANGED
|
@@ -1066,42 +1066,35 @@ NAPI_METHOD(db_open) {
|
|
|
1066
1066
|
dbOptions.avoid_unnecessary_blocking_io = true;
|
|
1067
1067
|
NAPI_STATUS_THROWS(GetProperty(env, options, "avoidUnnecessaryBlockingIO", dbOptions.avoid_unnecessary_blocking_io));
|
|
1068
1068
|
|
|
1069
|
-
dbOptions.write_dbid_to_manifest = true;
|
|
1070
|
-
NAPI_STATUS_THROWS(GetProperty(env, options, "writeDbIdToManifest", dbOptions.write_dbid_to_manifest));
|
|
1071
|
-
|
|
1072
1069
|
dbOptions.create_missing_column_families = true;
|
|
1073
1070
|
NAPI_STATUS_THROWS(GetProperty(env, options, "createMissingColumnFamilies", dbOptions.create_missing_column_families));
|
|
1074
1071
|
|
|
1075
|
-
dbOptions.
|
|
1072
|
+
NAPI_STATUS_THROWS(GetProperty(env, options, "writeDbIdToManifest", dbOptions.write_dbid_to_manifest));
|
|
1073
|
+
|
|
1076
1074
|
NAPI_STATUS_THROWS(GetProperty(env, options, "failIfOptionsFileError", dbOptions.fail_if_options_file_error));
|
|
1077
1075
|
|
|
1078
|
-
dbOptions.advise_random_on_open = true;
|
|
1079
1076
|
NAPI_STATUS_THROWS(GetProperty(env, options, "adviseRandomOnOpen", dbOptions.advise_random_on_open));
|
|
1080
1077
|
|
|
1081
|
-
dbOptions.bytes_per_sync = 1024 * 1024;
|
|
1082
1078
|
NAPI_STATUS_THROWS(GetProperty(env, options, "bytesPerSync", dbOptions.bytes_per_sync));
|
|
1083
1079
|
|
|
1084
|
-
dbOptions.wal_bytes_per_sync = 1024 * 1024;
|
|
1085
1080
|
NAPI_STATUS_THROWS(GetProperty(env, options, "walBytesPerSync", dbOptions.wal_bytes_per_sync));
|
|
1086
1081
|
|
|
1087
|
-
dbOptions.strict_bytes_per_sync = true;
|
|
1088
1082
|
NAPI_STATUS_THROWS(GetProperty(env, options, "strictBytesPerSync", dbOptions.strict_bytes_per_sync));
|
|
1089
1083
|
|
|
1090
|
-
dbOptions.create_if_missing = false;
|
|
1091
1084
|
NAPI_STATUS_THROWS(GetProperty(env, options, "createIfMissing", dbOptions.create_if_missing));
|
|
1092
1085
|
|
|
1093
|
-
dbOptions.error_if_exists = false;
|
|
1094
1086
|
NAPI_STATUS_THROWS(GetProperty(env, options, "errorIfExists", dbOptions.error_if_exists));
|
|
1095
1087
|
|
|
1096
|
-
dbOptions.enable_pipelined_write = true;
|
|
1097
1088
|
NAPI_STATUS_THROWS(GetProperty(env, options, "pipelinedWrite", dbOptions.enable_pipelined_write));
|
|
1098
1089
|
|
|
1099
|
-
dbOptions.daily_offpeak_time_utc = "";
|
|
1100
1090
|
NAPI_STATUS_THROWS(GetProperty(env, options, "dailyOffpeakTime", dbOptions.daily_offpeak_time_utc));
|
|
1101
1091
|
|
|
1102
|
-
dbOptions.unordered_write = false;
|
|
1103
1092
|
NAPI_STATUS_THROWS(GetProperty(env, options, "unorderedWrite", dbOptions.unordered_write));
|
|
1104
1093
|
|
|
1094
|
+
NAPI_STATUS_THROWS(GetProperty(env, options, "allowMmapReads", dbOptions.allow_mmap_reads));
|
|
1095
|
+
|
|
1096
|
+
NAPI_STATUS_THROWS(GetProperty(env, options, "allowMmapWrites", dbOptions.allow_mmap_writes));
|
|
1097
|
+
|
|
1105
1098
|
// TODO (feat): dbOptions.listeners
|
|
1106
1099
|
|
|
1107
1100
|
std::string infoLogLevel;
|