jeefo-mysql
Advanced tools
Comparing version 0.0.56 to 0.0.57
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. | ||
* File Name : index.js | ||
* Created at : 2021-10-09 | ||
* Updated at : 2022-05-16 | ||
* Updated at : 2022-12-25 | ||
* Author : jeefo | ||
@@ -224,4 +224,6 @@ * Purpose : | ||
update_first(data, where, options, return_back) { | ||
return this.update(data, where, {...options, limit: 1}, return_back); | ||
async update_first(data, where, options, return_back) { | ||
options = {...options, limit: 1}; | ||
const result = await this.update(data, where, options, return_back); | ||
return return_back ? result : result.results; | ||
} | ||
@@ -228,0 +230,0 @@ |
{ | ||
"name": "jeefo-mysql", | ||
"version": "0.0.56", | ||
"version": "0.0.57", | ||
"description": "Very simple MySQL connection instances for each table. I had annoyed enough for MySQL Deadlocks.", | ||
@@ -25,4 +25,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"@jeefo/fs": "^0.0.10", | ||
"@jeefo/utils": "^0.0.12", | ||
"@jeefo/fs": "^0.0.11", | ||
"@jeefo/utils": "^0.0.18", | ||
"mysql": "^2.18.1" | ||
@@ -29,0 +29,0 @@ }, |
12165
278
+ Added@jeefo/fs@0.0.11(transitive)
+ Added@jeefo/utils@0.0.18(transitive)
- Removed@jeefo/fs@0.0.10(transitive)
- Removed@jeefo/utils@0.0.12(transitive)
Updated@jeefo/fs@^0.0.11
Updated@jeefo/utils@^0.0.18