想研究一下里面是怎么调用系统的 sqlite 的,不过 sqlcipher.js 文件在文首定义了这个变量。
var binding = require('./node_sqlcipher.node');
var sqlite3 = module.exports = exports = binding;
这里的 .node 文件是个什么东东啊,打开都是乱码。有木有大神解惑?
回复 (2)
L
这是一个C++扩展,如果你想看它的源码,请看src目录:https://github.com/delaballe/node-sqlcipher/tree/master/src
M
已经会用了,还是多谢解惑
参与回复
登录后即可参与回复。登录