文件名称:node-database:具有缓存层的mysql包装器
文件大小:3KB
文件格式:ZIP
更新时间:2024-05-20 17:45:59
JavaScript
数据库 var someCache = require('someKindOfCache'); var database = require('database'); database.configureWith({ host: 'localhost', database: 'hapi', username: 'root', password: 'password', connectionLimit: 40 }); database.useCache(someCache); // Plain DB query: database.query({ sql: 'SELECT * from someTable WHERE name = ?', values: [ 'john' ], }, function(err, results) { console.log('
【文件预览】:
node-database-master
----test.js(415B)
----README.md(1022B)
----index.js(3KB)
----package.json(358B)