@cloudbase/node-sdk 3.14.1 → 3.14.2

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/dist/cloudbase.js CHANGED
@@ -172,6 +172,9 @@ class CloudBase {
172
172
  this.mysql = (options) => {
173
173
  return getEntity(options)(options);
174
174
  };
175
+ this.rdb = (options) => {
176
+ return getEntity(options)(options);
177
+ };
175
178
  }
176
179
  catch (e) {
177
180
  // ignore
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/node-sdk",
3
- "version": "3.14.1",
3
+ "version": "3.14.2",
4
4
  "description": "tencent cloud base server sdk for node.js",
5
5
  "main": "dist/index.js",
6
6
  "typings": "types/index.d.ts",
package/src/cloudbase.ts CHANGED
@@ -82,6 +82,7 @@ export class CloudBase {
82
82
  public models: OrmClient & OrmRawQueryClient
83
83
 
84
84
  public mysql: IMySqlClient
85
+ public rdb: IMySqlClient
85
86
 
86
87
  public constructor(config?: ICloudBaseConfig) {
87
88
  this.init(config)
@@ -238,6 +239,9 @@ export class CloudBase {
238
239
  this.mysql = (options: IMySqlOptions) => {
239
240
  return getEntity(options)(options)
240
241
  }
242
+ this.rdb = (options: IMySqlOptions) => {
243
+ return getEntity(options)(options)
244
+ }
241
245
  } catch (e) {
242
246
  // ignore
243
247
  }