@vinctus/oql 1.1.0-alpha.5 → 1.1.0-pre.10

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 (2) hide show
  1. package/index.js +365 -11
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1222,6 +1222,12 @@ function $h_Lcom_vinctus_oql_AbstractOQL() {
1222
1222
  /*<skip>*/
1223
1223
  }
1224
1224
  $h_Lcom_vinctus_oql_AbstractOQL.prototype = $c_Lcom_vinctus_oql_AbstractOQL.prototype;
1225
+ $c_Lcom_vinctus_oql_AbstractOQL.prototype.create__s_concurrent_Future = (function() {
1226
+ return this.execute__F1__s_concurrent_Future(new $c_sjsr_AnonFunction1(((this$1) => ((_$1) => {
1227
+ var _$1$1 = $as_Lcom_vinctus_oql_OQLConnection(_$1);
1228
+ return _$1$1.create__Lcom_vinctus_oql_DataModel__s_concurrent_Future(this$1.Lcom_vinctus_oql_AbstractOQL__f_model)
1229
+ }))(this)))
1230
+ });
1225
1231
  $c_Lcom_vinctus_oql_AbstractOQL.prototype.parseQuery__T__Lcom_vinctus_oql_OQLQuery = (function(oql) {
1226
1232
  var query = $m_Lcom_vinctus_oql_OQLParser$().parseQuery__T__Lcom_vinctus_oql_OQLQuery(oql);
1227
1233
  $m_Lcom_vinctus_oql_AbstractOQL$().preprocessQuery__s_Option__Lcom_vinctus_oql_OQLQuery__Lcom_vinctus_oql_DataModel__Lcom_vinctus_oql_SQLDataSource__T__Lcom_vinctus_oql_OQLQuery($m_s_None$(), query, this.Lcom_vinctus_oql_AbstractOQL__f_model, this.Lcom_vinctus_oql_AbstractOQL__f_ds, oql);
@@ -20469,6 +20475,42 @@ $c_sc_StringOps$.prototype.stripSuffix$extension__T__T__T = (function(this$, suf
20469
20475
  return this$
20470
20476
  }
20471
20477
  });
20478
+ $c_sc_StringOps$.prototype.stripMargin$extension__T__C__T = (function(this$, marginChar) {
20479
+ var sb = $ct_jl_StringBuilder__I__(new $c_jl_StringBuilder(), $uI(this$.length));
20480
+ var this$3 = new $c_sc_StringOps$$anon$1(this$, false);
20481
+ while ((this$3.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index < this$3.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$len)) {
20482
+ var arg1 = this$3.next__T();
20483
+ var len = $uI(arg1.length);
20484
+ var index = 0;
20485
+ while (true) {
20486
+ if ((index < len)) {
20487
+ var index$1 = index;
20488
+ var $$x1 = ((65535 & $uI(arg1.charCodeAt(index$1))) <= 32)
20489
+ } else {
20490
+ var $$x1 = false
20491
+ };
20492
+ if ($$x1) {
20493
+ index = ((1 + index) | 0)
20494
+ } else {
20495
+ break
20496
+ }
20497
+ };
20498
+ if ((index < len)) {
20499
+ var index$2 = index;
20500
+ var $$x2 = ((65535 & $uI(arg1.charCodeAt(index$2))) === marginChar)
20501
+ } else {
20502
+ var $$x2 = false
20503
+ };
20504
+ if ($$x2) {
20505
+ var beginIndex = ((1 + index) | 0);
20506
+ var stripped = $as_T(arg1.substring(beginIndex))
20507
+ } else {
20508
+ var stripped = arg1
20509
+ };
20510
+ sb.jl_StringBuilder__f_java$lang$StringBuilder$$content = (("" + sb.jl_StringBuilder__f_java$lang$StringBuilder$$content) + stripped)
20511
+ };
20512
+ return sb.jl_StringBuilder__f_java$lang$StringBuilder$$content
20513
+ });
20472
20514
  $c_sc_StringOps$.prototype.escape$extension__T__C__T = (function(this$, ch) {
20473
20515
  return (((((ch >= 97) && (ch <= 122)) || ((ch >= 65) && (ch <= 90))) || ((ch >= 48) && (ch <= 57))) ? $as_T(String.fromCharCode(ch)) : ("\\" + $bC(ch)))
20474
20516
  });
@@ -25968,6 +26010,9 @@ $c_Lcom_vinctus_oql_NodePGConnection.prototype.raw__T__sjs_js_Array__sjs_js_Prom
25968
26010
  }))(this, sql, values)), this.Lcom_vinctus_oql_NodePGConnection__f_ec);
25969
26011
  return $m_sjs_js_JSConverters$JSRichFuture$().toJSPromise$extension__s_concurrent_Future__s_concurrent_ExecutionContext__sjs_js_Promise(f, this.Lcom_vinctus_oql_NodePGConnection__f_ec)
25970
26012
  });
26013
+ $c_Lcom_vinctus_oql_NodePGConnection.prototype.create__Lcom_vinctus_oql_DataModel__s_concurrent_Future = (function(model) {
26014
+ $m_s_Predef$().$qmark$qmark$qmark__E()
26015
+ });
25971
26016
  var $d_Lcom_vinctus_oql_NodePGConnection = new $TypeData().initClass({
25972
26017
  Lcom_vinctus_oql_NodePGConnection: 0
25973
26018
  }, false, "com.vinctus.oql.NodePGConnection", {
@@ -26253,7 +26298,7 @@ var $d_Lcom_vinctus_oql_OQL\uff3fNodePG\uff3fJS = new $TypeData().initClass({
26253
26298
  });
26254
26299
  $c_Lcom_vinctus_oql_OQL\uff3fNodePG\uff3fJS.prototype.$classData = $d_Lcom_vinctus_oql_OQL\uff3fNodePG\uff3fJS;
26255
26300
  /** @constructor */
26256
- function $c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS(dm, host, port, database, user, password, ssl, idleTimeoutMillis, max) {
26301
+ function $c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS(dm) {
26257
26302
  this.Lcom_vinctus_oql_AbstractOQL__f_ds = null;
26258
26303
  this.Lcom_vinctus_oql_AbstractOQL__f_conv = null;
26259
26304
  this.Lcom_vinctus_oql_AbstractOQL__f_ec = null;
@@ -26274,6 +26319,10 @@ $h_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype = $c_Lcom_vinctus_oql_OQL\uff
26274
26319
  $c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype.execute__F1__s_concurrent_Future = (function(action) {
26275
26320
  return $as_s_concurrent_Future(action.apply__O__O(this.Lcom_vinctus_oql_AbstractOQL__f_ds.connect__Lcom_vinctus_oql_OQLConnection()))
26276
26321
  });
26322
+ $c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype.jsCreate__sjs_js_Promise = (function() {
26323
+ var f = this.create__s_concurrent_Future();
26324
+ return $m_sjs_js_JSConverters$JSRichFuture$().toJSPromise$extension__s_concurrent_Future__s_concurrent_ExecutionContext__sjs_js_Promise(f, $m_s_concurrent_ExecutionContext$().global__s_concurrent_ExecutionContextExecutor())
26325
+ });
26277
26326
  $c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype.entity__T__Lcom_vinctus_oql_Mutation\uff3fJS\uff3fRDB = (function(name) {
26278
26327
  return new $c_Lcom_vinctus_oql_Mutation\uff3fJS\uff3fRDB(this, $as_Lcom_vinctus_oql_Entity(this.Lcom_vinctus_oql_AbstractOQL__f_model.Lcom_vinctus_oql_DataModel__f_entities.apply__O__O(name)))
26279
26328
  });
@@ -26408,6 +26457,9 @@ $c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype.render__O__s_Option__T = (fun
26408
26457
  $c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype.render$default$2__s_Option = (function() {
26409
26458
  return $m_s_None$()
26410
26459
  });
26460
+ $c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype.$js$exported$meth$create__O = (function() {
26461
+ return this.jsCreate__sjs_js_Promise()
26462
+ });
26411
26463
  $c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype.$js$exported$meth$entity__T__O = (function(name) {
26412
26464
  return this.entity__T__Lcom_vinctus_oql_Mutation\uff3fJS\uff3fRDB(name)
26413
26465
  });
@@ -26456,6 +26508,9 @@ $c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype.$js$exported$meth$queryBuilde
26456
26508
  $c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype.$js$exported$meth$raw__T__O__O = (function(sql, values) {
26457
26509
  return this.raw__T__O__sjs_js_Promise(sql, values)
26458
26510
  });
26511
+ $c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype.create = (function() {
26512
+ return this.$js$exported$meth$create__O()
26513
+ });
26459
26514
  $c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype.queryOne = (function(arg, ...rest) {
26460
26515
  var prep0 = $as_T(arg);
26461
26516
  var prep1 = ((rest[0] === (void 0)) ? this.$js$exported$meth$queryOne$default$2__O() : rest[0]);
@@ -26660,6 +26715,13 @@ $c_Lcom_vinctus_oql_RDBConnection.prototype.command__T__s_concurrent_Future = (f
26660
26715
  return new $c_Lcom_vinctus_oql_RDBResultSet($$x1)
26661
26716
  }))(this, sql)), this.Lcom_vinctus_oql_RDBConnection__f_ec)
26662
26717
  });
26718
+ $c_Lcom_vinctus_oql_RDBConnection.prototype.create__Lcom_vinctus_oql_DataModel__s_concurrent_Future = (function(model) {
26719
+ return $m_s_concurrent_Future$().apply__F0__s_concurrent_ExecutionContext__s_concurrent_Future(new $c_sjsr_AnonFunction0(((this$1, model$2) => (() => {
26720
+ var $$x1 = $m_Lio_github_edadma_rdb_executeSQL$package$();
26721
+ var this$2 = this$1.Lcom_vinctus_oql_RDBConnection__f_dataSource;
26722
+ $$x1.executeSQL__T__Lio_github_edadma_rdb_DB__sci_Seq($f_Lcom_vinctus_oql_SQLDataSource__schema__Lcom_vinctus_oql_DataModel__T(this$2, model$2), this$1.Lcom_vinctus_oql_RDBConnection__f_db)
26723
+ }))(this, model)), this.Lcom_vinctus_oql_RDBConnection__f_ec)
26724
+ });
26663
26725
  var $d_Lcom_vinctus_oql_RDBConnection = new $TypeData().initClass({
26664
26726
  Lcom_vinctus_oql_RDBConnection: 0
26665
26727
  }, false, "com.vinctus.oql.RDBConnection", {
@@ -26790,6 +26852,44 @@ function $isArrayOf_Lcom_vinctus_oql_RelationalType(obj, depth) {
26790
26852
  function $asArrayOf_Lcom_vinctus_oql_RelationalType(obj, depth) {
26791
26853
  return (($isArrayOf_Lcom_vinctus_oql_RelationalType(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lcom.vinctus.oql.RelationalType;", depth))
26792
26854
  }
26855
+ function $f_Lcom_vinctus_oql_SQLDataSource__schema__Lcom_vinctus_oql_DataModel__T($thiz, model) {
26856
+ var this$1 = model.Lcom_vinctus_oql_DataModel__f_entities.values__sc_Iterable().toList__sci_List();
26857
+ var f = new $c_sjsr_AnonFunction1(((_$1) => {
26858
+ var _$1$1 = $as_Lcom_vinctus_oql_Entity(_$1);
26859
+ return _$1$1.Lcom_vinctus_oql_Entity__f_table
26860
+ }));
26861
+ var ord = $m_s_math_Ordering$String$();
26862
+ var this$6 = $as_sci_List($f_sc_SeqOps__sortBy__F1__s_math_Ordering__O(this$1, f, ord));
26863
+ var f$1 = ((this$2) => ((entity) => {
26864
+ var entity$1 = $as_Lcom_vinctus_oql_Entity(entity);
26865
+ var columns = $as_sc_Iterable(entity$1.attributes__sci_Map().values__sc_Iterable().withFilter__F1__sc_WithFilter(new $c_sjsr_AnonFunction1(((attribute) => {
26866
+ var attribute$1 = $as_Lcom_vinctus_oql_Attribute(attribute);
26867
+ return attribute$1.Lcom_vinctus_oql_Attribute__f_typ.isColumnType__Z()
26868
+ }))).map__F1__O(new $c_sjsr_AnonFunction1(((this$3) => ((attribute$2) => {
26869
+ var attribute$3 = $as_Lcom_vinctus_oql_Attribute(attribute$2);
26870
+ return (attribute$3.Lcom_vinctus_oql_Attribute__f_pk ? ((((" \"" + attribute$3.Lcom_vinctus_oql_Attribute__f_column) + "\" ") + this$3.mapPKType__Lcom_vinctus_oql_TypeSpecifier__T(attribute$3.Lcom_vinctus_oql_Attribute__f_typ)) + " PRIMARY KEY") : ((((" \"" + attribute$3.Lcom_vinctus_oql_Attribute__f_column) + "\" ") + this$3.mapType__Lcom_vinctus_oql_TypeSpecifier__T(attribute$3.Lcom_vinctus_oql_Attribute__f_typ)) + (attribute$3.Lcom_vinctus_oql_Attribute__f_required ? " NOT NULL" : "")))
26871
+ }))(this$2))));
26872
+ var x = $f_T__trim__T((((("\n |CREATE TABLE \"" + entity$1.Lcom_vinctus_oql_Entity__f_table) + "\" (\n |") + $f_sc_IterableOnceOps__mkString__T__T__T__T(columns, "", ",\n", "")) + "\n |);\n |"));
26873
+ return $m_sc_StringOps$().stripMargin$extension__T__C__T(x, 124)
26874
+ }))($thiz);
26875
+ if ((this$6 === $m_sci_Nil$())) {
26876
+ var tables = $m_sci_Nil$()
26877
+ } else {
26878
+ var arg1 = this$6.head__O();
26879
+ var h = new $c_sci_$colon$colon(f$1(arg1), $m_sci_Nil$());
26880
+ var t = h;
26881
+ var rest = $as_sci_List(this$6.tail__O());
26882
+ while ((rest !== $m_sci_Nil$())) {
26883
+ var arg1$1 = rest.head__O();
26884
+ var nx = new $c_sci_$colon$colon(f$1(arg1$1), $m_sci_Nil$());
26885
+ t.sci_$colon$colon__f_next = nx;
26886
+ t = nx;
26887
+ rest = $as_sci_List(rest.tail__O())
26888
+ };
26889
+ var tables = h
26890
+ };
26891
+ return $f_sc_IterableOnceOps__mkString__T__T__T__T(tables, "", "", "")
26892
+ }
26793
26893
  function $f_Lcom_vinctus_oql_SQLDataSource__string__T__T($thiz, s) {
26794
26894
  var this$2 = $as_T(s.split("\\").join("\\\\"));
26795
26895
  var this$4 = $as_T(this$2.split("'").join("\\'"));
@@ -35326,6 +35426,67 @@ function $f_Lcom_vinctus_oql_PGDataSource__$init$__V($thiz) {
35326
35426
  var elems$1 = $$x7.wrapRefArray__AO__sci_ArraySeq(new ($d_T2.getArrayOf().constr)([$$x6, $$x5, new $c_T2("current_time", y$6)]));
35327
35427
  $thiz.Lcom_vinctus_oql_NodePG__f_builtinVariables = this$21.from__sc_IterableOnce__sci_Map(elems$1)
35328
35428
  }
35429
+ function $f_Lcom_vinctus_oql_PGDataSource__mapType__Lcom_vinctus_oql_TypeSpecifier__T($thiz, typ) {
35430
+ var x = $m_Lcom_vinctus_oql_TextType$();
35431
+ if ((x === typ)) {
35432
+ return "TEXT"
35433
+ };
35434
+ var x$3 = $m_Lcom_vinctus_oql_IntegerType$();
35435
+ if ((x$3 === typ)) {
35436
+ return "INTEGER"
35437
+ };
35438
+ var x$5 = $m_Lcom_vinctus_oql_BooleanType$();
35439
+ if ((x$5 === typ)) {
35440
+ return "BOOLEAN"
35441
+ };
35442
+ var x$7 = $m_Lcom_vinctus_oql_BigintType$();
35443
+ if ((x$7 === typ)) {
35444
+ return "BIGINT"
35445
+ };
35446
+ if ((typ instanceof $c_Lcom_vinctus_oql_DecimalType)) {
35447
+ var x$1 = $as_Lcom_vinctus_oql_DecimalType(typ);
35448
+ var x7 = x$1.Lcom_vinctus_oql_DecimalType__f_precision;
35449
+ var x8 = x$1.Lcom_vinctus_oql_DecimalType__f_scale;
35450
+ return (((("NUMERIC(" + x7) + ", ") + x8) + ")")
35451
+ };
35452
+ var x$9 = $m_Lcom_vinctus_oql_DateType$();
35453
+ if ((x$9 === typ)) {
35454
+ return "DATE"
35455
+ };
35456
+ var x$11 = $m_Lcom_vinctus_oql_FloatType$();
35457
+ if ((x$11 === typ)) {
35458
+ return "DOUBLE PRECISION"
35459
+ };
35460
+ var x$13 = $m_Lcom_vinctus_oql_UUIDType$();
35461
+ if ((x$13 === typ)) {
35462
+ return "UUID"
35463
+ };
35464
+ var x$15 = $m_Lcom_vinctus_oql_TimestampType$();
35465
+ if ((x$15 === typ)) {
35466
+ return "TIMESTAMP WITHOUT TIME ZONE"
35467
+ };
35468
+ if ((typ instanceof $c_Lcom_vinctus_oql_ManyToOneType)) {
35469
+ var x$1$1 = $as_Lcom_vinctus_oql_ManyToOneType(typ);
35470
+ var x4 = x$1$1.Lcom_vinctus_oql_ManyToOneType__f_entity;
35471
+ var typ$1 = $as_Lcom_vinctus_oql_Attribute(x4.pk__s_Option().get__O()).Lcom_vinctus_oql_Attribute__f_typ;
35472
+ return $f_Lcom_vinctus_oql_PGDataSource__mapType__Lcom_vinctus_oql_TypeSpecifier__T($thiz, typ$1)
35473
+ };
35474
+ throw new $c_s_MatchError(typ)
35475
+ }
35476
+ function $f_Lcom_vinctus_oql_PGDataSource__mapPKType__Lcom_vinctus_oql_TypeSpecifier__T($thiz, typ) {
35477
+ var x = $m_Lcom_vinctus_oql_IntegerType$();
35478
+ if ((x === typ)) {
35479
+ return "SERIAL"
35480
+ };
35481
+ var x$3 = $m_Lcom_vinctus_oql_BigintType$();
35482
+ if ((x$3 === typ)) {
35483
+ return "BIGSERIAL"
35484
+ };
35485
+ if ($is_Lcom_vinctus_oql_Datatype(typ)) {
35486
+ return $f_Lcom_vinctus_oql_PGDataSource__mapType__Lcom_vinctus_oql_TypeSpecifier__T($thiz, typ)
35487
+ };
35488
+ throw new $c_s_MatchError(typ)
35489
+ }
35329
35490
  function $f_Lcom_vinctus_oql_PGDataSource__reverseMapType__T__Lcom_vinctus_oql_Datatype($thiz, typ) {
35330
35491
  var $$x1;
35331
35492
  switch (typ) {
@@ -35426,6 +35587,70 @@ $h_Lcom_vinctus_oql_RDBDataSource.prototype = $c_Lcom_vinctus_oql_RDBDataSource.
35426
35587
  $c_Lcom_vinctus_oql_RDBDataSource.prototype.connect__Lcom_vinctus_oql_OQLConnection = (function() {
35427
35588
  return this.Lcom_vinctus_oql_RDBDataSource__f_connect
35428
35589
  });
35590
+ $c_Lcom_vinctus_oql_RDBDataSource.prototype.mapType__Lcom_vinctus_oql_TypeSpecifier__T = (function(typ) {
35591
+ var x = $m_Lcom_vinctus_oql_TextType$();
35592
+ if ((x === typ)) {
35593
+ return "TEXT"
35594
+ };
35595
+ var x$3 = $m_Lcom_vinctus_oql_IntegerType$();
35596
+ if ((x$3 === typ)) {
35597
+ return "INTEGER"
35598
+ };
35599
+ var x$5 = $m_Lcom_vinctus_oql_BooleanType$();
35600
+ if ((x$5 === typ)) {
35601
+ return "BOOLEAN"
35602
+ };
35603
+ var x$7 = $m_Lcom_vinctus_oql_BigintType$();
35604
+ if ((x$7 === typ)) {
35605
+ return "BIGINT"
35606
+ };
35607
+ if ((typ instanceof $c_Lcom_vinctus_oql_DecimalType)) {
35608
+ var x$1 = $as_Lcom_vinctus_oql_DecimalType(typ);
35609
+ var x11 = x$1.Lcom_vinctus_oql_DecimalType__f_precision;
35610
+ var x12 = x$1.Lcom_vinctus_oql_DecimalType__f_scale;
35611
+ return (((("DECIMAL(" + x11) + ", ") + x12) + ")")
35612
+ };
35613
+ var x$9 = $m_Lcom_vinctus_oql_DateType$();
35614
+ if ((x$9 === typ)) {
35615
+ return "DATE"
35616
+ };
35617
+ var x$11 = $m_Lcom_vinctus_oql_FloatType$();
35618
+ if ((x$11 === typ)) {
35619
+ return "DOUBLE"
35620
+ };
35621
+ var x$13 = $m_Lcom_vinctus_oql_UUIDType$();
35622
+ if ((x$13 === typ)) {
35623
+ return "UUID"
35624
+ };
35625
+ var x$15 = $m_Lcom_vinctus_oql_TimestampType$();
35626
+ if ((x$15 === typ)) {
35627
+ return "TIMESTAMP"
35628
+ };
35629
+ if ((typ instanceof $c_Lcom_vinctus_oql_ManyToOneType)) {
35630
+ var x$1$1 = $as_Lcom_vinctus_oql_ManyToOneType(typ);
35631
+ var x8 = x$1$1.Lcom_vinctus_oql_ManyToOneType__f_entity;
35632
+ return this.mapType__Lcom_vinctus_oql_TypeSpecifier__T($as_Lcom_vinctus_oql_Attribute(x8.pk__s_Option().get__O()).Lcom_vinctus_oql_Attribute__f_typ)
35633
+ };
35634
+ throw new $c_s_MatchError(typ)
35635
+ });
35636
+ $c_Lcom_vinctus_oql_RDBDataSource.prototype.mapPKType__Lcom_vinctus_oql_TypeSpecifier__T = (function(typ) {
35637
+ var x = $m_Lcom_vinctus_oql_IntegerType$();
35638
+ if ((x === typ)) {
35639
+ return "INT AUTO"
35640
+ };
35641
+ var x$3 = $m_Lcom_vinctus_oql_BigintType$();
35642
+ if ((x$3 === typ)) {
35643
+ return "BIGINT AUTO"
35644
+ };
35645
+ var x$5 = $m_Lcom_vinctus_oql_UUIDType$();
35646
+ if ((x$5 === typ)) {
35647
+ return "UUID AUTO"
35648
+ };
35649
+ if ($is_Lcom_vinctus_oql_Datatype(typ)) {
35650
+ return this.mapType__Lcom_vinctus_oql_TypeSpecifier__T(typ)
35651
+ };
35652
+ throw new $c_s_MatchError(typ)
35653
+ });
35429
35654
  $c_Lcom_vinctus_oql_RDBDataSource.prototype.reverseMapType__T__Lcom_vinctus_oql_Datatype = (function(typ) {
35430
35655
  var $$x1;
35431
35656
  switch (typ) {
@@ -37779,6 +38004,9 @@ $c_s_Predef$.prototype.require__Z__V = (function(requirement) {
37779
38004
  throw $ct_jl_IllegalArgumentException__T__(new $c_jl_IllegalArgumentException(), "requirement failed")
37780
38005
  }
37781
38006
  });
38007
+ $c_s_Predef$.prototype.$qmark$qmark$qmark__E = (function() {
38008
+ throw new $c_s_NotImplementedError()
38009
+ });
37782
38010
  var $d_s_Predef$ = new $TypeData().initClass({
37783
38011
  s_Predef$: 0
37784
38012
  }, false, "scala.Predef$", {
@@ -40508,12 +40736,18 @@ function $h_sci_LazyList$WithFilter() {
40508
40736
  /*<skip>*/
40509
40737
  }
40510
40738
  $h_sci_LazyList$WithFilter.prototype = $c_sci_LazyList$WithFilter.prototype;
40739
+ $c_sci_LazyList$WithFilter.prototype.map__F1__sci_LazyList = (function(f) {
40740
+ return this.sci_LazyList$WithFilter__f_filtered.map__F1__sci_LazyList(f)
40741
+ });
40511
40742
  $c_sci_LazyList$WithFilter.prototype.foreach__F1__V = (function(f) {
40512
40743
  this.sci_LazyList$WithFilter__f_filtered.foreach__F1__V(f)
40513
40744
  });
40514
40745
  $c_sci_LazyList$WithFilter.prototype.withFilter__F1__sc_WithFilter = (function(q) {
40515
40746
  return new $c_sci_LazyList$WithFilter(this.sci_LazyList$WithFilter__f_filtered, q)
40516
40747
  });
40748
+ $c_sci_LazyList$WithFilter.prototype.map__F1__O = (function(f) {
40749
+ return this.map__F1__sci_LazyList(f)
40750
+ });
40517
40751
  var $d_sci_LazyList$WithFilter = new $TypeData().initClass({
40518
40752
  sci_LazyList$WithFilter: 0
40519
40753
  }, false, "scala.collection.immutable.LazyList$WithFilter", {
@@ -40748,6 +40982,9 @@ $c_sci_Stream$WithFilter.prototype.foreach__F1__V = (function(f) {
40748
40982
  $c_sci_Stream$WithFilter.prototype.withFilter__F1__sc_WithFilter = (function(q) {
40749
40983
  return new $c_sci_Stream$WithFilter($p_sci_Stream$WithFilter__filtered__sci_Stream(this), q)
40750
40984
  });
40985
+ $c_sci_Stream$WithFilter.prototype.map__F1__O = (function(f) {
40986
+ return $p_sci_Stream$WithFilter__filtered__sci_Stream(this).map__F1__sci_Stream(f)
40987
+ });
40751
40988
  var $d_sci_Stream$WithFilter = new $TypeData().initClass({
40752
40989
  sci_Stream$WithFilter: 0
40753
40990
  }, false, "scala.collection.immutable.Stream$WithFilter", {
@@ -43202,6 +43439,12 @@ $c_Lcom_vinctus_oql_NodePG.prototype.functionReturnType__sci_Map = (function() {
43202
43439
  $c_Lcom_vinctus_oql_NodePG.prototype.builtinVariables__sci_Map = (function() {
43203
43440
  return this.Lcom_vinctus_oql_NodePG__f_builtinVariables
43204
43441
  });
43442
+ $c_Lcom_vinctus_oql_NodePG.prototype.mapType__Lcom_vinctus_oql_TypeSpecifier__T = (function(typ) {
43443
+ return $f_Lcom_vinctus_oql_PGDataSource__mapType__Lcom_vinctus_oql_TypeSpecifier__T(this, typ)
43444
+ });
43445
+ $c_Lcom_vinctus_oql_NodePG.prototype.mapPKType__Lcom_vinctus_oql_TypeSpecifier__T = (function(typ) {
43446
+ return $f_Lcom_vinctus_oql_PGDataSource__mapPKType__Lcom_vinctus_oql_TypeSpecifier__T(this, typ)
43447
+ });
43205
43448
  $c_Lcom_vinctus_oql_NodePG.prototype.reverseMapType__T__Lcom_vinctus_oql_Datatype = (function(typ) {
43206
43449
  return $f_Lcom_vinctus_oql_PGDataSource__reverseMapType__T__Lcom_vinctus_oql_Datatype(this, typ)
43207
43450
  });
@@ -51190,6 +51433,22 @@ function $isArrayOf_s_Enumeration$Value(obj, depth) {
51190
51433
  function $asArrayOf_s_Enumeration$Value(obj, depth) {
51191
51434
  return (($isArrayOf_s_Enumeration$Value(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscala.Enumeration$Value;", depth))
51192
51435
  }
51436
+ class $c_s_NotImplementedError extends $c_jl_Error {
51437
+ constructor() {
51438
+ super();
51439
+ $ct_jl_Throwable__T__jl_Throwable__Z__Z__(this, "an implementation is missing", null, true, true)
51440
+ };
51441
+ }
51442
+ var $d_s_NotImplementedError = new $TypeData().initClass({
51443
+ s_NotImplementedError: 0
51444
+ }, false, "scala.NotImplementedError", {
51445
+ s_NotImplementedError: 1,
51446
+ jl_Error: 1,
51447
+ jl_Throwable: 1,
51448
+ O: 1,
51449
+ Ljava_io_Serializable: 1
51450
+ });
51451
+ $c_s_NotImplementedError.prototype.$classData = $d_s_NotImplementedError;
51193
51452
  /** @constructor */
51194
51453
  function $c_s_PartialFunction$$anon$1() {
51195
51454
  this.s_PartialFunction$$anon$1__f_lift = null;
@@ -63418,6 +63677,86 @@ var $d_sc_StrictOptimizedLinearSeqOps$$anon$1 = new $TypeData().initClass({
63418
63677
  sc_IterableOnceOps: 1
63419
63678
  });
63420
63679
  $c_sc_StrictOptimizedLinearSeqOps$$anon$1.prototype.$classData = $d_sc_StrictOptimizedLinearSeqOps$$anon$1;
63680
+ function $p_sc_StringOps$$anon$1__advance__T($thiz) {
63681
+ var start = $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index;
63682
+ while (true) {
63683
+ if (($thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index < $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$len)) {
63684
+ var this$ = $thiz.sc_StringOps$$anon$1__f_$this$2;
63685
+ var i = $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index;
63686
+ var c = (65535 & $uI(this$.charCodeAt(i)));
63687
+ var $$x1 = (!((c === 13) || (c === 10)))
63688
+ } else {
63689
+ var $$x1 = false
63690
+ };
63691
+ if ($$x1) {
63692
+ $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index = ((1 + $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index) | 0)
63693
+ } else {
63694
+ break
63695
+ }
63696
+ };
63697
+ var end = $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index;
63698
+ if (($thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index < $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$len)) {
63699
+ var this$$2 = $thiz.sc_StringOps$$anon$1__f_$this$2;
63700
+ var i$1 = $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index;
63701
+ var c$1 = (65535 & $uI(this$$2.charCodeAt(i$1)));
63702
+ $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index = ((1 + $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index) | 0);
63703
+ if (($thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index < $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$len)) {
63704
+ var this$$3 = $thiz.sc_StringOps$$anon$1__f_$this$2;
63705
+ var i$2 = $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index;
63706
+ var c$2 = (65535 & $uI(this$$3.charCodeAt(i$2)));
63707
+ var $$x2 = ((c$1 === 13) && (c$2 === 10))
63708
+ } else {
63709
+ var $$x2 = false
63710
+ };
63711
+ if ($$x2) {
63712
+ $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index = ((1 + $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index) | 0)
63713
+ };
63714
+ if ((!$thiz.sc_StringOps$$anon$1__f_stripped$1)) {
63715
+ end = $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index
63716
+ }
63717
+ };
63718
+ var this$6 = $thiz.sc_StringOps$$anon$1__f_$this$2;
63719
+ var endIndex = end;
63720
+ return $as_T(this$6.substring(start, endIndex))
63721
+ }
63722
+ /** @constructor */
63723
+ function $c_sc_StringOps$$anon$1(\u03b4this$2, stripped$1) {
63724
+ this.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$len = 0;
63725
+ this.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index = 0;
63726
+ this.sc_StringOps$$anon$1__f_$this$2 = null;
63727
+ this.sc_StringOps$$anon$1__f_stripped$1 = false;
63728
+ this.sc_StringOps$$anon$1__f_$this$2 = \u03b4this$2;
63729
+ this.sc_StringOps$$anon$1__f_stripped$1 = stripped$1;
63730
+ this.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$len = $uI(\u03b4this$2.length);
63731
+ this.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index = 0
63732
+ }
63733
+ $c_sc_StringOps$$anon$1.prototype = new $h_sc_AbstractIterator();
63734
+ $c_sc_StringOps$$anon$1.prototype.constructor = $c_sc_StringOps$$anon$1;
63735
+ /** @constructor */
63736
+ function $h_sc_StringOps$$anon$1() {
63737
+ /*<skip>*/
63738
+ }
63739
+ $h_sc_StringOps$$anon$1.prototype = $c_sc_StringOps$$anon$1.prototype;
63740
+ $c_sc_StringOps$$anon$1.prototype.hasNext__Z = (function() {
63741
+ return (this.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index < this.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$len)
63742
+ });
63743
+ $c_sc_StringOps$$anon$1.prototype.next__T = (function() {
63744
+ return ((this.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index >= this.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$len) ? $as_T($m_sc_Iterator$().sc_Iterator$__f_scala$collection$Iterator$$_empty.next__O()) : $p_sc_StringOps$$anon$1__advance__T(this))
63745
+ });
63746
+ $c_sc_StringOps$$anon$1.prototype.next__O = (function() {
63747
+ return this.next__T()
63748
+ });
63749
+ var $d_sc_StringOps$$anon$1 = new $TypeData().initClass({
63750
+ sc_StringOps$$anon$1: 0
63751
+ }, false, "scala.collection.StringOps$$anon$1", {
63752
+ sc_StringOps$$anon$1: 1,
63753
+ sc_AbstractIterator: 1,
63754
+ O: 1,
63755
+ sc_Iterator: 1,
63756
+ sc_IterableOnce: 1,
63757
+ sc_IterableOnceOps: 1
63758
+ });
63759
+ $c_sc_StringOps$$anon$1.prototype.$classData = $d_sc_StringOps$$anon$1;
63421
63760
  /** @constructor */
63422
63761
  function $c_sc_StringOps$StringIterator(s) {
63423
63762
  this.sc_StringOps$StringIterator__f_s = null;
@@ -74401,6 +74740,10 @@ $c_sc_AbstractIterable.prototype.copyToArray__O__I__I__I = (function(xs, start,
74401
74740
  $c_sc_AbstractIterable.prototype.addString__scm_StringBuilder__T__T__T__scm_StringBuilder = (function(b, start, sep, end) {
74402
74741
  return $f_sc_IterableOnceOps__addString__scm_StringBuilder__T__T__T__scm_StringBuilder(this, b, start, sep, end)
74403
74742
  });
74743
+ $c_sc_AbstractIterable.prototype.toList__sci_List = (function() {
74744
+ $m_sci_List$();
74745
+ return $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(this)
74746
+ });
74404
74747
  $c_sc_AbstractIterable.prototype.toMap__s_$less$colon$less__sci_Map = (function(ev) {
74405
74748
  return $m_sci_Map$().from__sc_IterableOnce__sci_Map(this)
74406
74749
  });
@@ -80171,6 +80514,10 @@ $c_sci_VectorMap$$anon$2.prototype.copyToArray__O__I__I__I = (function(xs, start
80171
80514
  $c_sci_VectorMap$$anon$2.prototype.addString__scm_StringBuilder__T__T__T__scm_StringBuilder = (function(b, start, sep, end) {
80172
80515
  return $f_sc_IterableOnceOps__addString__scm_StringBuilder__T__T__T__scm_StringBuilder(this, b, start, sep, end)
80173
80516
  });
80517
+ $c_sci_VectorMap$$anon$2.prototype.toList__sci_List = (function() {
80518
+ $m_sci_List$();
80519
+ return $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(this)
80520
+ });
80174
80521
  $c_sci_VectorMap$$anon$2.prototype.toMap__s_$less$colon$less__sci_Map = (function(ev) {
80175
80522
  return $m_sci_Map$().from__sc_IterableOnce__sci_Map(this)
80176
80523
  });
@@ -87389,6 +87736,10 @@ $c_sc_SeqView$Sorted.prototype.copyToArray__O__I__I__I = (function(xs, start, le
87389
87736
  $c_sc_SeqView$Sorted.prototype.addString__scm_StringBuilder__T__T__T__scm_StringBuilder = (function(b, start, sep, end) {
87390
87737
  return $f_sc_IterableOnceOps__addString__scm_StringBuilder__T__T__T__scm_StringBuilder(this, b, start, sep, end)
87391
87738
  });
87739
+ $c_sc_SeqView$Sorted.prototype.toList__sci_List = (function() {
87740
+ $m_sci_List$();
87741
+ return $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(this)
87742
+ });
87392
87743
  $c_sc_SeqView$Sorted.prototype.toMap__s_$less$colon$less__sci_Map = (function(ev) {
87393
87744
  return $m_sci_Map$().from__sc_IterableOnce__sci_Map(this)
87394
87745
  });
@@ -87563,6 +87914,10 @@ $c_sc_SeqView$Sorted$ReverseSorted.prototype.copyToArray__O__I__I__I = (function
87563
87914
  $c_sc_SeqView$Sorted$ReverseSorted.prototype.addString__scm_StringBuilder__T__T__T__scm_StringBuilder = (function(b, start, sep, end) {
87564
87915
  return $f_sc_IterableOnceOps__addString__scm_StringBuilder__T__T__T__scm_StringBuilder(this, b, start, sep, end)
87565
87916
  });
87917
+ $c_sc_SeqView$Sorted$ReverseSorted.prototype.toList__sci_List = (function() {
87918
+ $m_sci_List$();
87919
+ return $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(this)
87920
+ });
87566
87921
  $c_sc_SeqView$Sorted$ReverseSorted.prototype.toMap__s_$less$colon$less__sci_Map = (function(ev) {
87567
87922
  return $m_sci_Map$().from__sc_IterableOnce__sci_Map(this)
87568
87923
  });
@@ -97546,6 +97901,10 @@ $c_sjsr_WrappedVarArgs.prototype.copyToArray__O__I__I__I = (function(xs, start,
97546
97901
  $c_sjsr_WrappedVarArgs.prototype.addString__scm_StringBuilder__T__T__T__scm_StringBuilder = (function(b, start, sep, end) {
97547
97902
  return $f_sc_IterableOnceOps__addString__scm_StringBuilder__T__T__T__scm_StringBuilder(this, b, start, sep, end)
97548
97903
  });
97904
+ $c_sjsr_WrappedVarArgs.prototype.toList__sci_List = (function() {
97905
+ $m_sci_List$();
97906
+ return $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(this)
97907
+ });
97549
97908
  $c_sjsr_WrappedVarArgs.prototype.toMap__s_$less$colon$less__sci_Map = (function(ev) {
97550
97909
  return $m_sci_Map$().from__sc_IterableOnce__sci_Map(this)
97551
97910
  });
@@ -101834,6 +102193,9 @@ $c_sci_List.prototype.last__O = (function() {
101834
102193
  $c_sci_List.prototype.className__T = (function() {
101835
102194
  return "List"
101836
102195
  });
102196
+ $c_sci_List.prototype.toList__sci_List = (function() {
102197
+ return this
102198
+ });
101837
102199
  $c_sci_List.prototype.equals__O__Z = (function(o) {
101838
102200
  if ((o instanceof $c_sci_List)) {
101839
102201
  var x2 = $as_sci_List(o);
@@ -107871,17 +108233,9 @@ exports.OQL = (function(arg, arg$2, arg$3, arg$4, arg$5, arg$6, arg$7, arg$8, ar
107871
108233
  var prep8 = $uI(arg$9);
107872
108234
  return new $c_Lcom_vinctus_oql_OQL\uff3fNodePG\uff3fJS(prep0, prep1, prep2, prep3, prep4, prep5, prep6, prep7, prep8)
107873
108235
  });
107874
- exports.OQL_RDB = (function(arg, arg$2, arg$3, arg$4, arg$5, arg$6, arg$7, arg$8, arg$9) {
108236
+ exports.OQL_RDB = (function(arg) {
107875
108237
  var prep0 = $as_T(arg);
107876
- var prep1 = $as_T(arg$2);
107877
- var prep2 = $uI(arg$3);
107878
- var prep3 = $as_T(arg$4);
107879
- var prep4 = $as_T(arg$5);
107880
- var prep5 = $as_T(arg$6);
107881
- var prep6 = arg$7;
107882
- var prep7 = $uI(arg$8);
107883
- var prep8 = $uI(arg$9);
107884
- return new $c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS(prep0, prep1, prep2, prep3, prep4, prep5, prep6, prep7, prep8)
108238
+ return new $c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS(prep0)
107885
108239
  });
107886
108240
  exports.ConnectSQL = (function() {
107887
108241
  return new $c_Lio_github_edadma_rdb_ConnectSQL()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vinctus/oql",
3
- "version": "1.1.0-alpha.5",
3
+ "version": "1.1.0-pre.10",
4
4
  "description": "Object Query Language",
5
5
  "main": "index.js",
6
6
  "scripts": {