sqlite-sync.js
节点模块到 sqlite 同步和异步
node.js 包,用于与SQLite连接数据库,并同步或异步执行 SQL 命令。
安装
npm install sqlite-sync
用法
var sqlite = require ( 'sqlite-sync' ) ; //requiring
//Connecting - if the file does not exist it will be created
sqlite . connect ( 'test/test.db' ) ;
//Creating table - you can run any command
sqlite . run ( "CREATE TABLE COMPANYS(ID INTEGER PRIMARY KEY AUTOINCREMENT, NAME TEXT NOT NULL)
评论0
最新资源