hops sqliteSqlite数据映射器
节点-sqlite-mapper是一个Sqlite数据映射器,它提供了使用Sqlite数据库的基本功能。
入门
安装:
基本用法:
// 加载模块
var SqliteMapper = require('sqlite-mapper');
// 创建一个映射器
var mapper = new SqliteMapper(path);
// 执行命令
mapper.run('insert into stuff values (1, \"test\");').then(function(result) {
console.log('插入的记录:', result);
});
下载地址
用户评论