ztechno_core 0.0.81 → 0.0.83
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.
- package/lib/sql_service.d.ts +2 -2
- package/lib/sql_service.js +2 -3
- package/package.json +1 -1
package/lib/sql_service.d.ts
CHANGED
|
@@ -55,10 +55,10 @@ export declare class ZSQLService {
|
|
|
55
55
|
| {
|
|
56
56
|
[key: string]: any;
|
|
57
57
|
};
|
|
58
|
-
}): Promise<T>;
|
|
58
|
+
}): Promise<T[]>;
|
|
59
59
|
/**
|
|
60
60
|
* Legacy method to execute a SQL query. Uses uppercase property names for backwards compatibility.
|
|
61
|
-
*
|
|
61
|
+
* Applies date and boolean conversions if configured. Consider using exec() directly for new code.
|
|
62
62
|
* @template T - The expected result type
|
|
63
63
|
* @param opt - Query options
|
|
64
64
|
* @param opt.Query - The SQL query string to execute
|
package/lib/sql_service.js
CHANGED
|
@@ -119,7 +119,7 @@ class ZSQLService {
|
|
|
119
119
|
}
|
|
120
120
|
/**
|
|
121
121
|
* Legacy method to execute a SQL query. Uses uppercase property names for backwards compatibility.
|
|
122
|
-
*
|
|
122
|
+
* Applies date and boolean conversions if configured. Consider using exec() directly for new code.
|
|
123
123
|
* @template T - The expected result type
|
|
124
124
|
* @param opt - Query options
|
|
125
125
|
* @param opt.Query - The SQL query string to execute
|
|
@@ -127,8 +127,7 @@ class ZSQLService {
|
|
|
127
127
|
* @returns Promise resolving to query results
|
|
128
128
|
*/
|
|
129
129
|
async fetch(opt) {
|
|
130
|
-
|
|
131
|
-
return items;
|
|
130
|
+
return await this.exec({ query: opt.Query, params: opt.Params });
|
|
132
131
|
}
|
|
133
132
|
async query(sql, params) {
|
|
134
133
|
try {
|