@relicx_/kernel 1.1.50 → 1.1.52

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 (3) hide show
  1. package/index.d.ts +8 -0
  2. package/index.js +1 -1
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -181,6 +181,9 @@ interface IRedisInterface {
181
181
  Del(key: string): Promise<boolean>;
182
182
  MSet(datas: any): Promise<boolean>;
183
183
  MGet(keys: string[]): Promise<string[]>;
184
+ HGet(key: string): Promise<Record<string, string>>;
185
+ HGetField(key: string, field: string): Promise<string>;
186
+ HSet(key: string, object: object, ttl?: number): Promise<boolean>;
184
187
  /**
185
188
  * @param pattern like this: "user:*"
186
189
  */
@@ -196,6 +199,9 @@ declare class RedisConnection extends DBConnection implements IRedisInterface {
196
199
  Del(key: string): Promise<boolean>;
197
200
  MSet(data: any): Promise<boolean>;
198
201
  MGet(keys: string[]): Promise<string[]>;
202
+ HGet(key: string): Promise<Record<string, string>>;
203
+ HGetField(key: string, field: string): Promise<string>;
204
+ HSet(key: string, object: object, ttl?: number): Promise<boolean>;
199
205
  Select(db: number): Promise<"OK">;
200
206
  ScanKeys(pattern: string): Promise<string[]>;
201
207
  }
@@ -218,6 +224,7 @@ interface ISQLInterface {
218
224
  GetRecordset(): any;
219
225
  }
220
226
  declare class SQLConnection extends DBConnection implements ISQLInterface {
227
+ private m_cfg;
221
228
  private m_conn;
222
229
  private m_request;
223
230
  private m_procedureresult;
@@ -227,6 +234,7 @@ declare class SQLConnection extends DBConnection implements ISQLInterface {
227
234
  private m_command;
228
235
  constructor(cfg: any);
229
236
  CheckStatus(): Promise<boolean>;
237
+ private CreatePool;
230
238
  ResetParameter(): void;
231
239
  AddParameter(key: string, type: mssql.ISqlType, value: any): void;
232
240
  AddParameterOutput(key: string, type: mssql.ISqlType): void;