File tree Expand file tree Collapse file tree 4 files changed +3
-43
lines changed
Expand file tree Collapse file tree 4 files changed +3
-43
lines changed Original file line number Diff line number Diff line change @@ -2128,6 +2128,7 @@ NAPI_INIT() {
21282128 NAPI_EXPORT_FUNCTION (db_query);
21292129 NAPI_EXPORT_FUNCTION (db_compact_range_sync);
21302130 NAPI_EXPORT_FUNCTION (db_compact_range);
2131+ NAPI_EXPORT_FUNCTION (db_flush_wal);
21312132
21322133 NAPI_EXPORT_FUNCTION (iterator_init);
21332134 NAPI_EXPORT_FUNCTION (iterator_seek);
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ class RocksLevel extends AbstractLevel {
255255 return binding . db_get_property ( this [ kContext ] , property )
256256 }
257257
258- query ( options , callback ) {
258+ query ( options , callback ) {
259259 callback = fromCallback ( callback , kPromise )
260260
261261 try {
@@ -331,14 +331,4 @@ class RocksLevel extends AbstractLevel {
331331 }
332332}
333333
334- exports . RocksLevel = RocksLevel
335- } )
336- }
337-
338- binding . db_wal_flush ( this [ kContext ] , callback )
339-
340- return callback [ kPromise ]
341- }
342- }
343-
344334exports . RocksLevel = RocksLevel
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments