@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 +3 -0
- package/package.json +1 -1
- package/src/cloudbase.ts +4 -0
package/dist/cloudbase.js
CHANGED
package/package.json
CHANGED
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
|
}
|