@vinctus/oql 1.1.5 → 1.1.7
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/README.md +5 -2
- package/main.js +230 -280
- package/main.js.map +4 -4
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -3539,10 +3539,10 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3539
3539
|
}));
|
|
3540
3540
|
var self = $as_sc_Iterable($f_sc_IterableOps__filter__F1__O(this$100, pred));
|
|
3541
3541
|
if (($n(self).size__I() > 1)) {
|
|
3542
|
-
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x233).Lcom_vinctus_oql_Ident__f_pos, (((("junction entity '" + $n($n(linkinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' has more than one attribute of type '") + $n(
|
|
3542
|
+
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x233).Lcom_vinctus_oql_Ident__f_pos, (((("junction entity '" + $n($n(linkinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' has more than one attribute of type '") + $n(x236).Lcom_vinctus_oql_Entity__f_name) + "'"), dml)
|
|
3543
3543
|
};
|
|
3544
3544
|
if (($n(self).size__I() < 1)) {
|
|
3545
|
-
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x233).Lcom_vinctus_oql_Ident__f_pos, (((("junction entity '" + $n($n(linkinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' has no attributes of type '") + $n(
|
|
3545
|
+
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x233).Lcom_vinctus_oql_Ident__f_pos, (((("junction entity '" + $n($n(linkinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' has no attributes of type '") + $n(x236).Lcom_vinctus_oql_Entity__f_name) + "'"), dml)
|
|
3546
3546
|
};
|
|
3547
3547
|
var key$2 = $n(x232).Lcom_vinctus_oql_Ident__f_s;
|
|
3548
3548
|
var targetentity = $n($as_Lcom_vinctus_oql_DataModel$EntityInfo($f_sc_MapOps__apply__O__O(entities, key$2))).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity;
|
|
@@ -3570,10 +3570,10 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3570
3570
|
}));
|
|
3571
3571
|
var target = $as_sc_Iterable($f_sc_IterableOps__filter__F1__O(this$110, pred$1));
|
|
3572
3572
|
if (($n(target).size__I() > 1)) {
|
|
3573
|
-
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x233).Lcom_vinctus_oql_Ident__f_pos, (((("junction entity '" + $n($n(linkinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' has more than one attribute of type '") + $n(
|
|
3573
|
+
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x233).Lcom_vinctus_oql_Ident__f_pos, (((("junction entity '" + $n($n(linkinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' has more than one attribute of type '") + $n(x232).Lcom_vinctus_oql_Ident__f_s) + "'"), dml)
|
|
3574
3574
|
};
|
|
3575
3575
|
if (($n(target).size__I() < 1)) {
|
|
3576
|
-
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x233).Lcom_vinctus_oql_Ident__f_pos, (((("junction entity '" + $n($n(linkinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' has no attributes of type '") + $n(
|
|
3576
|
+
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x233).Lcom_vinctus_oql_Ident__f_pos, (((("junction entity '" + $n($n(linkinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' has no attributes of type '") + $n(x232).Lcom_vinctus_oql_Ident__f_s) + "'"), dml)
|
|
3577
3577
|
};
|
|
3578
3578
|
var $$x4 = $n(x238);
|
|
3579
3579
|
var $$x3 = $n($n(x$1$13).Lcom_vinctus_oql_DMLAttribute__f_name).Lcom_vinctus_oql_Ident__f_s;
|
|
@@ -3680,10 +3680,10 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3680
3680
|
}));
|
|
3681
3681
|
var attrs = $as_sc_Iterable($f_sc_IterableOps__filter__F1__O(this$141, pred$2));
|
|
3682
3682
|
if (($n(attrs).size__I() > 1)) {
|
|
3683
|
-
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x213).Lcom_vinctus_oql_Ident__f_pos, (((("entity '" + $n($n(entityinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' has more than one attribute of type '") + $n(
|
|
3683
|
+
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x213).Lcom_vinctus_oql_Ident__f_pos, (((("entity '" + $n($n(entityinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' has more than one attribute of type '") + $n(x236).Lcom_vinctus_oql_Entity__f_name) + "'"), dml)
|
|
3684
3684
|
};
|
|
3685
3685
|
if (($n(attrs).size__I() < 1)) {
|
|
3686
|
-
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x213).Lcom_vinctus_oql_Ident__f_pos, (((("entity '" + $n($n(entityinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' has no attributes of type '") + $n(
|
|
3686
|
+
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x213).Lcom_vinctus_oql_Ident__f_pos, (((("entity '" + $n($n(entityinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' has no attributes of type '") + $n(x236).Lcom_vinctus_oql_Entity__f_name) + "'"), dml)
|
|
3687
3687
|
};
|
|
3688
3688
|
var entity$3 = $n(entityinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity;
|
|
3689
3689
|
var attribute = $as_Lcom_vinctus_oql_Attribute($n(attrs).head__O());
|
|
@@ -3778,10 +3778,10 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3778
3778
|
}));
|
|
3779
3779
|
var attrs$2 = $as_sc_Iterable($f_sc_IterableOps__filter__F1__O(this$170, pred$3));
|
|
3780
3780
|
if (($n(attrs$2).size__I() > 1)) {
|
|
3781
|
-
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x203).Lcom_vinctus_oql_Ident__f_pos, (((("entity '" + $n($n(entityinfo$2).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' has more than one attribute of type '") + $n(
|
|
3781
|
+
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x203).Lcom_vinctus_oql_Ident__f_pos, (((("entity '" + $n($n(entityinfo$2).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' has more than one attribute of type '") + $n(x236).Lcom_vinctus_oql_Entity__f_name) + "'"), dml)
|
|
3782
3782
|
};
|
|
3783
3783
|
if (($n(attrs$2).size__I() < 1)) {
|
|
3784
|
-
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x203).Lcom_vinctus_oql_Ident__f_pos, (((("entity '" + $n($n(entityinfo$2).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' has no attributes of type '") + $n(
|
|
3784
|
+
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x203).Lcom_vinctus_oql_Ident__f_pos, (((("entity '" + $n($n(entityinfo$2).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' has no attributes of type '") + $n(x236).Lcom_vinctus_oql_Entity__f_name) + "'"), dml)
|
|
3785
3785
|
};
|
|
3786
3786
|
var entity$5 = $n(entityinfo$2).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity;
|
|
3787
3787
|
var attribute$1 = $as_Lcom_vinctus_oql_Attribute($n(attrs$2).head__O());
|
|
@@ -4809,31 +4809,28 @@ $c_Lcom_vinctus_oql_Mutation.prototype.insert__sc_Map__s_concurrent_Future = (fu
|
|
|
4809
4809
|
if ((!$n(rs$1).next__Z())) {
|
|
4810
4810
|
$m_s_sys_package$().error__T__E("insert: empty result set")
|
|
4811
4811
|
};
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
var
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
break matchResult5
|
|
4833
|
-
};
|
|
4834
|
-
throw new $c_s_MatchError(x44)
|
|
4812
|
+
var x44 = $n(this.Lcom_vinctus_oql_Mutation__f_entity).pk__s_Option();
|
|
4813
|
+
var x = $m_s_None$();
|
|
4814
|
+
if ((x === x44)) {
|
|
4815
|
+
var this$44 = $n(obj);
|
|
4816
|
+
var factory = $m_sci_VectorMap$();
|
|
4817
|
+
var factory$1 = new $c_sc_MapFactory$ToFactory(factory);
|
|
4818
|
+
return $as_sci_VectorMap(factory$1.fromSpecific__sc_IterableOnce__O(this$44))
|
|
4819
|
+
};
|
|
4820
|
+
if ((x44 instanceof $c_s_Some)) {
|
|
4821
|
+
var pk$1 = $as_Lcom_vinctus_oql_Attribute($n($as_s_Some(x44)).s_Some__f_value);
|
|
4822
|
+
var this$47 = $m_sci_VectorMap$();
|
|
4823
|
+
var $$x12 = $m_sr_ScalaRunTime$();
|
|
4824
|
+
var self = $n(pk$1).Lcom_vinctus_oql_Attribute__f_name;
|
|
4825
|
+
var y$2 = $n($n(rs$1).get__I__Lcom_vinctus_oql_OQLResultSetValue(0)).value__O();
|
|
4826
|
+
var elems$2 = $n($$x12).wrapRefArray__AO__sci_ArraySeq(new ($d_T2.getArrayOf().constr)([new $c_T2(self, y$2)]));
|
|
4827
|
+
var this$48 = $n(this$47.from__sc_IterableOnce__sci_VectorMap(elems$2));
|
|
4828
|
+
var this$50 = $n($f_sci_StrictOptimizedMapOps__concat__sc_IterableOnce__sci_MapOps(this$48, obj));
|
|
4829
|
+
var factory$2 = $m_sci_VectorMap$();
|
|
4830
|
+
var factory$3 = new $c_sc_MapFactory$ToFactory(factory$2);
|
|
4831
|
+
return $as_sci_VectorMap(factory$3.fromSpecific__sc_IterableOnce__O(this$50))
|
|
4835
4832
|
};
|
|
4836
|
-
|
|
4833
|
+
throw new $c_s_MatchError(x44)
|
|
4837
4834
|
})), this.Lcom_vinctus_oql_Mutation__f_ec)
|
|
4838
4835
|
});
|
|
4839
4836
|
$c_Lcom_vinctus_oql_Mutation.prototype.delete__O__s_concurrent_Future = (function(id) {
|
|
@@ -4874,7 +4871,7 @@ $c_Lcom_vinctus_oql_Mutation.prototype.link__O__T__O__s_concurrent_Future = (fun
|
|
|
4874
4871
|
var self$1 = $n(x63).Lcom_vinctus_oql_Attribute__f_name;
|
|
4875
4872
|
var elems = $n($$x2).wrapRefArray__AO__sci_ArraySeq(new ($d_T2.getArrayOf().constr)([$$x1, new $c_T2(self$1, id2)]));
|
|
4876
4873
|
return $n($n($$x3).insert__sc_Map__s_concurrent_Future(this$16.from__sc_IterableOnce__sci_Map(elems))).map__F1__s_concurrent_ExecutionContext__s_concurrent_Future(new $c_sjsr_AnonFunction1(((_$3) => {
|
|
4877
|
-
$
|
|
4874
|
+
$as_sci_VectorMap(_$3)
|
|
4878
4875
|
})), this.Lcom_vinctus_oql_Mutation__f_ec)
|
|
4879
4876
|
}
|
|
4880
4877
|
};
|
|
@@ -4925,9 +4922,6 @@ $c_Lcom_vinctus_oql_Mutation.prototype.unlink__O__T__O__s_concurrent_Future = (f
|
|
|
4925
4922
|
throw new $c_s_MatchError(x64)
|
|
4926
4923
|
});
|
|
4927
4924
|
$c_Lcom_vinctus_oql_Mutation.prototype.update__O__sc_Map__s_concurrent_Future = (function(id, updates) {
|
|
4928
|
-
if ($n(updates).isEmpty__Z()) {
|
|
4929
|
-
$m_s_sys_package$().error__T__E(("update: empty update: " + id))
|
|
4930
|
-
};
|
|
4931
4925
|
var this$1 = $n($n(this.Lcom_vinctus_oql_Mutation__f_entity).pk__s_Option());
|
|
4932
4926
|
if ((!this$1.isEmpty__Z())) {
|
|
4933
4927
|
var arg1 = this$1.get__O();
|
|
@@ -4976,36 +4970,48 @@ $c_Lcom_vinctus_oql_Mutation.prototype.update__O__sc_Map__s_concurrent_Future =
|
|
|
4976
4970
|
})))));
|
|
4977
4971
|
$n($$x2).error__T__E(((("extrinsic properties not found in entity '" + $$x1) + "': ") + $f_sc_IterableOnceOps__mkString__T__T__T__T(this$11, "", ", ", "")))
|
|
4978
4972
|
};
|
|
4979
|
-
var
|
|
4973
|
+
var updatesWithoutUndefined = $as_sc_Map($n(updates).filterNot__F1__O(new $c_sjsr_AnonFunction1(((x$1$2) => {
|
|
4980
4974
|
var x$1$3 = $as_T2(x$1$2);
|
|
4981
4975
|
if ((x$1$3 !== null)) {
|
|
4982
|
-
|
|
4976
|
+
$as_T($n(x$1$3).T2__f__1);
|
|
4983
4977
|
var v = $n(x$1$3).T2__f__2;
|
|
4984
|
-
|
|
4985
|
-
|
|
4978
|
+
return $m_sr_BoxesRunTime$().equals__O__O__Z(v, (void 0))
|
|
4979
|
+
};
|
|
4980
|
+
throw new $c_s_MatchError(x$1$3)
|
|
4981
|
+
}))));
|
|
4982
|
+
if ($n(updatesWithoutUndefined).isEmpty__Z()) {
|
|
4983
|
+
$m_s_sys_package$().error__T__E(("update: empty update: " + id))
|
|
4984
|
+
};
|
|
4985
|
+
var pairs = $as_sc_Map($n(updatesWithoutUndefined).map__F1__sc_IterableOps(new $c_sjsr_AnonFunction1(((x$1$3$1) => {
|
|
4986
|
+
var x$1$4 = $as_T2(x$1$3$1);
|
|
4987
|
+
if ((x$1$4 !== null)) {
|
|
4988
|
+
var k$1 = $as_T($n(x$1$4).T2__f__1);
|
|
4989
|
+
var v$1 = $n(x$1$4).T2__f__2;
|
|
4990
|
+
if ($is_sci_Map(v$1)) {
|
|
4991
|
+
matchResult10: {
|
|
4986
4992
|
var v1;
|
|
4987
|
-
var
|
|
4988
|
-
if ((
|
|
4989
|
-
var this$14 = $n(
|
|
4990
|
-
var this$15 = $n(
|
|
4991
|
-
var this$16 = $n(
|
|
4992
|
-
var this$17 = $n(
|
|
4993
|
-
var this$18 = $n(
|
|
4994
|
-
var
|
|
4995
|
-
if ((
|
|
4996
|
-
var x$1$
|
|
4997
|
-
var this$20 = $n(x$1$
|
|
4998
|
-
var
|
|
4999
|
-
var v1 = $n($as_sci_Map(v)).apply__O__O($n($as_Lcom_vinctus_oql_Attribute($n($n(
|
|
5000
|
-
break
|
|
4993
|
+
var x93 = $as_Lcom_vinctus_oql_Attribute($n($n(this.Lcom_vinctus_oql_Mutation__f_entity).attributes__sci_Map()).apply__O__O(k$1));
|
|
4994
|
+
if ((x93 !== null)) {
|
|
4995
|
+
var this$14 = $n(x93);
|
|
4996
|
+
var this$15 = $n(x93);
|
|
4997
|
+
var this$16 = $n(x93);
|
|
4998
|
+
var this$17 = $n(x93);
|
|
4999
|
+
var this$18 = $n(x93);
|
|
5000
|
+
var x99 = this$18.Lcom_vinctus_oql_Attribute__f_typ;
|
|
5001
|
+
if ((x99 instanceof $c_Lcom_vinctus_oql_ManyToOneType)) {
|
|
5002
|
+
var x$1$5 = $as_Lcom_vinctus_oql_ManyToOneType(x99);
|
|
5003
|
+
var this$20 = $n(x$1$5);
|
|
5004
|
+
var x102 = this$20.Lcom_vinctus_oql_ManyToOneType__f_entity;
|
|
5005
|
+
var v1 = $n($as_sci_Map(v$1)).apply__O__O($n($as_Lcom_vinctus_oql_Attribute($n($n(x102).pk__s_Option()).get__O())).Lcom_vinctus_oql_Attribute__f_name);
|
|
5006
|
+
break matchResult10
|
|
5001
5007
|
}
|
|
5002
5008
|
};
|
|
5003
|
-
$m_s_sys_package$().error__T__E((((("attribute '" + k) + "' of entity '") + $n(this.Lcom_vinctus_oql_Mutation__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' is not an entity attribute"))
|
|
5009
|
+
$m_s_sys_package$().error__T__E((((("attribute '" + k$1) + "' of entity '") + $n(this.Lcom_vinctus_oql_Mutation__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' is not an entity attribute"))
|
|
5004
5010
|
}
|
|
5005
5011
|
} else {
|
|
5006
|
-
var v1 = v
|
|
5012
|
+
var v1 = v$1
|
|
5007
5013
|
};
|
|
5008
|
-
var attr = $as_Lcom_vinctus_oql_Attribute($n(attrs).apply__O__O(k));
|
|
5014
|
+
var attr = $as_Lcom_vinctus_oql_Attribute($n(attrs).apply__O__O(k$1));
|
|
5009
5015
|
var self = $n(attr).Lcom_vinctus_oql_Attribute__f_column;
|
|
5010
5016
|
var $$x4 = $n(this.Lcom_vinctus_oql_Mutation__f_oql);
|
|
5011
5017
|
var x = $n(attr).Lcom_vinctus_oql_Attribute__f_typ;
|
|
@@ -5020,18 +5026,18 @@ $c_Lcom_vinctus_oql_Mutation.prototype.update__O__sc_Map__s_concurrent_Future =
|
|
|
5020
5026
|
var y = $n($$x4).render__O__s_Option__T(v1, $$x3);
|
|
5021
5027
|
return new $c_T2(self, y)
|
|
5022
5028
|
};
|
|
5023
|
-
throw new $c_s_MatchError(x$1$
|
|
5029
|
+
throw new $c_s_MatchError(x$1$4)
|
|
5024
5030
|
}))));
|
|
5025
5031
|
var command = $ct_scm_StringBuilder__(new $c_scm_StringBuilder());
|
|
5026
5032
|
command.append__T__scm_StringBuilder((("UPDATE " + $n(this.Lcom_vinctus_oql_Mutation__f_entity).Lcom_vinctus_oql_Entity__f_table) + "\n"));
|
|
5027
|
-
var this$25 = $n($as_sc_IterableOnceOps($n(pairs).map__F1__O(new $c_sjsr_AnonFunction1(((x$1$
|
|
5028
|
-
var x$1$
|
|
5029
|
-
if ((x$1$
|
|
5030
|
-
var k$
|
|
5031
|
-
var v$
|
|
5032
|
-
return ((k$
|
|
5033
|
+
var this$25 = $n($as_sc_IterableOnceOps($n(pairs).map__F1__O(new $c_sjsr_AnonFunction1(((x$1$4$1) => {
|
|
5034
|
+
var x$1$6 = $as_T2(x$1$4$1);
|
|
5035
|
+
if ((x$1$6 !== null)) {
|
|
5036
|
+
var k$2 = $as_T($n(x$1$6).T2__f__1);
|
|
5037
|
+
var v$2 = $as_T($n(x$1$6).T2__f__2);
|
|
5038
|
+
return ((k$2 + " = ") + v$2)
|
|
5033
5039
|
};
|
|
5034
|
-
throw new $c_s_MatchError(x$1$
|
|
5040
|
+
throw new $c_s_MatchError(x$1$6)
|
|
5035
5041
|
})))));
|
|
5036
5042
|
command.append__T__scm_StringBuilder(((" SET " + $f_sc_IterableOnceOps__mkString__T__T__T__T(this$25, "", ", ", "")) + "\n"));
|
|
5037
5043
|
command.append__T__scm_StringBuilder(((((" WHERE " + $n($as_Lcom_vinctus_oql_Attribute($n($n(this.Lcom_vinctus_oql_Mutation__f_entity).pk__s_Option()).get__O())).Lcom_vinctus_oql_Attribute__f_column) + " = ") + $n(this.Lcom_vinctus_oql_Mutation__f_oql).render__O__s_Option__T(id, $n(this.Lcom_vinctus_oql_Mutation__f_oql).render$default$2__s_Option())) + "\n"));
|
|
@@ -5039,27 +5045,27 @@ $c_Lcom_vinctus_oql_Mutation.prototype.update__O__sc_Map__s_concurrent_Future =
|
|
|
5039
5045
|
var this$26 = $n(this.Lcom_vinctus_oql_Mutation__f_oql);
|
|
5040
5046
|
return $n($n($n(this$26.Lcom_vinctus_oql_AbstractOQL__f_ds).connect__Lcom_vinctus_oql_OQLConnection()).command__T__s_concurrent_Future($n(command.scm_StringBuilder__f_underlying).jl_StringBuilder__f_java$lang$StringBuilder$$content)).map__F1__s_concurrent_ExecutionContext__s_concurrent_Future(new $c_sjsr_AnonFunction1(((_$6) => {
|
|
5041
5047
|
$as_Lcom_vinctus_oql_OQLResultSet(_$6);
|
|
5042
|
-
var
|
|
5048
|
+
var x109 = $n(this.Lcom_vinctus_oql_Mutation__f_entity).pk__s_Option();
|
|
5043
5049
|
var x$3 = $m_s_None$();
|
|
5044
|
-
if ((x$3 ===
|
|
5045
|
-
var this$28 = $n(
|
|
5050
|
+
if ((x$3 === x109)) {
|
|
5051
|
+
var this$28 = $n(updatesWithoutUndefined);
|
|
5046
5052
|
var factory = $m_sci_VectorMap$();
|
|
5047
5053
|
var factory$1 = new $c_sc_MapFactory$ToFactory(factory);
|
|
5048
5054
|
return $as_sci_VectorMap(factory$1.fromSpecific__sc_IterableOnce__O(this$28))
|
|
5049
5055
|
};
|
|
5050
|
-
if ((
|
|
5051
|
-
var pk$1 = $as_Lcom_vinctus_oql_Attribute($n($as_s_Some(
|
|
5056
|
+
if ((x109 instanceof $c_s_Some)) {
|
|
5057
|
+
var pk$1 = $as_Lcom_vinctus_oql_Attribute($n($as_s_Some(x109)).s_Some__f_value);
|
|
5052
5058
|
var this$31 = $m_sci_VectorMap$();
|
|
5053
5059
|
var $$x5 = $m_sr_ScalaRunTime$();
|
|
5054
5060
|
var self$1 = $n(pk$1).Lcom_vinctus_oql_Attribute__f_name;
|
|
5055
5061
|
var elems = $n($$x5).wrapRefArray__AO__sci_ArraySeq(new ($d_T2.getArrayOf().constr)([new $c_T2(self$1, id)]));
|
|
5056
5062
|
var this$32 = $n(this$31.from__sc_IterableOnce__sci_VectorMap(elems));
|
|
5057
|
-
var this$34 = $n($f_sci_StrictOptimizedMapOps__concat__sc_IterableOnce__sci_MapOps(this$32,
|
|
5063
|
+
var this$34 = $n($f_sci_StrictOptimizedMapOps__concat__sc_IterableOnce__sci_MapOps(this$32, updatesWithoutUndefined));
|
|
5058
5064
|
var factory$2 = $m_sci_VectorMap$();
|
|
5059
5065
|
var factory$3 = new $c_sc_MapFactory$ToFactory(factory$2);
|
|
5060
5066
|
return $as_sci_VectorMap(factory$3.fromSpecific__sc_IterableOnce__O(this$34))
|
|
5061
5067
|
};
|
|
5062
|
-
throw new $c_s_MatchError(
|
|
5068
|
+
throw new $c_s_MatchError(x109)
|
|
5063
5069
|
})), this.Lcom_vinctus_oql_Mutation__f_ec)
|
|
5064
5070
|
});
|
|
5065
5071
|
$c_Lcom_vinctus_oql_Mutation.prototype.bulkUpdate__sci_List__s_concurrent_Future = (function(updates) {
|
|
@@ -5073,7 +5079,7 @@ $c_Lcom_vinctus_oql_Mutation.prototype.bulkUpdate__sci_List__s_concurrent_Future
|
|
|
5073
5079
|
return ((x$1$1 !== null) && ($as_sc_Map($n(x$1$1).T2__f__2), true))
|
|
5074
5080
|
})))).foreach__F1__V(new $c_sjsr_AnonFunction1(((x$1$2) => {
|
|
5075
5081
|
var x$1$3 = $as_T2(x$1$2);
|
|
5076
|
-
|
|
5082
|
+
matchResult15: {
|
|
5077
5083
|
if ((x$1$3 !== null)) {
|
|
5078
5084
|
var u$1 = $as_sc_Map($n(x$1$3).T2__f__2);
|
|
5079
5085
|
var x = $n(u$1).keySet__sc_Set();
|
|
@@ -5082,7 +5088,7 @@ $c_Lcom_vinctus_oql_Mutation.prototype.bulkUpdate__sci_List__s_concurrent_Future
|
|
|
5082
5088
|
var this$2 = $n(u$1);
|
|
5083
5089
|
$n($$x1).error__T__E(("update: key set mismatch: " + $f_sc_IterableOnceOps__mkString__T__T__T__T(this$2, "{", ", ", "}")))
|
|
5084
5090
|
};
|
|
5085
|
-
break
|
|
5091
|
+
break matchResult15
|
|
5086
5092
|
};
|
|
5087
5093
|
throw new $c_s_MatchError(x$1$3)
|
|
5088
5094
|
}
|
|
@@ -5101,15 +5107,15 @@ $c_Lcom_vinctus_oql_Mutation.prototype.bulkUpdate__sci_List__s_concurrent_Future
|
|
|
5101
5107
|
var attrs = $as_sci_Map($n($n(this.Lcom_vinctus_oql_Mutation__f_entity).attributes__sci_Map()).filter__F1__O(new $c_sjsr_AnonFunction1(((x$1$3$1) => {
|
|
5102
5108
|
var x$1$4 = $as_T2(x$1$3$1);
|
|
5103
5109
|
if ((x$1$4 !== null)) {
|
|
5104
|
-
var
|
|
5105
|
-
if ((
|
|
5106
|
-
var this$5 = $n(
|
|
5107
|
-
var this$6 = $n(
|
|
5108
|
-
var this$7 = $n(
|
|
5109
|
-
var this$8 = $n(
|
|
5110
|
-
var this$9 = $n(
|
|
5111
|
-
var
|
|
5112
|
-
if ($n(
|
|
5110
|
+
var x120 = $as_Lcom_vinctus_oql_Attribute($n(x$1$4).T2__f__2);
|
|
5111
|
+
if ((x120 !== null)) {
|
|
5112
|
+
var this$5 = $n(x120);
|
|
5113
|
+
var this$6 = $n(x120);
|
|
5114
|
+
var this$7 = $n(x120);
|
|
5115
|
+
var this$8 = $n(x120);
|
|
5116
|
+
var this$9 = $n(x120);
|
|
5117
|
+
var x126 = this$9.Lcom_vinctus_oql_Attribute__f_typ;
|
|
5118
|
+
if ($n(x126).isColumnType__Z()) {
|
|
5113
5119
|
return true
|
|
5114
5120
|
}
|
|
5115
5121
|
}
|
|
@@ -5148,22 +5154,22 @@ $c_Lcom_vinctus_oql_Mutation.prototype.bulkUpdate__sci_List__s_concurrent_Future
|
|
|
5148
5154
|
var k = $as_T($n(x$1$6).T2__f__1);
|
|
5149
5155
|
var v = $n(x$1$6).T2__f__2;
|
|
5150
5156
|
if ($is_sci_Map(v)) {
|
|
5151
|
-
|
|
5157
|
+
matchResult17: {
|
|
5152
5158
|
var v1;
|
|
5153
|
-
var
|
|
5154
|
-
if ((
|
|
5155
|
-
var this$16 = $n(
|
|
5156
|
-
var this$17 = $n(
|
|
5157
|
-
var this$18 = $n(
|
|
5158
|
-
var this$19 = $n(
|
|
5159
|
-
var this$20 = $n(
|
|
5160
|
-
var
|
|
5161
|
-
if ((
|
|
5162
|
-
var x$1$7 = $as_Lcom_vinctus_oql_ManyToOneType(
|
|
5159
|
+
var x127 = $as_Lcom_vinctus_oql_Attribute($n($n(this.Lcom_vinctus_oql_Mutation__f_entity).attributes__sci_Map()).apply__O__O(k));
|
|
5160
|
+
if ((x127 !== null)) {
|
|
5161
|
+
var this$16 = $n(x127);
|
|
5162
|
+
var this$17 = $n(x127);
|
|
5163
|
+
var this$18 = $n(x127);
|
|
5164
|
+
var this$19 = $n(x127);
|
|
5165
|
+
var this$20 = $n(x127);
|
|
5166
|
+
var x133 = this$20.Lcom_vinctus_oql_Attribute__f_typ;
|
|
5167
|
+
if ((x133 instanceof $c_Lcom_vinctus_oql_ManyToOneType)) {
|
|
5168
|
+
var x$1$7 = $as_Lcom_vinctus_oql_ManyToOneType(x133);
|
|
5163
5169
|
var this$22 = $n(x$1$7);
|
|
5164
|
-
var
|
|
5165
|
-
var v1 = $n($as_sci_Map(v)).apply__O__O($n($as_Lcom_vinctus_oql_Attribute($n($n(
|
|
5166
|
-
break
|
|
5170
|
+
var x136 = this$22.Lcom_vinctus_oql_ManyToOneType__f_entity;
|
|
5171
|
+
var v1 = $n($as_sci_Map(v)).apply__O__O($n($as_Lcom_vinctus_oql_Attribute($n($n(x136).pk__s_Option()).get__O())).Lcom_vinctus_oql_Attribute__f_name);
|
|
5172
|
+
break matchResult17
|
|
5167
5173
|
}
|
|
5168
5174
|
};
|
|
5169
5175
|
$m_s_sys_package$().error__T__E((((("attribute '" + k) + "' of entity '") + $n(this.Lcom_vinctus_oql_Mutation__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' is not an entity attribute"))
|
|
@@ -5488,53 +5494,53 @@ $c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG.prototype.getCount__sjs_js_
|
|
|
5488
5494
|
var f = $n($n($p_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG__check__Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG(this)).Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG__f_oql).count__Lcom_vinctus_oql_OQLQuery__T__Lcom_vinctus_oql_Fixed__s_concurrent_Future(this.Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG__f_q, null, this.Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG__f_com$vinctus$oql$QueryBuilder_JS_NodePG$$fixed);
|
|
5489
5495
|
return $m_sjs_js_JSConverters$JSRichFuture$().toJSPromise$extension__s_concurrent_Future__s_concurrent_ExecutionContext__sjs_js_Promise(f, $m_sjs_concurrent_JSExecutionContext$Implicits$().sjs_concurrent_JSExecutionContext$Implicits$__f_queue)
|
|
5490
5496
|
});
|
|
5491
|
-
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG.prototype.
|
|
5492
|
-
return this.
|
|
5497
|
+
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG.prototype.getOne = (function() {
|
|
5498
|
+
return this.getOne__sjs_js_Promise()
|
|
5493
5499
|
});
|
|
5494
|
-
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG.prototype
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
|
|
5500
|
+
Object.defineProperty($c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG.prototype, "select$default$2", {
|
|
5501
|
+
"get": (function() {
|
|
5502
|
+
return this.select$default$2__O()
|
|
5503
|
+
}),
|
|
5504
|
+
"configurable": true
|
|
5498
5505
|
});
|
|
5499
5506
|
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG.prototype.limit = (function(arg) {
|
|
5500
5507
|
var prep0 = $uI(arg);
|
|
5501
5508
|
return this.limit__I__Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG(prep0)
|
|
5502
5509
|
});
|
|
5503
|
-
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG.prototype.offset = (function(arg) {
|
|
5504
|
-
var prep0 = $uI(arg);
|
|
5505
|
-
return this.offset__I__Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG(prep0)
|
|
5506
|
-
});
|
|
5507
5510
|
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG.prototype.query = (function(arg, ...rest) {
|
|
5508
5511
|
var prep0 = $as_T(arg);
|
|
5509
5512
|
var prep1 = ((rest[0] === (void 0)) ? this.query$default$2__O() : rest[0]);
|
|
5510
5513
|
return this.query__T__O__Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG(prep0, prep1)
|
|
5511
5514
|
});
|
|
5512
|
-
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG.prototype.
|
|
5513
|
-
|
|
5514
|
-
var prep1 = ((rest[0] === (void 0)) ? this.select$default$2__O() : rest[0]);
|
|
5515
|
-
return this.select__T__O__Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG(prep0, prep1)
|
|
5516
|
-
});
|
|
5517
|
-
Object.defineProperty($c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG.prototype, "select$default$2", {
|
|
5518
|
-
"get": (function() {
|
|
5519
|
-
return this.select$default$2__O()
|
|
5520
|
-
}),
|
|
5521
|
-
"configurable": true
|
|
5515
|
+
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG.prototype.cond = (function(arg) {
|
|
5516
|
+
return this.cond__O__Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG(arg)
|
|
5522
5517
|
});
|
|
5523
5518
|
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG.prototype.getCount = (function() {
|
|
5524
5519
|
return this.getCount__sjs_js_Promise()
|
|
5525
5520
|
});
|
|
5526
|
-
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG.prototype.getMany = (function() {
|
|
5527
|
-
return this.getMany__sjs_js_Promise()
|
|
5528
|
-
});
|
|
5529
|
-
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG.prototype.getOne = (function() {
|
|
5530
|
-
return this.getOne__sjs_js_Promise()
|
|
5531
|
-
});
|
|
5532
5521
|
Object.defineProperty($c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG.prototype, "query$default$2", {
|
|
5533
5522
|
"get": (function() {
|
|
5534
5523
|
return this.query$default$2__O()
|
|
5535
5524
|
}),
|
|
5536
5525
|
"configurable": true
|
|
5537
5526
|
});
|
|
5527
|
+
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG.prototype.getMany = (function() {
|
|
5528
|
+
return this.getMany__sjs_js_Promise()
|
|
5529
|
+
});
|
|
5530
|
+
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG.prototype.select = (function(arg, ...rest) {
|
|
5531
|
+
var prep0 = $as_T(arg);
|
|
5532
|
+
var prep1 = ((rest[0] === (void 0)) ? this.select$default$2__O() : rest[0]);
|
|
5533
|
+
return this.select__T__O__Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG(prep0, prep1)
|
|
5534
|
+
});
|
|
5535
|
+
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG.prototype.order = (function(arg, arg$2) {
|
|
5536
|
+
var prep0 = $as_T(arg);
|
|
5537
|
+
var prep1 = $as_T(arg$2);
|
|
5538
|
+
return this.order__T__T__Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG(prep0, prep1)
|
|
5539
|
+
});
|
|
5540
|
+
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG.prototype.offset = (function(arg) {
|
|
5541
|
+
var prep0 = $uI(arg);
|
|
5542
|
+
return this.offset__I__Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG(prep0)
|
|
5543
|
+
});
|
|
5538
5544
|
var $d_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG = new $TypeData().initClass({
|
|
5539
5545
|
Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG: 0
|
|
5540
5546
|
}, false, "com.vinctus.oql.QueryBuilder_JS_NodePG", {
|
|
@@ -5692,31 +5698,29 @@ $c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB.prototype.getCount__sjs_js_Pro
|
|
|
5692
5698
|
var f = $n($n($p_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB__check__Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB(this)).Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB__f_oql).count__Lcom_vinctus_oql_OQLQuery__T__Lcom_vinctus_oql_Fixed__s_concurrent_Future(this.Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB__f_q, null, this.Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB__f_com$vinctus$oql$QueryBuilder_JS_RDB$$fixed);
|
|
5693
5699
|
return $m_sjs_js_JSConverters$JSRichFuture$().toJSPromise$extension__s_concurrent_Future__s_concurrent_ExecutionContext__sjs_js_Promise(f, $m_sjs_concurrent_JSExecutionContext$Implicits$().sjs_concurrent_JSExecutionContext$Implicits$__f_queue)
|
|
5694
5700
|
});
|
|
5695
|
-
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB.prototype.
|
|
5696
|
-
return this.
|
|
5697
|
-
});
|
|
5698
|
-
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB.prototype.order = (function(arg, arg$2) {
|
|
5699
|
-
var prep0 = $as_T(arg);
|
|
5700
|
-
var prep1 = $as_T(arg$2);
|
|
5701
|
-
return this.order__T__T__Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB(prep0, prep1)
|
|
5701
|
+
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB.prototype.getOne = (function() {
|
|
5702
|
+
return this.getOne__sjs_js_Promise()
|
|
5702
5703
|
});
|
|
5703
5704
|
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB.prototype.limit = (function(arg) {
|
|
5704
5705
|
var prep0 = $uI(arg);
|
|
5705
5706
|
return this.limit__I__Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB(prep0)
|
|
5706
5707
|
});
|
|
5707
|
-
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB.prototype.offset = (function(arg) {
|
|
5708
|
-
var prep0 = $uI(arg);
|
|
5709
|
-
return this.offset__I__Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB(prep0)
|
|
5710
|
-
});
|
|
5711
5708
|
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB.prototype.query = (function(arg, ...rest) {
|
|
5712
5709
|
var prep0 = $as_T(arg);
|
|
5713
5710
|
var prep1 = ((rest[0] === (void 0)) ? this.query$default$2__O() : rest[0]);
|
|
5714
5711
|
return this.query__T__O__Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB(prep0, prep1)
|
|
5715
5712
|
});
|
|
5716
|
-
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB.prototype.
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5713
|
+
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB.prototype.cond = (function(arg) {
|
|
5714
|
+
return this.cond__O__Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB(arg)
|
|
5715
|
+
});
|
|
5716
|
+
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB.prototype.getCount = (function() {
|
|
5717
|
+
return this.getCount__sjs_js_Promise()
|
|
5718
|
+
});
|
|
5719
|
+
Object.defineProperty($c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB.prototype, "query$default$2", {
|
|
5720
|
+
"get": (function() {
|
|
5721
|
+
return this.query$default$2__O()
|
|
5722
|
+
}),
|
|
5723
|
+
"configurable": true
|
|
5720
5724
|
});
|
|
5721
5725
|
Object.defineProperty($c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB.prototype, "select$default$2", {
|
|
5722
5726
|
"get": (function() {
|
|
@@ -5724,20 +5728,22 @@ Object.defineProperty($c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB.prototyp
|
|
|
5724
5728
|
}),
|
|
5725
5729
|
"configurable": true
|
|
5726
5730
|
});
|
|
5727
|
-
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB.prototype.getCount = (function() {
|
|
5728
|
-
return this.getCount__sjs_js_Promise()
|
|
5729
|
-
});
|
|
5730
5731
|
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB.prototype.getMany = (function() {
|
|
5731
5732
|
return this.getMany__sjs_js_Promise()
|
|
5732
5733
|
});
|
|
5733
|
-
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB.prototype.
|
|
5734
|
-
|
|
5734
|
+
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB.prototype.select = (function(arg, ...rest) {
|
|
5735
|
+
var prep0 = $as_T(arg);
|
|
5736
|
+
var prep1 = ((rest[0] === (void 0)) ? this.select$default$2__O() : rest[0]);
|
|
5737
|
+
return this.select__T__O__Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB(prep0, prep1)
|
|
5735
5738
|
});
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5739
|
+
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB.prototype.order = (function(arg, arg$2) {
|
|
5740
|
+
var prep0 = $as_T(arg);
|
|
5741
|
+
var prep1 = $as_T(arg$2);
|
|
5742
|
+
return this.order__T__T__Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB(prep0, prep1)
|
|
5743
|
+
});
|
|
5744
|
+
$c_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB.prototype.offset = (function(arg) {
|
|
5745
|
+
var prep0 = $uI(arg);
|
|
5746
|
+
return this.offset__I__Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB(prep0)
|
|
5741
5747
|
});
|
|
5742
5748
|
var $d_Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB = new $TypeData().initClass({
|
|
5743
5749
|
Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB: 0
|
|
@@ -6855,6 +6861,7 @@ $c_Lcom_vinctus_oql_package$.prototype.printError__s_util_parsing_input_Position
|
|
|
6855
6861
|
} else {
|
|
6856
6862
|
$n($m_s_Console$().err__Ljava_io_PrintStream()).println__T__V((((($n(pos).line__I() + ": ") + msg) + "\n") + $n(pos).longString__T()))
|
|
6857
6863
|
};
|
|
6864
|
+
$m_Lcom_vinctus_oql_package$().Lcom_vinctus_oql_package$__f_parsingError = true;
|
|
6858
6865
|
return null
|
|
6859
6866
|
});
|
|
6860
6867
|
$c_Lcom_vinctus_oql_package$.prototype.hex__C__I = (function(c) {
|
|
@@ -6952,8 +6959,8 @@ $c_Lcom_vinctus_sjs\uff3futils_package$.prototype.jsArray__O__Z = (function(v) {
|
|
|
6952
6959
|
$c_Lcom_vinctus_sjs\uff3futils_package$.prototype.jsObject__O__Z = (function(v) {
|
|
6953
6960
|
return ((((($as_T((typeof v)) === "object") && (v !== null)) && (!(v instanceof $c_RTLong))) && (!$uZ((v instanceof Date)))) && (!$m_Lcom_vinctus_sjs\uff3futils_package$().jsArray__O__Z(v)))
|
|
6954
6961
|
});
|
|
6955
|
-
$c_Lcom_vinctus_sjs\uff3futils_package$.prototype.
|
|
6956
|
-
if ((a === (void 0))) {
|
|
6962
|
+
$c_Lcom_vinctus_sjs\uff3futils_package$.prototype.fromJS__O__Z__O = (function(a, undefinedToNull) {
|
|
6963
|
+
if ((undefinedToNull && (a === (void 0)))) {
|
|
6957
6964
|
return null
|
|
6958
6965
|
} else if ($m_Lcom_vinctus_sjs\uff3futils_package$().jsObject__O__Z(a)) {
|
|
6959
6966
|
var this$8 = new $c_sjs_js_WrappedDictionary$DictionaryIterator(a);
|
|
@@ -6962,7 +6969,7 @@ $c_Lcom_vinctus_sjs\uff3futils_package$.prototype.fromJS__O__O = (function(a) {
|
|
|
6962
6969
|
if ((x$1$1 !== null)) {
|
|
6963
6970
|
var k = $as_T($n(x$1$1).T2__f__1);
|
|
6964
6971
|
var v = $n(x$1$1).T2__f__2;
|
|
6965
|
-
var _2 = $m_Lcom_vinctus_sjs\uff3futils_package$().
|
|
6972
|
+
var _2 = $m_Lcom_vinctus_sjs\uff3futils_package$().fromJS__O__Z__O(v, undefinedToNull);
|
|
6966
6973
|
return new $c_T2(k, _2)
|
|
6967
6974
|
};
|
|
6968
6975
|
throw new $c_s_MatchError(x$1$1)
|
|
@@ -6973,7 +6980,7 @@ $c_Lcom_vinctus_sjs\uff3futils_package$.prototype.fromJS__O__O = (function(a) {
|
|
|
6973
6980
|
return factory$1.fromSpecific__sc_IterableOnce__O(this$10)
|
|
6974
6981
|
} else if ($m_Lcom_vinctus_sjs\uff3futils_package$().jsArray__O__Z(a)) {
|
|
6975
6982
|
var this$13 = new $c_sjs_js_ArrayOps$ArrayIterator(a);
|
|
6976
|
-
var f$1 = new $c_sjsr_AnonFunction1(((_$1) => $m_Lcom_vinctus_sjs\uff3futils_package$().
|
|
6983
|
+
var f$1 = new $c_sjsr_AnonFunction1(((_$1) => $m_Lcom_vinctus_sjs\uff3futils_package$().fromJS__O__Z__O(_$1, undefinedToNull)));
|
|
6977
6984
|
var this$14 = new $c_sc_Iterator$$anon$9(this$13, f$1);
|
|
6978
6985
|
$m_sci_List$();
|
|
6979
6986
|
return $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(this$14)
|
|
@@ -29681,7 +29688,7 @@ function $h_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fNodePG() {
|
|
|
29681
29688
|
}
|
|
29682
29689
|
$h_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fNodePG.prototype = $c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fNodePG.prototype;
|
|
29683
29690
|
$c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fNodePG.prototype.jsInsert__sjs_js_Dictionary__sjs_js_Promise = (function(obj) {
|
|
29684
|
-
var f = $n(this.insert__sc_Map__s_concurrent_Future($as_sci_VectorMap($m_Lcom_vinctus_sjs\uff3futils_package$().
|
|
29691
|
+
var f = $n(this.insert__sc_Map__s_concurrent_Future($as_sci_VectorMap($m_Lcom_vinctus_sjs\uff3futils_package$().fromJS__O__Z__O(obj, true)))).map__F1__s_concurrent_ExecutionContext__s_concurrent_Future(new $c_sjsr_AnonFunction1(((a) => $m_Lcom_vinctus_sjs\uff3futils_package$().toJS__O__sjs_js_Any(a))), $m_sjs_concurrent_JSExecutionContext$Implicits$().sjs_concurrent_JSExecutionContext$Implicits$__f_queue);
|
|
29685
29692
|
return $m_sjs_js_JSConverters$JSRichFuture$().toJSPromise$extension__s_concurrent_Future__s_concurrent_ExecutionContext__sjs_js_Promise(f, $m_sjs_concurrent_JSExecutionContext$Implicits$().sjs_concurrent_JSExecutionContext$Implicits$__f_queue)
|
|
29686
29693
|
});
|
|
29687
29694
|
$c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fNodePG.prototype.jsDelete__sjs_js_Any__sjs_js_Promise = (function(e) {
|
|
@@ -29753,7 +29760,7 @@ $c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fNodePG.prototype.jsUpdate__sjs_js_Any_
|
|
|
29753
29760
|
} else {
|
|
29754
29761
|
var $$x1 = e
|
|
29755
29762
|
};
|
|
29756
|
-
var f = $n(this.update__O__sc_Map__s_concurrent_Future($$x1, $as_sci_VectorMap($m_Lcom_vinctus_sjs\uff3futils_package$().
|
|
29763
|
+
var f = $n(this.update__O__sc_Map__s_concurrent_Future($$x1, $as_sci_VectorMap($m_Lcom_vinctus_sjs\uff3futils_package$().fromJS__O__Z__O(updates, false)))).map__F1__s_concurrent_ExecutionContext__s_concurrent_Future(new $c_sjsr_AnonFunction1(((a) => $m_Lcom_vinctus_sjs\uff3futils_package$().toJS__O__sjs_js_Any(a))), $m_sjs_concurrent_JSExecutionContext$Implicits$().sjs_concurrent_JSExecutionContext$Implicits$__f_queue);
|
|
29757
29764
|
return $m_sjs_js_JSConverters$JSRichFuture$().toJSPromise$extension__s_concurrent_Future__s_concurrent_ExecutionContext__sjs_js_Promise(f, $m_sjs_concurrent_JSExecutionContext$Implicits$().sjs_concurrent_JSExecutionContext$Implicits$__f_queue)
|
|
29758
29765
|
});
|
|
29759
29766
|
$c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fNodePG.prototype.jsBulkUpdate__sjs_js_Array__sjs_js_Promise = (function(updates) {
|
|
@@ -29773,7 +29780,7 @@ $c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fNodePG.prototype.jsBulkUpdate__sjs_js_
|
|
|
29773
29780
|
};
|
|
29774
29781
|
var array = $m_sjs_js_ArrayOps$().tail$extension__sjs_js_Array__sjs_js_Array(u);
|
|
29775
29782
|
var a = $m_sjs_js_ArrayOps$().head$extension__sjs_js_Array__O(array);
|
|
29776
|
-
var y = $as_sci_VectorMap($m_Lcom_vinctus_sjs\uff3futils_package$().
|
|
29783
|
+
var y = $as_sci_VectorMap($m_Lcom_vinctus_sjs\uff3futils_package$().fromJS__O__Z__O(a, true));
|
|
29777
29784
|
return new $c_T2(self, y)
|
|
29778
29785
|
});
|
|
29779
29786
|
if ((this$15 === $m_sci_Nil$())) {
|
|
@@ -29795,25 +29802,25 @@ $c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fNodePG.prototype.jsBulkUpdate__sjs_js_
|
|
|
29795
29802
|
var f$1 = this.bulkUpdate__sci_List__s_concurrent_Future($$x1);
|
|
29796
29803
|
return $m_sjs_js_JSConverters$JSRichFuture$().toJSPromise$extension__s_concurrent_Future__s_concurrent_ExecutionContext__sjs_js_Promise(f$1, $m_sjs_concurrent_JSExecutionContext$Implicits$().sjs_concurrent_JSExecutionContext$Implicits$__f_queue)
|
|
29797
29804
|
});
|
|
29798
|
-
$c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fNodePG.prototype.
|
|
29799
|
-
|
|
29805
|
+
$c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fNodePG.prototype.link = (function(arg, arg$2, arg$3) {
|
|
29806
|
+
var prep1 = $as_T(arg$2);
|
|
29807
|
+
return this.jsLink__sjs_js_Any__T__sjs_js_Any__sjs_js_Promise(arg, prep1, arg$3)
|
|
29800
29808
|
});
|
|
29801
29809
|
$c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fNodePG.prototype.unlink = (function(arg, arg$2, arg$3) {
|
|
29802
29810
|
var prep1 = $as_T(arg$2);
|
|
29803
29811
|
return this.jsUnlink__sjs_js_Any__T__sjs_js_Any__sjs_js_Promise(arg, prep1, arg$3)
|
|
29804
29812
|
});
|
|
29805
|
-
$c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fNodePG.prototype.
|
|
29806
|
-
return this.
|
|
29813
|
+
$c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fNodePG.prototype.bulkUpdate = (function(arg) {
|
|
29814
|
+
return this.jsBulkUpdate__sjs_js_Array__sjs_js_Promise(arg)
|
|
29807
29815
|
});
|
|
29808
29816
|
$c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fNodePG.prototype.insert = (function(arg) {
|
|
29809
29817
|
return this.jsInsert__sjs_js_Dictionary__sjs_js_Promise(arg)
|
|
29810
29818
|
});
|
|
29811
|
-
$c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fNodePG.prototype.
|
|
29812
|
-
return this.
|
|
29819
|
+
$c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fNodePG.prototype.update = (function(arg, arg$2) {
|
|
29820
|
+
return this.jsUpdate__sjs_js_Any__sjs_js_Any__sjs_js_Promise(arg, arg$2)
|
|
29813
29821
|
});
|
|
29814
|
-
$c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fNodePG.prototype.
|
|
29815
|
-
|
|
29816
|
-
return this.jsLink__sjs_js_Any__T__sjs_js_Any__sjs_js_Promise(arg, prep1, arg$3)
|
|
29822
|
+
$c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fNodePG.prototype.delete = (function(arg) {
|
|
29823
|
+
return this.jsDelete__sjs_js_Any__sjs_js_Promise(arg)
|
|
29817
29824
|
});
|
|
29818
29825
|
var $d_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fNodePG = new $TypeData().initClass({
|
|
29819
29826
|
Lcom_vinctus_oql_Mutation\uff3fJS\uff3fNodePG: 0
|
|
@@ -29840,7 +29847,7 @@ function $h_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fRDB() {
|
|
|
29840
29847
|
}
|
|
29841
29848
|
$h_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fRDB.prototype = $c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fRDB.prototype;
|
|
29842
29849
|
$c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fRDB.prototype.jsInsert__sjs_js_Dictionary__sjs_js_Promise = (function(obj) {
|
|
29843
|
-
var f = $n(this.insert__sc_Map__s_concurrent_Future($as_sci_VectorMap($m_Lcom_vinctus_sjs\uff3futils_package$().
|
|
29850
|
+
var f = $n(this.insert__sc_Map__s_concurrent_Future($as_sci_VectorMap($m_Lcom_vinctus_sjs\uff3futils_package$().fromJS__O__Z__O(obj, true)))).map__F1__s_concurrent_ExecutionContext__s_concurrent_Future(new $c_sjsr_AnonFunction1(((a) => $m_Lcom_vinctus_sjs\uff3futils_package$().toJS__O__sjs_js_Any(a))), $m_sjs_concurrent_JSExecutionContext$Implicits$().sjs_concurrent_JSExecutionContext$Implicits$__f_queue);
|
|
29844
29851
|
return $m_sjs_js_JSConverters$JSRichFuture$().toJSPromise$extension__s_concurrent_Future__s_concurrent_ExecutionContext__sjs_js_Promise(f, $m_sjs_concurrent_JSExecutionContext$Implicits$().sjs_concurrent_JSExecutionContext$Implicits$__f_queue)
|
|
29845
29852
|
});
|
|
29846
29853
|
$c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fRDB.prototype.jsDelete__sjs_js_Any__sjs_js_Promise = (function(e) {
|
|
@@ -29912,7 +29919,7 @@ $c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fRDB.prototype.jsUpdate__sjs_js_Any__sj
|
|
|
29912
29919
|
} else {
|
|
29913
29920
|
var $$x1 = e
|
|
29914
29921
|
};
|
|
29915
|
-
var f = $n(this.update__O__sc_Map__s_concurrent_Future($$x1, $as_sci_VectorMap($m_Lcom_vinctus_sjs\uff3futils_package$().
|
|
29922
|
+
var f = $n(this.update__O__sc_Map__s_concurrent_Future($$x1, $as_sci_VectorMap($m_Lcom_vinctus_sjs\uff3futils_package$().fromJS__O__Z__O(updates, true)))).map__F1__s_concurrent_ExecutionContext__s_concurrent_Future(new $c_sjsr_AnonFunction1(((a) => $m_Lcom_vinctus_sjs\uff3futils_package$().toJS__O__sjs_js_Any(a))), $m_sjs_concurrent_JSExecutionContext$Implicits$().sjs_concurrent_JSExecutionContext$Implicits$__f_queue);
|
|
29916
29923
|
return $m_sjs_js_JSConverters$JSRichFuture$().toJSPromise$extension__s_concurrent_Future__s_concurrent_ExecutionContext__sjs_js_Promise(f, $m_sjs_concurrent_JSExecutionContext$Implicits$().sjs_concurrent_JSExecutionContext$Implicits$__f_queue)
|
|
29917
29924
|
});
|
|
29918
29925
|
$c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fRDB.prototype.jsBulkUpdate__sjs_js_Array__sjs_js_Promise = (function(updates) {
|
|
@@ -29932,7 +29939,7 @@ $c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fRDB.prototype.jsBulkUpdate__sjs_js_Arr
|
|
|
29932
29939
|
};
|
|
29933
29940
|
var array = $m_sjs_js_ArrayOps$().tail$extension__sjs_js_Array__sjs_js_Array(u);
|
|
29934
29941
|
var a = $m_sjs_js_ArrayOps$().head$extension__sjs_js_Array__O(array);
|
|
29935
|
-
var y = $as_sci_VectorMap($m_Lcom_vinctus_sjs\uff3futils_package$().
|
|
29942
|
+
var y = $as_sci_VectorMap($m_Lcom_vinctus_sjs\uff3futils_package$().fromJS__O__Z__O(a, true));
|
|
29936
29943
|
return new $c_T2(self, y)
|
|
29937
29944
|
});
|
|
29938
29945
|
if ((this$15 === $m_sci_Nil$())) {
|
|
@@ -29954,25 +29961,25 @@ $c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fRDB.prototype.jsBulkUpdate__sjs_js_Arr
|
|
|
29954
29961
|
var f$1 = this.bulkUpdate__sci_List__s_concurrent_Future($$x1);
|
|
29955
29962
|
return $m_sjs_js_JSConverters$JSRichFuture$().toJSPromise$extension__s_concurrent_Future__s_concurrent_ExecutionContext__sjs_js_Promise(f$1, $m_sjs_concurrent_JSExecutionContext$Implicits$().sjs_concurrent_JSExecutionContext$Implicits$__f_queue)
|
|
29956
29963
|
});
|
|
29957
|
-
$c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fRDB.prototype.
|
|
29958
|
-
|
|
29964
|
+
$c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fRDB.prototype.link = (function(arg, arg$2, arg$3) {
|
|
29965
|
+
var prep1 = $as_T(arg$2);
|
|
29966
|
+
return this.jsLink__sjs_js_Any__T__sjs_js_Any__sjs_js_Promise(arg, prep1, arg$3)
|
|
29959
29967
|
});
|
|
29960
29968
|
$c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fRDB.prototype.unlink = (function(arg, arg$2, arg$3) {
|
|
29961
29969
|
var prep1 = $as_T(arg$2);
|
|
29962
29970
|
return this.jsUnlink__sjs_js_Any__T__sjs_js_Any__sjs_js_Promise(arg, prep1, arg$3)
|
|
29963
29971
|
});
|
|
29964
|
-
$c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fRDB.prototype.
|
|
29965
|
-
return this.
|
|
29972
|
+
$c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fRDB.prototype.bulkUpdate = (function(arg) {
|
|
29973
|
+
return this.jsBulkUpdate__sjs_js_Array__sjs_js_Promise(arg)
|
|
29966
29974
|
});
|
|
29967
29975
|
$c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fRDB.prototype.insert = (function(arg) {
|
|
29968
29976
|
return this.jsInsert__sjs_js_Dictionary__sjs_js_Promise(arg)
|
|
29969
29977
|
});
|
|
29970
|
-
$c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fRDB.prototype.
|
|
29971
|
-
return this.
|
|
29978
|
+
$c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fRDB.prototype.update = (function(arg, arg$2) {
|
|
29979
|
+
return this.jsUpdate__sjs_js_Any__sjs_js_Any__sjs_js_Promise(arg, arg$2)
|
|
29972
29980
|
});
|
|
29973
|
-
$c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fRDB.prototype.
|
|
29974
|
-
|
|
29975
|
-
return this.jsLink__sjs_js_Any__T__sjs_js_Any__sjs_js_Promise(arg, prep1, arg$3)
|
|
29981
|
+
$c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fRDB.prototype.delete = (function(arg) {
|
|
29982
|
+
return this.jsDelete__sjs_js_Any__sjs_js_Promise(arg)
|
|
29976
29983
|
});
|
|
29977
29984
|
var $d_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fRDB = new $TypeData().initClass({
|
|
29978
29985
|
Lcom_vinctus_oql_Mutation\uff3fJS\uff3fRDB: 0
|
|
@@ -30262,8 +30269,8 @@ $c_Lcom_vinctus_oql_OQL\uff3fNodePG\uff3fJS.prototype.entity = (function(arg) {
|
|
|
30262
30269
|
var prep0 = $as_T(arg);
|
|
30263
30270
|
return this.entity__T__Lcom_vinctus_oql_Mutation\uff3fJS\uff3fNodePG(prep0)
|
|
30264
30271
|
});
|
|
30265
|
-
$c_Lcom_vinctus_oql_OQL\uff3fNodePG\uff3fJS.prototype.
|
|
30266
|
-
|
|
30272
|
+
$c_Lcom_vinctus_oql_OQL\uff3fNodePG\uff3fJS.prototype.showQuery = (function() {
|
|
30273
|
+
this.showQuery__V()
|
|
30267
30274
|
});
|
|
30268
30275
|
$c_Lcom_vinctus_oql_OQL\uff3fNodePG\uff3fJS.prototype.queryMany = (function(arg, ...rest) {
|
|
30269
30276
|
var prep0 = $as_T(arg);
|
|
@@ -30272,6 +30279,9 @@ $c_Lcom_vinctus_oql_OQL\uff3fNodePG\uff3fJS.prototype.queryMany = (function(arg,
|
|
|
30272
30279
|
var prep3 = ((rest[2] === (void 0)) ? null : rest[2]);
|
|
30273
30280
|
return this.jsQueryMany__T__O__O__sjs_js_Any__sjs_js_Promise(prep0, prep1, prep2, prep3)
|
|
30274
30281
|
});
|
|
30282
|
+
$c_Lcom_vinctus_oql_OQL\uff3fNodePG\uff3fJS.prototype.queryBuilder = (function(arg, arg$2) {
|
|
30283
|
+
return this.jsQueryBuilder__O__sjs_js_Any__Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fNodePG(arg, arg$2)
|
|
30284
|
+
});
|
|
30275
30285
|
$c_Lcom_vinctus_oql_OQL\uff3fNodePG\uff3fJS.prototype.raw = (function(arg, arg$2) {
|
|
30276
30286
|
var prep0 = $as_T(arg);
|
|
30277
30287
|
return this.raw__T__O__sjs_js_Promise(prep0, arg$2)
|
|
@@ -30290,9 +30300,6 @@ $c_Lcom_vinctus_oql_OQL\uff3fNodePG\uff3fJS.prototype.queryOne = (function(arg,
|
|
|
30290
30300
|
var prep3 = ((rest[2] === (void 0)) ? null : rest[2]);
|
|
30291
30301
|
return this.jsQueryOne__T__O__O__sjs_js_Any__sjs_js_Promise(prep0, prep1, prep2, prep3)
|
|
30292
30302
|
});
|
|
30293
|
-
$c_Lcom_vinctus_oql_OQL\uff3fNodePG\uff3fJS.prototype.showQuery = (function() {
|
|
30294
|
-
this.showQuery__V()
|
|
30295
|
-
});
|
|
30296
30303
|
var $d_Lcom_vinctus_oql_OQL\uff3fNodePG\uff3fJS = new $TypeData().initClass({
|
|
30297
30304
|
Lcom_vinctus_oql_OQL\uff3fNodePG\uff3fJS: 0
|
|
30298
30305
|
}, false, "com.vinctus.oql.OQL_NodePG_JS", {
|
|
@@ -30502,8 +30509,12 @@ $c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype.entity = (function(arg) {
|
|
|
30502
30509
|
var prep0 = $as_T(arg);
|
|
30503
30510
|
return this.entity__T__Lcom_vinctus_oql_Mutation\uff3fJS\uff3fRDB(prep0)
|
|
30504
30511
|
});
|
|
30505
|
-
$c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype.
|
|
30506
|
-
|
|
30512
|
+
$c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype.showQuery = (function() {
|
|
30513
|
+
this.showQuery__V()
|
|
30514
|
+
});
|
|
30515
|
+
$c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype.rawMulti = (function(arg) {
|
|
30516
|
+
var prep0 = $as_T(arg);
|
|
30517
|
+
return this.rawMulti__T__sjs_js_Promise(prep0)
|
|
30507
30518
|
});
|
|
30508
30519
|
$c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype.queryMany = (function(arg, ...rest) {
|
|
30509
30520
|
var prep0 = $as_T(arg);
|
|
@@ -30512,13 +30523,16 @@ $c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype.queryMany = (function(arg, ..
|
|
|
30512
30523
|
var prep3 = ((rest[2] === (void 0)) ? null : rest[2]);
|
|
30513
30524
|
return this.jsQueryMany__T__O__O__sjs_js_Any__sjs_js_Promise(prep0, prep1, prep2, prep3)
|
|
30514
30525
|
});
|
|
30515
|
-
$c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype.
|
|
30516
|
-
|
|
30517
|
-
return this.raw__T__O__sjs_js_Promise(prep0, arg$2)
|
|
30526
|
+
$c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype.queryBuilder = (function(arg, arg$2) {
|
|
30527
|
+
return this.jsQueryBuilder__O__sjs_js_Any__Lcom_vinctus_oql_QueryBuilder\uff3fJS\uff3fRDB(arg, arg$2)
|
|
30518
30528
|
});
|
|
30519
30529
|
$c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype.create = (function() {
|
|
30520
30530
|
return this.jsCreate__sjs_js_Promise()
|
|
30521
30531
|
});
|
|
30532
|
+
$c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype.raw = (function(arg, arg$2) {
|
|
30533
|
+
var prep0 = $as_T(arg);
|
|
30534
|
+
return this.raw__T__O__sjs_js_Promise(prep0, arg$2)
|
|
30535
|
+
});
|
|
30522
30536
|
$c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype.count = (function(arg, ...rest) {
|
|
30523
30537
|
var prep0 = $as_T(arg);
|
|
30524
30538
|
var prep1 = ((rest[0] === (void 0)) ? (void 0) : rest[0]);
|
|
@@ -30526,10 +30540,6 @@ $c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype.count = (function(arg, ...res
|
|
|
30526
30540
|
var prep3 = ((rest[2] === (void 0)) ? null : rest[2]);
|
|
30527
30541
|
return this.jsCount__T__O__O__sjs_js_Any__sjs_js_Promise(prep0, prep1, prep2, prep3)
|
|
30528
30542
|
});
|
|
30529
|
-
$c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype.rawMulti = (function(arg) {
|
|
30530
|
-
var prep0 = $as_T(arg);
|
|
30531
|
-
return this.rawMulti__T__sjs_js_Promise(prep0)
|
|
30532
|
-
});
|
|
30533
30543
|
$c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype.queryOne = (function(arg, ...rest) {
|
|
30534
30544
|
var prep0 = $as_T(arg);
|
|
30535
30545
|
var prep1 = ((rest[0] === (void 0)) ? (void 0) : rest[0]);
|
|
@@ -30537,9 +30547,6 @@ $c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype.queryOne = (function(arg, ...
|
|
|
30537
30547
|
var prep3 = ((rest[2] === (void 0)) ? null : rest[2]);
|
|
30538
30548
|
return this.jsQueryOne__T__O__O__sjs_js_Any__sjs_js_Promise(prep0, prep1, prep2, prep3)
|
|
30539
30549
|
});
|
|
30540
|
-
$c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype.showQuery = (function() {
|
|
30541
|
-
this.showQuery__V()
|
|
30542
|
-
});
|
|
30543
30550
|
var $d_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS = new $TypeData().initClass({
|
|
30544
30551
|
Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS: 0
|
|
30545
30552
|
}, false, "com.vinctus.oql.OQL_RDB_JS", {
|
|
@@ -113477,93 +113484,6 @@ var $d_scm_CheckedIndexedSeqView$Map = new $TypeData().initClass({
|
|
|
113477
113484
|
scm_CheckedIndexedSeqView: 1
|
|
113478
113485
|
});
|
|
113479
113486
|
$c_scm_CheckedIndexedSeqView$Map.prototype.$classData = $d_scm_CheckedIndexedSeqView$Map;
|
|
113480
|
-
function $p_Lcom_vinctus_sjs\uff3futils_DynamicMap__quoted__O__T($thiz, a) {
|
|
113481
|
-
if (((typeof a) === "string")) {
|
|
113482
|
-
var s = $as_T(a);
|
|
113483
|
-
return (("\"" + s) + "\"")
|
|
113484
|
-
} else {
|
|
113485
|
-
return ("" + a)
|
|
113486
|
-
}
|
|
113487
|
-
}
|
|
113488
|
-
/** @constructor */
|
|
113489
|
-
function $c_Lcom_vinctus_sjs\uff3futils_DynamicMap(obj) {
|
|
113490
|
-
this.Lcom_vinctus_sjs\uff3futils_DynamicMap__f_obj = null;
|
|
113491
|
-
this.Lcom_vinctus_sjs\uff3futils_DynamicMap__f_obj = obj
|
|
113492
|
-
}
|
|
113493
|
-
$c_Lcom_vinctus_sjs\uff3futils_DynamicMap.prototype = new $h_sci_AbstractMap();
|
|
113494
|
-
$c_Lcom_vinctus_sjs\uff3futils_DynamicMap.prototype.constructor = $c_Lcom_vinctus_sjs\uff3futils_DynamicMap;
|
|
113495
|
-
/** @constructor */
|
|
113496
|
-
function $h_Lcom_vinctus_sjs\uff3futils_DynamicMap() {
|
|
113497
|
-
/*<skip>*/
|
|
113498
|
-
}
|
|
113499
|
-
$h_Lcom_vinctus_sjs\uff3futils_DynamicMap.prototype = $c_Lcom_vinctus_sjs\uff3futils_DynamicMap.prototype;
|
|
113500
|
-
$c_Lcom_vinctus_sjs\uff3futils_DynamicMap.prototype.removed__T__Lcom_vinctus_sjs\uff3futils_DynamicMap = (function(key) {
|
|
113501
|
-
return new $c_Lcom_vinctus_sjs\uff3futils_DynamicMap($as_sci_Map($n(this.Lcom_vinctus_sjs\uff3futils_DynamicMap__f_obj).removed__O__sci_MapOps(key)))
|
|
113502
|
-
});
|
|
113503
|
-
$c_Lcom_vinctus_sjs\uff3futils_DynamicMap.prototype.get__T__s_Option = (function(key) {
|
|
113504
|
-
return $n(this.Lcom_vinctus_sjs\uff3futils_DynamicMap__f_obj).get__O__s_Option(key)
|
|
113505
|
-
});
|
|
113506
|
-
$c_Lcom_vinctus_sjs\uff3futils_DynamicMap.prototype.iterator__sc_Iterator = (function() {
|
|
113507
|
-
return $n(this.Lcom_vinctus_sjs\uff3futils_DynamicMap__f_obj).iterator__sc_Iterator()
|
|
113508
|
-
});
|
|
113509
|
-
$c_Lcom_vinctus_sjs\uff3futils_DynamicMap.prototype.updated__T__O__Lcom_vinctus_sjs\uff3futils_DynamicMap = (function(key, value) {
|
|
113510
|
-
return new $c_Lcom_vinctus_sjs\uff3futils_DynamicMap($as_sci_Map($n(this.Lcom_vinctus_sjs\uff3futils_DynamicMap__f_obj).updated__O__O__sci_MapOps(key, value)))
|
|
113511
|
-
});
|
|
113512
|
-
$c_Lcom_vinctus_sjs\uff3futils_DynamicMap.prototype.toString__T = (function() {
|
|
113513
|
-
var this$2 = $n($as_sc_IterableOnceOps($n(this.Lcom_vinctus_sjs\uff3futils_DynamicMap__f_obj).map__F1__O(new $c_sjsr_AnonFunction1(((x$1) => {
|
|
113514
|
-
var x$1$1 = $as_T2(x$1);
|
|
113515
|
-
if ((x$1$1 !== null)) {
|
|
113516
|
-
var k = $as_T($n(x$1$1).T2__f__1);
|
|
113517
|
-
var v = $n(x$1$1).T2__f__2;
|
|
113518
|
-
return ((k + ": ") + $p_Lcom_vinctus_sjs\uff3futils_DynamicMap__quoted__O__T(this, v))
|
|
113519
|
-
};
|
|
113520
|
-
throw new $c_s_MatchError(x$1$1)
|
|
113521
|
-
})))));
|
|
113522
|
-
return $f_sc_IterableOnceOps__mkString__T__T__T__T(this$2, "{", ", ", "}")
|
|
113523
|
-
});
|
|
113524
|
-
$c_Lcom_vinctus_sjs\uff3futils_DynamicMap.prototype.removed__O__sci_MapOps = (function(key) {
|
|
113525
|
-
return this.removed__T__Lcom_vinctus_sjs\uff3futils_DynamicMap($as_T(key))
|
|
113526
|
-
});
|
|
113527
|
-
$c_Lcom_vinctus_sjs\uff3futils_DynamicMap.prototype.get__O__s_Option = (function(key) {
|
|
113528
|
-
return this.get__T__s_Option($as_T(key))
|
|
113529
|
-
});
|
|
113530
|
-
$c_Lcom_vinctus_sjs\uff3futils_DynamicMap.prototype.updated__O__O__sci_MapOps = (function(key, value) {
|
|
113531
|
-
return this.updated__T__O__Lcom_vinctus_sjs\uff3futils_DynamicMap($as_T(key), value)
|
|
113532
|
-
});
|
|
113533
|
-
function $as_Lcom_vinctus_sjs\uff3futils_DynamicMap(obj) {
|
|
113534
|
-
return (((obj instanceof $c_Lcom_vinctus_sjs\uff3futils_DynamicMap) || (obj === null)) ? obj : $throwClassCastException(obj, "com.vinctus.sjs_utils.DynamicMap"))
|
|
113535
|
-
}
|
|
113536
|
-
function $isArrayOf_Lcom_vinctus_sjs\uff3futils_DynamicMap(obj, depth) {
|
|
113537
|
-
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lcom_vinctus_sjs\uff3futils_DynamicMap)))
|
|
113538
|
-
}
|
|
113539
|
-
function $asArrayOf_Lcom_vinctus_sjs\uff3futils_DynamicMap(obj, depth) {
|
|
113540
|
-
return (($isArrayOf_Lcom_vinctus_sjs\uff3futils_DynamicMap(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lcom.vinctus.sjs_utils.DynamicMap;", depth))
|
|
113541
|
-
}
|
|
113542
|
-
var $d_Lcom_vinctus_sjs\uff3futils_DynamicMap = new $TypeData().initClass({
|
|
113543
|
-
Lcom_vinctus_sjs\uff3futils_DynamicMap: 0
|
|
113544
|
-
}, false, "com.vinctus.sjs_utils.DynamicMap", {
|
|
113545
|
-
Lcom_vinctus_sjs\uff3futils_DynamicMap: 1,
|
|
113546
|
-
sci_AbstractMap: 1,
|
|
113547
|
-
sc_AbstractMap: 1,
|
|
113548
|
-
sc_AbstractIterable: 1,
|
|
113549
|
-
O: 1,
|
|
113550
|
-
sc_Iterable: 1,
|
|
113551
|
-
sc_IterableOnce: 1,
|
|
113552
|
-
sc_IterableOps: 1,
|
|
113553
|
-
sc_IterableOnceOps: 1,
|
|
113554
|
-
sc_IterableFactoryDefaults: 1,
|
|
113555
|
-
sc_Map: 1,
|
|
113556
|
-
sc_MapOps: 1,
|
|
113557
|
-
s_PartialFunction: 1,
|
|
113558
|
-
F1: 1,
|
|
113559
|
-
sc_MapFactoryDefaults: 1,
|
|
113560
|
-
s_Equals: 1,
|
|
113561
|
-
sci_Map: 1,
|
|
113562
|
-
sci_Iterable: 1,
|
|
113563
|
-
sci_MapOps: 1,
|
|
113564
|
-
s_Dynamic: 1
|
|
113565
|
-
});
|
|
113566
|
-
$c_Lcom_vinctus_sjs\uff3futils_DynamicMap.prototype.$classData = $d_Lcom_vinctus_sjs\uff3futils_DynamicMap;
|
|
113567
113487
|
/** @constructor */
|
|
113568
113488
|
function $c_sci_Map$EmptyMap$() {
|
|
113569
113489
|
/*<skip>*/
|
|
@@ -113824,6 +113744,9 @@ $c_sci_Map$Map1.prototype.zip__sc_IterableOnce__O = (function(that) {
|
|
|
113824
113744
|
$c_sci_Map$Map1.prototype.filter__F1__O = (function(pred) {
|
|
113825
113745
|
return this.filterImpl__F1__Z__sci_Map(pred, false)
|
|
113826
113746
|
});
|
|
113747
|
+
$c_sci_Map$Map1.prototype.filterNot__F1__O = (function(pred) {
|
|
113748
|
+
return this.filterImpl__F1__Z__sci_Map(pred, true)
|
|
113749
|
+
});
|
|
113827
113750
|
$c_sci_Map$Map1.prototype.dropRight__I__O = (function(n) {
|
|
113828
113751
|
return $f_sc_StrictOptimizedIterableOps__dropRight__I__O(this, n)
|
|
113829
113752
|
});
|
|
@@ -113964,6 +113887,9 @@ $c_sci_Map$Map2.prototype.zip__sc_IterableOnce__O = (function(that) {
|
|
|
113964
113887
|
$c_sci_Map$Map2.prototype.filter__F1__O = (function(pred) {
|
|
113965
113888
|
return this.filterImpl__F1__Z__sci_Map(pred, false)
|
|
113966
113889
|
});
|
|
113890
|
+
$c_sci_Map$Map2.prototype.filterNot__F1__O = (function(pred) {
|
|
113891
|
+
return this.filterImpl__F1__Z__sci_Map(pred, true)
|
|
113892
|
+
});
|
|
113967
113893
|
$c_sci_Map$Map2.prototype.dropRight__I__O = (function(n) {
|
|
113968
113894
|
return $f_sc_StrictOptimizedIterableOps__dropRight__I__O(this, n)
|
|
113969
113895
|
});
|
|
@@ -114141,6 +114067,9 @@ $c_sci_Map$Map3.prototype.zip__sc_IterableOnce__O = (function(that) {
|
|
|
114141
114067
|
$c_sci_Map$Map3.prototype.filter__F1__O = (function(pred) {
|
|
114142
114068
|
return this.filterImpl__F1__Z__sci_Map(pred, false)
|
|
114143
114069
|
});
|
|
114070
|
+
$c_sci_Map$Map3.prototype.filterNot__F1__O = (function(pred) {
|
|
114071
|
+
return this.filterImpl__F1__Z__sci_Map(pred, true)
|
|
114072
|
+
});
|
|
114144
114073
|
$c_sci_Map$Map3.prototype.dropRight__I__O = (function(n) {
|
|
114145
114074
|
return $f_sc_StrictOptimizedIterableOps__dropRight__I__O(this, n)
|
|
114146
114075
|
});
|
|
@@ -114348,6 +114277,9 @@ $c_sci_Map$Map4.prototype.zip__sc_IterableOnce__O = (function(that) {
|
|
|
114348
114277
|
$c_sci_Map$Map4.prototype.filter__F1__O = (function(pred) {
|
|
114349
114278
|
return this.filterImpl__F1__Z__sci_Map(pred, false)
|
|
114350
114279
|
});
|
|
114280
|
+
$c_sci_Map$Map4.prototype.filterNot__F1__O = (function(pred) {
|
|
114281
|
+
return this.filterImpl__F1__Z__sci_Map(pred, true)
|
|
114282
|
+
});
|
|
114351
114283
|
$c_sci_Map$Map4.prototype.dropRight__I__O = (function(n) {
|
|
114352
114284
|
return $f_sc_StrictOptimizedIterableOps__dropRight__I__O(this, n)
|
|
114353
114285
|
});
|
|
@@ -115715,6 +115647,9 @@ $c_sci_HashMap.prototype.zip__sc_IterableOnce__O = (function(that) {
|
|
|
115715
115647
|
$c_sci_HashMap.prototype.filter__F1__O = (function(pred) {
|
|
115716
115648
|
return this.filterImpl__F1__Z__sci_HashMap(pred, false)
|
|
115717
115649
|
});
|
|
115650
|
+
$c_sci_HashMap.prototype.filterNot__F1__O = (function(pred) {
|
|
115651
|
+
return this.filterImpl__F1__Z__sci_HashMap(pred, true)
|
|
115652
|
+
});
|
|
115718
115653
|
$c_sci_HashMap.prototype.mapFactory__sc_MapFactory = (function() {
|
|
115719
115654
|
return $m_sci_HashMap$()
|
|
115720
115655
|
});
|
|
@@ -115971,6 +115906,9 @@ $c_sci_TreeSeqMap.prototype.zip__sc_IterableOnce__O = (function(that) {
|
|
|
115971
115906
|
$c_sci_TreeSeqMap.prototype.filter__F1__O = (function(pred) {
|
|
115972
115907
|
return $f_sc_StrictOptimizedIterableOps__filterImpl__F1__Z__O(this, pred, false)
|
|
115973
115908
|
});
|
|
115909
|
+
$c_sci_TreeSeqMap.prototype.filterNot__F1__O = (function(pred) {
|
|
115910
|
+
return $f_sc_StrictOptimizedIterableOps__filterImpl__F1__Z__O(this, pred, true)
|
|
115911
|
+
});
|
|
115974
115912
|
$c_sci_TreeSeqMap.prototype.dropRight__I__O = (function(n) {
|
|
115975
115913
|
return $f_sc_StrictOptimizedIterableOps__dropRight__I__O(this, n)
|
|
115976
115914
|
});
|
|
@@ -116327,6 +116265,9 @@ $c_sci_VectorMap.prototype.zip__sc_IterableOnce__O = (function(that) {
|
|
|
116327
116265
|
$c_sci_VectorMap.prototype.filter__F1__O = (function(pred) {
|
|
116328
116266
|
return $f_sc_StrictOptimizedIterableOps__filterImpl__F1__Z__O(this, pred, false)
|
|
116329
116267
|
});
|
|
116268
|
+
$c_sci_VectorMap.prototype.filterNot__F1__O = (function(pred) {
|
|
116269
|
+
return $f_sc_StrictOptimizedIterableOps__filterImpl__F1__Z__O(this, pred, true)
|
|
116270
|
+
});
|
|
116330
116271
|
$c_sci_VectorMap.prototype.dropRight__I__O = (function(n) {
|
|
116331
116272
|
return $f_sc_StrictOptimizedIterableOps__dropRight__I__O(this, n)
|
|
116332
116273
|
});
|
|
@@ -117090,6 +117031,9 @@ $c_sci_ListMap.prototype.zip__sc_IterableOnce__O = (function(that) {
|
|
|
117090
117031
|
$c_sci_ListMap.prototype.filter__F1__O = (function(pred) {
|
|
117091
117032
|
return $f_sc_StrictOptimizedIterableOps__filterImpl__F1__Z__O(this, pred, false)
|
|
117092
117033
|
});
|
|
117034
|
+
$c_sci_ListMap.prototype.filterNot__F1__O = (function(pred) {
|
|
117035
|
+
return $f_sc_StrictOptimizedIterableOps__filterImpl__F1__Z__O(this, pred, true)
|
|
117036
|
+
});
|
|
117093
117037
|
$c_sci_ListMap.prototype.dropRight__I__O = (function(n) {
|
|
117094
117038
|
return $f_sc_StrictOptimizedIterableOps__dropRight__I__O(this, n)
|
|
117095
117039
|
});
|
|
@@ -120973,6 +120917,9 @@ $c_scm_HashMap.prototype.collect__s_PartialFunction__O = (function(pf) {
|
|
|
120973
120917
|
$c_scm_HashMap.prototype.zip__sc_IterableOnce__O = (function(that) {
|
|
120974
120918
|
return $f_sc_StrictOptimizedIterableOps__zip__sc_IterableOnce__O(this, that)
|
|
120975
120919
|
});
|
|
120920
|
+
$c_scm_HashMap.prototype.filterNot__F1__O = (function(pred) {
|
|
120921
|
+
return $f_sc_StrictOptimizedIterableOps__filterImpl__F1__Z__O(this, pred, true)
|
|
120922
|
+
});
|
|
120976
120923
|
$c_scm_HashMap.prototype.dropRight__I__O = (function(n) {
|
|
120977
120924
|
return $f_sc_StrictOptimizedIterableOps__dropRight__I__O(this, n)
|
|
120978
120925
|
});
|
|
@@ -124850,6 +124797,9 @@ $c_scm_LinkedHashMap.prototype.collect__s_PartialFunction__O = (function(pf) {
|
|
|
124850
124797
|
$c_scm_LinkedHashMap.prototype.zip__sc_IterableOnce__O = (function(that) {
|
|
124851
124798
|
return $f_sc_StrictOptimizedIterableOps__zip__sc_IterableOnce__O(this, that)
|
|
124852
124799
|
});
|
|
124800
|
+
$c_scm_LinkedHashMap.prototype.filterNot__F1__O = (function(pred) {
|
|
124801
|
+
return $f_sc_StrictOptimizedIterableOps__filterImpl__F1__Z__O(this, pred, true)
|
|
124802
|
+
});
|
|
124853
124803
|
$c_scm_LinkedHashMap.prototype.dropRight__I__O = (function(n) {
|
|
124854
124804
|
return $f_sc_StrictOptimizedIterableOps__dropRight__I__O(this, n)
|
|
124855
124805
|
});
|