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.
@@ -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
- * Does not apply date or boolean conversions. Consider using exec() instead.
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
@@ -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
- * Does not apply date or boolean conversions. Consider using exec() instead.
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
- const items = await this.query(opt.Query, opt.Params);
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztechno_core",
3
- "version": "0.0.81",
3
+ "version": "0.0.83",
4
4
  "description": "Core files for ztechno framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",