CNode

有没有人用过 node-sqlcipher?

MMorn发布于12 年前最后回复12 年前2 回复5459 浏览0 收藏

想研究一下里面是怎么调用系统的 sqlite 的,不过 sqlcipher.js 文件在文首定义了这个变量。

var binding = require('./node_sqlcipher.node');
var sqlite3 = module.exports = exports = binding;

这里的 .node 文件是个什么东东啊,打开都是乱码。有木有大神解惑?

传送门:https://github.com/delaballe/node-sqlcipher

查看回复

回复 (2)

L
leizongmin#1·12 年前

这是一个C++扩展,如果你想看它的源码,请看src目录:https://github.com/delaballe/node-sqlcipher/tree/master/src

M
Morn#2·12 年前

已经会用了,还是多谢解惑

参与回复
登录后即可参与回复。登录