summaryrefslogtreecommitdiffstats
path: root/src/rocksdb/tools/rdb/rdb.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/rocksdb/tools/rdb/rdb.cc')
-rw-r--r--src/rocksdb/tools/rdb/rdb.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/rocksdb/tools/rdb/rdb.cc b/src/rocksdb/tools/rdb/rdb.cc
new file mode 100644
index 00000000..3619dc74
--- /dev/null
+++ b/src/rocksdb/tools/rdb/rdb.cc
@@ -0,0 +1,15 @@
+#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)