New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

light-api-mysql

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

light-api-mysql

the plgin of the hapi for mysql service

npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

light-api-mysql

2017-11-13 发布1.0.4版本

  • 解决长时间不使用数据库,数据库连接断开报错

2017-12-11 发布1.0.5版本

1.解决分页查询,查询参数数组传入失效的问题。


  rdb.query(`SELECT * FROM book WHERE  show_name like ?  and app_describe like ? `,'%d%','%4%')
         .then(function(result){
             return reply.data(result);  
         });

  也可写成下面的数组参数形式:

  rdb.query(`SELECT * FROM book WHERE  show_name like ?  and app_describe like ? `,['%d%','%4%'])
         .then(function(result){
             return reply.data(result);  
         });

FAQs

Package last updated on 11 Dec 2017

Related posts