summaryrefslogtreecommitdiffstats
path: root/storage/rocksdb/rocksdb/tools/rdb/rdb.cc
diff options
context:
space:
mode:
Diffstat (limited to 'storage/rocksdb/rocksdb/tools/rdb/rdb.cc')
-rw-r--r--storage/rocksdb/rocksdb/tools/rdb/rdb.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/storage/rocksdb/rocksdb/tools/rdb/rdb.cc b/storage/rocksdb/rocksdb/tools/rdb/rdb.cc
new file mode 100644
index 00000000..119fcc41
--- /dev/null
+++ b/storage/rocksdb/rocksdb/tools/rdb/rdb.cc
@@ -0,0 +1,16 @@
+// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
+#ifndef BUILDING_NODE_EXTENSION
+#define BUILDING_NODE_EXTENSION
+#endif
+
+#include <node.h>
+#include <v8.h>
+#include "db/_wrapper.h"
+
+using namespace v8;
+
+void InitAll(Handle<Object> exports) {
+ DBWrapper::Init(exports);
+}
+
+NODE_MODULE(rdb, InitAll)