1. 首页
  2. 考试认证
  3. 其它
  4. hops sqliteSqlite数据映射器

hops sqliteSqlite数据映射器

上传者: 2024-12-11 12:14:59上传 ZIP文件 7.66KB 热度 16次

节点-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);

});

下载地址
用户评论