
Company News
Jerod Santo Joins Socket as Head of Media
Allow myself to introduce... myself.
light-api-mysql
Advanced tools
1.增加转移函数
rdb.escape(param);
1.修改数据库的update语句,兼容mysql关键(schema)字不能更新的问题
1.增加数据库连接配置的端口配置(port)和字符集配置(charset)
host : option.host (Default: 'localhost'),
port : option.port (Default: 3306),
user : option.user (Default: root),
password : option.password (Default: ''),
database : option.database (Default: 'test'),
charset : option.charset(Default: 'UTF8_GENERAL_CI')
1.修复mysql链接池中取出连接使用时链接已关闭的问题
1.修复mysql链接池不能回收连接的问题
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
the plgin of the light-api server for mysql service
The npm package light-api-mysql receives a total of 38 weekly downloads. As such, light-api-mysql popularity was classified as not popular.
We found that light-api-mysql demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Allow myself to introduce... myself.

Research
/Security News
A Twitch browser extension on Chrome and Firefox forwards users’ live OAuth session tokens through proxies controlled by a Russian bot service.

Security News
Anthropic found biased reasoning and recklessness drove Claude Mythos 5 to publish malware on PyPI and compromise a security vendor.