@areumtecnologia/mysql-db-handler 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -196,20 +196,20 @@ See "Flexible Selection" above.
196
196
  #### `async selectBy(params)`
197
197
  Quickly select rows matching a specific object condition.
198
198
  * **params**: Object. Key-value pairs for WHERE clause (e.g., `{ id: 5 }`).
199
- * **Returns**: `Promise<Array>`.
199
+ * **Returns**: `Promise<Array>`. (contains rows array from query)
200
200
 
201
201
  #### `async insert(params)`
202
202
  Inserts a new row.
203
203
  * **params**: Object. Key-value pairs representing column names and values.
204
- * **Returns**: `Promise<OkPacket>` (contains insertId, affectedRows, etc).
204
+ * **Returns**: `Promise<OkPacket>` (contains insertId, or error).
205
205
 
206
206
  #### `async update(params, options)`
207
207
  See "Updating Records" above.
208
- * **Returns**: `Promise<OkPacket>`.
208
+ * **Returns**: `Promise<OkPacket>`. (contains affectedRows or error).
209
209
 
210
210
  #### `async delete(conditions)`
211
211
  See "Deleting Records" above.
212
- * **Returns**: `Promise<OkPacket>`.
212
+ * **Returns**: `Promise<OkPacket>`. (contains affectedRows or error)
213
213
 
214
214
  #### `async selectToDatatable(rawDtQuery, strictCondition)`
215
215
  Helper for server-side Datatables.net processing.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@areumtecnologia/mysql-db-handler",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "A powerful MySQL wrapper with connection pooling, singleton support, and advanced query handling for Node.js.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -9,6 +9,6 @@
9
9
  "author": "Renan Moreira / Áreum Tecnologia",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "mysql2": "^3.0.0"
12
+ "mysql2": "^3.22.5"
13
13
  }
14
14
  }