|
|
@ -35,7 +35,7 @@ class ModelXcMetaSnowflake extends BaseModelXcMeta { |
|
|
|
|
|
|
|
|
|
|
|
/* for complex code provide a func and args - do derivation within the func cbk */ |
|
|
|
/* for complex code provide a func and args - do derivation within the func cbk */ |
|
|
|
data.hasMany = { |
|
|
|
data.hasMany = { |
|
|
|
func: this._renderXcHasMany.bind(this), |
|
|
|
func: this.renderXcHasMany.bind(this), |
|
|
|
args: { |
|
|
|
args: { |
|
|
|
tn: this.ctx.tn, |
|
|
|
tn: this.ctx.tn, |
|
|
|
columns: this.ctx.columns, |
|
|
|
columns: this.ctx.columns, |
|
|
@ -45,7 +45,7 @@ class ModelXcMetaSnowflake extends BaseModelXcMeta { |
|
|
|
|
|
|
|
|
|
|
|
/* for complex code provide a func and args - do derivation within the func cbk */ |
|
|
|
/* for complex code provide a func and args - do derivation within the func cbk */ |
|
|
|
data.belongsTo = { |
|
|
|
data.belongsTo = { |
|
|
|
func: this._renderXcBelongsTo.bind(this), |
|
|
|
func: this.renderXcBelongsTo.bind(this), |
|
|
|
args: { |
|
|
|
args: { |
|
|
|
tn: this.ctx.tn, |
|
|
|
tn: this.ctx.tn, |
|
|
|
columns: this.ctx.columns, |
|
|
|
columns: this.ctx.columns, |
|
|
@ -56,14 +56,6 @@ class ModelXcMetaSnowflake extends BaseModelXcMeta { |
|
|
|
return data; |
|
|
|
return data; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
_renderXcHasMany(args) { |
|
|
|
|
|
|
|
return JSON.stringify(args.hasMany); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_renderXcBelongsTo(args) { |
|
|
|
|
|
|
|
return JSON.stringify(args.belongsTo); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* |
|
|
|
* |
|
|
|
* @param args |
|
|
|
* @param args |
|
|
|