2.3.6 • Published 6 years ago

@wolfx/nodebatis v2.3.6

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

fork 自 nodebatis,

修改了原版错误命名

transation => transaction

抽离了驱动,需要单独安装

"better-sqlite3": "^5.0.1", mysql": "^2.11.1"

增加 sqlite 支持

const nodebatis = new NodeBatis(path.resolve(__dirname, "../yaml"), {
  debug: true,
  dialect: "sqlite",
  database: path.resolve(__dirname, "./test.db")
});

用法参考 test/src/sqliteTest.js