avatar
@bangbang93

标签: Sequelize

Sequelize With SQLite

BMCD由于不想再附加一个MongoDB的依赖,于是选用了SQLite作为数据库。不过手写SQL语句实在是太烦了,于是我又选用了Sequelilze作为SQLite的ORM模型处理。

折腾了一天之后稍微总结一下它的用法

var Sequelize = require('sequelize');
var sequelize = new Sequelize('bmcd', null, null,
...