@vinctus/oql 1.1.0-alpha.6 → 1.1.0-pre.9

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 +339 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -20469,6 +20469,42 @@ $c_sc_StringOps$.prototype.stripSuffix$extension__T__T__T = (function(this$, suf
20469
20469
  return this$
20470
20470
  }
20471
20471
  });
20472
+ $c_sc_StringOps$.prototype.stripMargin$extension__T__C__T = (function(this$, marginChar) {
20473
+ var sb = $ct_jl_StringBuilder__I__(new $c_jl_StringBuilder(), $uI(this$.length));
20474
+ var this$3 = new $c_sc_StringOps$$anon$1(this$, false);
20475
+ 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)) {
20476
+ var arg1 = this$3.next__T();
20477
+ var len = $uI(arg1.length);
20478
+ var index = 0;
20479
+ while (true) {
20480
+ if ((index < len)) {
20481
+ var index$1 = index;
20482
+ var $$x1 = ((65535 & $uI(arg1.charCodeAt(index$1))) <= 32)
20483
+ } else {
20484
+ var $$x1 = false
20485
+ };
20486
+ if ($$x1) {
20487
+ index = ((1 + index) | 0)
20488
+ } else {
20489
+ break
20490
+ }
20491
+ };
20492
+ if ((index < len)) {
20493
+ var index$2 = index;
20494
+ var $$x2 = ((65535 & $uI(arg1.charCodeAt(index$2))) === marginChar)
20495
+ } else {
20496
+ var $$x2 = false
20497
+ };
20498
+ if ($$x2) {
20499
+ var beginIndex = ((1 + index) | 0);
20500
+ var stripped = $as_T(arg1.substring(beginIndex))
20501
+ } else {
20502
+ var stripped = arg1
20503
+ };
20504
+ sb.jl_StringBuilder__f_java$lang$StringBuilder$$content = (("" + sb.jl_StringBuilder__f_java$lang$StringBuilder$$content) + stripped)
20505
+ };
20506
+ return sb.jl_StringBuilder__f_java$lang$StringBuilder$$content
20507
+ });
20472
20508
  $c_sc_StringOps$.prototype.escape$extension__T__C__T = (function(this$, ch) {
20473
20509
  return (((((ch >= 97) && (ch <= 122)) || ((ch >= 65) && (ch <= 90))) || ((ch >= 48) && (ch <= 57))) ? $as_T(String.fromCharCode(ch)) : ("\\" + $bC(ch)))
20474
20510
  });
@@ -26262,6 +26298,19 @@ function $c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS(dm) {
26262
26298
  this.Lcom_vinctus_oql_AbstractOQL__f_model = null;
26263
26299
  this.Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS__f_varRegex = null;
26264
26300
  $ct_Lcom_vinctus_oql_AbstractOQL__T__Lcom_vinctus_oql_SQLDataSource__Lcom_vinctus_oql_Conversions__s_concurrent_ExecutionContext__(this, dm, new $c_Lcom_vinctus_oql_RDBDataSource($m_s_concurrent_ExecutionContext$().global__s_concurrent_ExecutionContextExecutor()), $m_Lcom_vinctus_oql_JSConversions$(), $m_s_concurrent_ExecutionContext$().global__s_concurrent_ExecutionContextExecutor());
26301
+ var this$4 = $m_s_Console$();
26302
+ var this$5 = this$4.out__Ljava_io_PrintStream();
26303
+ this$5.java$lang$JSConsoleBasedPrintStream$$printString__T__V("OQL_RDB_JS\n");
26304
+ var this$6 = $as_Lcom_vinctus_oql_RDBConnection(this.Lcom_vinctus_oql_AbstractOQL__f_ds.connect__Lcom_vinctus_oql_OQLConnection()).Lcom_vinctus_oql_RDBConnection__f_dataSource;
26305
+ var model = this.Lcom_vinctus_oql_AbstractOQL__f_model;
26306
+ var x = $f_Lcom_vinctus_oql_SQLDataSource__schema__Lcom_vinctus_oql_DataModel__T(this$6, model);
26307
+ var this$8 = $m_s_Console$();
26308
+ var this$9 = this$8.out__Ljava_io_PrintStream();
26309
+ this$9.java$lang$JSConsoleBasedPrintStream$$printString__T__V((x + "\n"));
26310
+ var $$x1 = $m_Lio_github_edadma_rdb_executeSQL$package$();
26311
+ var this$10 = $as_Lcom_vinctus_oql_RDBConnection(this.Lcom_vinctus_oql_AbstractOQL__f_ds.connect__Lcom_vinctus_oql_OQLConnection()).Lcom_vinctus_oql_RDBConnection__f_dataSource;
26312
+ var model$1 = this.Lcom_vinctus_oql_AbstractOQL__f_model;
26313
+ $$x1.executeSQL__T__Lio_github_edadma_rdb_DB__sci_Seq($f_Lcom_vinctus_oql_SQLDataSource__schema__Lcom_vinctus_oql_DataModel__T(this$10, model$1), $as_Lcom_vinctus_oql_RDBConnection(this.Lcom_vinctus_oql_AbstractOQL__f_ds.connect__Lcom_vinctus_oql_OQLConnection()).Lcom_vinctus_oql_RDBConnection__f_db);
26265
26314
  this.Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS__f_varRegex = $ct_s_util_matching_Regex__T__sci_Seq__(new $c_s_util_matching_Regex(), ":([a-zA-Z_][a-zA-Z0-9_]*)", $m_sci_Nil$())
26266
26315
  }
26267
26316
  $c_Lcom_vinctus_oql_OQL\uff3fRDB\uff3fJS.prototype = new $h_Lcom_vinctus_oql_AbstractOQL();
@@ -26660,6 +26709,15 @@ $c_Lcom_vinctus_oql_RDBConnection.prototype.command__T__s_concurrent_Future = (f
26660
26709
  return new $c_Lcom_vinctus_oql_RDBResultSet($$x1)
26661
26710
  }))(this, sql)), this.Lcom_vinctus_oql_RDBConnection__f_ec)
26662
26711
  });
26712
+ function $as_Lcom_vinctus_oql_RDBConnection(obj) {
26713
+ return (((obj instanceof $c_Lcom_vinctus_oql_RDBConnection) || (obj === null)) ? obj : $throwClassCastException(obj, "com.vinctus.oql.RDBConnection"))
26714
+ }
26715
+ function $isArrayOf_Lcom_vinctus_oql_RDBConnection(obj, depth) {
26716
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lcom_vinctus_oql_RDBConnection)))
26717
+ }
26718
+ function $asArrayOf_Lcom_vinctus_oql_RDBConnection(obj, depth) {
26719
+ return (($isArrayOf_Lcom_vinctus_oql_RDBConnection(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lcom.vinctus.oql.RDBConnection;", depth))
26720
+ }
26663
26721
  var $d_Lcom_vinctus_oql_RDBConnection = new $TypeData().initClass({
26664
26722
  Lcom_vinctus_oql_RDBConnection: 0
26665
26723
  }, false, "com.vinctus.oql.RDBConnection", {
@@ -26790,6 +26848,44 @@ function $isArrayOf_Lcom_vinctus_oql_RelationalType(obj, depth) {
26790
26848
  function $asArrayOf_Lcom_vinctus_oql_RelationalType(obj, depth) {
26791
26849
  return (($isArrayOf_Lcom_vinctus_oql_RelationalType(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lcom.vinctus.oql.RelationalType;", depth))
26792
26850
  }
26851
+ function $f_Lcom_vinctus_oql_SQLDataSource__schema__Lcom_vinctus_oql_DataModel__T($thiz, model) {
26852
+ var this$1 = model.Lcom_vinctus_oql_DataModel__f_entities.values__sc_Iterable().toList__sci_List();
26853
+ var f = new $c_sjsr_AnonFunction1(((_$1) => {
26854
+ var _$1$1 = $as_Lcom_vinctus_oql_Entity(_$1);
26855
+ return _$1$1.Lcom_vinctus_oql_Entity__f_table
26856
+ }));
26857
+ var ord = $m_s_math_Ordering$String$();
26858
+ var this$6 = $as_sci_List($f_sc_SeqOps__sortBy__F1__s_math_Ordering__O(this$1, f, ord));
26859
+ var f$1 = ((this$2) => ((entity) => {
26860
+ var entity$1 = $as_Lcom_vinctus_oql_Entity(entity);
26861
+ var columns = $as_sc_Iterable(entity$1.attributes__sci_Map().values__sc_Iterable().withFilter__F1__sc_WithFilter(new $c_sjsr_AnonFunction1(((attribute) => {
26862
+ var attribute$1 = $as_Lcom_vinctus_oql_Attribute(attribute);
26863
+ return attribute$1.Lcom_vinctus_oql_Attribute__f_typ.isColumnType__Z()
26864
+ }))).map__F1__O(new $c_sjsr_AnonFunction1(((this$3) => ((attribute$2) => {
26865
+ var attribute$3 = $as_Lcom_vinctus_oql_Attribute(attribute$2);
26866
+ 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" : "")))
26867
+ }))(this$2))));
26868
+ 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 |"));
26869
+ return $m_sc_StringOps$().stripMargin$extension__T__C__T(x, 124)
26870
+ }))($thiz);
26871
+ if ((this$6 === $m_sci_Nil$())) {
26872
+ var tables = $m_sci_Nil$()
26873
+ } else {
26874
+ var arg1 = this$6.head__O();
26875
+ var h = new $c_sci_$colon$colon(f$1(arg1), $m_sci_Nil$());
26876
+ var t = h;
26877
+ var rest = $as_sci_List(this$6.tail__O());
26878
+ while ((rest !== $m_sci_Nil$())) {
26879
+ var arg1$1 = rest.head__O();
26880
+ var nx = new $c_sci_$colon$colon(f$1(arg1$1), $m_sci_Nil$());
26881
+ t.sci_$colon$colon__f_next = nx;
26882
+ t = nx;
26883
+ rest = $as_sci_List(rest.tail__O())
26884
+ };
26885
+ var tables = h
26886
+ };
26887
+ return $f_sc_IterableOnceOps__mkString__T__T__T__T(tables, "", "", "")
26888
+ }
26793
26889
  function $f_Lcom_vinctus_oql_SQLDataSource__string__T__T($thiz, s) {
26794
26890
  var this$2 = $as_T(s.split("\\").join("\\\\"));
26795
26891
  var this$4 = $as_T(this$2.split("'").join("\\'"));
@@ -35326,6 +35422,67 @@ function $f_Lcom_vinctus_oql_PGDataSource__$init$__V($thiz) {
35326
35422
  var elems$1 = $$x7.wrapRefArray__AO__sci_ArraySeq(new ($d_T2.getArrayOf().constr)([$$x6, $$x5, new $c_T2("current_time", y$6)]));
35327
35423
  $thiz.Lcom_vinctus_oql_NodePG__f_builtinVariables = this$21.from__sc_IterableOnce__sci_Map(elems$1)
35328
35424
  }
35425
+ function $f_Lcom_vinctus_oql_PGDataSource__mapType__Lcom_vinctus_oql_TypeSpecifier__T($thiz, typ) {
35426
+ var x = $m_Lcom_vinctus_oql_TextType$();
35427
+ if ((x === typ)) {
35428
+ return "TEXT"
35429
+ };
35430
+ var x$3 = $m_Lcom_vinctus_oql_IntegerType$();
35431
+ if ((x$3 === typ)) {
35432
+ return "INTEGER"
35433
+ };
35434
+ var x$5 = $m_Lcom_vinctus_oql_BooleanType$();
35435
+ if ((x$5 === typ)) {
35436
+ return "BOOLEAN"
35437
+ };
35438
+ var x$7 = $m_Lcom_vinctus_oql_BigintType$();
35439
+ if ((x$7 === typ)) {
35440
+ return "BIGINT"
35441
+ };
35442
+ if ((typ instanceof $c_Lcom_vinctus_oql_DecimalType)) {
35443
+ var x$1 = $as_Lcom_vinctus_oql_DecimalType(typ);
35444
+ var x7 = x$1.Lcom_vinctus_oql_DecimalType__f_precision;
35445
+ var x8 = x$1.Lcom_vinctus_oql_DecimalType__f_scale;
35446
+ return (((("NUMERIC(" + x7) + ", ") + x8) + ")")
35447
+ };
35448
+ var x$9 = $m_Lcom_vinctus_oql_DateType$();
35449
+ if ((x$9 === typ)) {
35450
+ return "DATE"
35451
+ };
35452
+ var x$11 = $m_Lcom_vinctus_oql_FloatType$();
35453
+ if ((x$11 === typ)) {
35454
+ return "DOUBLE PRECISION"
35455
+ };
35456
+ var x$13 = $m_Lcom_vinctus_oql_UUIDType$();
35457
+ if ((x$13 === typ)) {
35458
+ return "UUID"
35459
+ };
35460
+ var x$15 = $m_Lcom_vinctus_oql_TimestampType$();
35461
+ if ((x$15 === typ)) {
35462
+ return "TIMESTAMP WITHOUT TIME ZONE"
35463
+ };
35464
+ if ((typ instanceof $c_Lcom_vinctus_oql_ManyToOneType)) {
35465
+ var x$1$1 = $as_Lcom_vinctus_oql_ManyToOneType(typ);
35466
+ var x4 = x$1$1.Lcom_vinctus_oql_ManyToOneType__f_entity;
35467
+ var typ$1 = $as_Lcom_vinctus_oql_Attribute(x4.pk__s_Option().get__O()).Lcom_vinctus_oql_Attribute__f_typ;
35468
+ return $f_Lcom_vinctus_oql_PGDataSource__mapType__Lcom_vinctus_oql_TypeSpecifier__T($thiz, typ$1)
35469
+ };
35470
+ throw new $c_s_MatchError(typ)
35471
+ }
35472
+ function $f_Lcom_vinctus_oql_PGDataSource__mapPKType__Lcom_vinctus_oql_TypeSpecifier__T($thiz, typ) {
35473
+ var x = $m_Lcom_vinctus_oql_IntegerType$();
35474
+ if ((x === typ)) {
35475
+ return "SERIAL"
35476
+ };
35477
+ var x$3 = $m_Lcom_vinctus_oql_BigintType$();
35478
+ if ((x$3 === typ)) {
35479
+ return "BIGSERIAL"
35480
+ };
35481
+ if ($is_Lcom_vinctus_oql_Datatype(typ)) {
35482
+ return $f_Lcom_vinctus_oql_PGDataSource__mapType__Lcom_vinctus_oql_TypeSpecifier__T($thiz, typ)
35483
+ };
35484
+ throw new $c_s_MatchError(typ)
35485
+ }
35329
35486
  function $f_Lcom_vinctus_oql_PGDataSource__reverseMapType__T__Lcom_vinctus_oql_Datatype($thiz, typ) {
35330
35487
  var $$x1;
35331
35488
  switch (typ) {
@@ -35426,6 +35583,70 @@ $h_Lcom_vinctus_oql_RDBDataSource.prototype = $c_Lcom_vinctus_oql_RDBDataSource.
35426
35583
  $c_Lcom_vinctus_oql_RDBDataSource.prototype.connect__Lcom_vinctus_oql_OQLConnection = (function() {
35427
35584
  return this.Lcom_vinctus_oql_RDBDataSource__f_connect
35428
35585
  });
35586
+ $c_Lcom_vinctus_oql_RDBDataSource.prototype.mapType__Lcom_vinctus_oql_TypeSpecifier__T = (function(typ) {
35587
+ var x = $m_Lcom_vinctus_oql_TextType$();
35588
+ if ((x === typ)) {
35589
+ return "TEXT"
35590
+ };
35591
+ var x$3 = $m_Lcom_vinctus_oql_IntegerType$();
35592
+ if ((x$3 === typ)) {
35593
+ return "INTEGER"
35594
+ };
35595
+ var x$5 = $m_Lcom_vinctus_oql_BooleanType$();
35596
+ if ((x$5 === typ)) {
35597
+ return "BOOLEAN"
35598
+ };
35599
+ var x$7 = $m_Lcom_vinctus_oql_BigintType$();
35600
+ if ((x$7 === typ)) {
35601
+ return "BIGINT"
35602
+ };
35603
+ if ((typ instanceof $c_Lcom_vinctus_oql_DecimalType)) {
35604
+ var x$1 = $as_Lcom_vinctus_oql_DecimalType(typ);
35605
+ var x11 = x$1.Lcom_vinctus_oql_DecimalType__f_precision;
35606
+ var x12 = x$1.Lcom_vinctus_oql_DecimalType__f_scale;
35607
+ return (((("DECIMAL(" + x11) + ", ") + x12) + ")")
35608
+ };
35609
+ var x$9 = $m_Lcom_vinctus_oql_DateType$();
35610
+ if ((x$9 === typ)) {
35611
+ return "DATE"
35612
+ };
35613
+ var x$11 = $m_Lcom_vinctus_oql_FloatType$();
35614
+ if ((x$11 === typ)) {
35615
+ return "FLOAT"
35616
+ };
35617
+ var x$13 = $m_Lcom_vinctus_oql_UUIDType$();
35618
+ if ((x$13 === typ)) {
35619
+ return "UUID"
35620
+ };
35621
+ var x$15 = $m_Lcom_vinctus_oql_TimestampType$();
35622
+ if ((x$15 === typ)) {
35623
+ return "TIMESTAMP"
35624
+ };
35625
+ if ((typ instanceof $c_Lcom_vinctus_oql_ManyToOneType)) {
35626
+ var x$1$1 = $as_Lcom_vinctus_oql_ManyToOneType(typ);
35627
+ var x8 = x$1$1.Lcom_vinctus_oql_ManyToOneType__f_entity;
35628
+ 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)
35629
+ };
35630
+ throw new $c_s_MatchError(typ)
35631
+ });
35632
+ $c_Lcom_vinctus_oql_RDBDataSource.prototype.mapPKType__Lcom_vinctus_oql_TypeSpecifier__T = (function(typ) {
35633
+ var x = $m_Lcom_vinctus_oql_IntegerType$();
35634
+ if ((x === typ)) {
35635
+ return "INT AUTO"
35636
+ };
35637
+ var x$3 = $m_Lcom_vinctus_oql_BigintType$();
35638
+ if ((x$3 === typ)) {
35639
+ return "BIGINT AUTO"
35640
+ };
35641
+ var x$5 = $m_Lcom_vinctus_oql_UUIDType$();
35642
+ if ((x$5 === typ)) {
35643
+ return "UUID AUTO"
35644
+ };
35645
+ if ($is_Lcom_vinctus_oql_Datatype(typ)) {
35646
+ return this.mapType__Lcom_vinctus_oql_TypeSpecifier__T(typ)
35647
+ };
35648
+ throw new $c_s_MatchError(typ)
35649
+ });
35429
35650
  $c_Lcom_vinctus_oql_RDBDataSource.prototype.reverseMapType__T__Lcom_vinctus_oql_Datatype = (function(typ) {
35430
35651
  var $$x1;
35431
35652
  switch (typ) {
@@ -40508,12 +40729,18 @@ function $h_sci_LazyList$WithFilter() {
40508
40729
  /*<skip>*/
40509
40730
  }
40510
40731
  $h_sci_LazyList$WithFilter.prototype = $c_sci_LazyList$WithFilter.prototype;
40732
+ $c_sci_LazyList$WithFilter.prototype.map__F1__sci_LazyList = (function(f) {
40733
+ return this.sci_LazyList$WithFilter__f_filtered.map__F1__sci_LazyList(f)
40734
+ });
40511
40735
  $c_sci_LazyList$WithFilter.prototype.foreach__F1__V = (function(f) {
40512
40736
  this.sci_LazyList$WithFilter__f_filtered.foreach__F1__V(f)
40513
40737
  });
40514
40738
  $c_sci_LazyList$WithFilter.prototype.withFilter__F1__sc_WithFilter = (function(q) {
40515
40739
  return new $c_sci_LazyList$WithFilter(this.sci_LazyList$WithFilter__f_filtered, q)
40516
40740
  });
40741
+ $c_sci_LazyList$WithFilter.prototype.map__F1__O = (function(f) {
40742
+ return this.map__F1__sci_LazyList(f)
40743
+ });
40517
40744
  var $d_sci_LazyList$WithFilter = new $TypeData().initClass({
40518
40745
  sci_LazyList$WithFilter: 0
40519
40746
  }, false, "scala.collection.immutable.LazyList$WithFilter", {
@@ -40748,6 +40975,9 @@ $c_sci_Stream$WithFilter.prototype.foreach__F1__V = (function(f) {
40748
40975
  $c_sci_Stream$WithFilter.prototype.withFilter__F1__sc_WithFilter = (function(q) {
40749
40976
  return new $c_sci_Stream$WithFilter($p_sci_Stream$WithFilter__filtered__sci_Stream(this), q)
40750
40977
  });
40978
+ $c_sci_Stream$WithFilter.prototype.map__F1__O = (function(f) {
40979
+ return $p_sci_Stream$WithFilter__filtered__sci_Stream(this).map__F1__sci_Stream(f)
40980
+ });
40751
40981
  var $d_sci_Stream$WithFilter = new $TypeData().initClass({
40752
40982
  sci_Stream$WithFilter: 0
40753
40983
  }, false, "scala.collection.immutable.Stream$WithFilter", {
@@ -43202,6 +43432,12 @@ $c_Lcom_vinctus_oql_NodePG.prototype.functionReturnType__sci_Map = (function() {
43202
43432
  $c_Lcom_vinctus_oql_NodePG.prototype.builtinVariables__sci_Map = (function() {
43203
43433
  return this.Lcom_vinctus_oql_NodePG__f_builtinVariables
43204
43434
  });
43435
+ $c_Lcom_vinctus_oql_NodePG.prototype.mapType__Lcom_vinctus_oql_TypeSpecifier__T = (function(typ) {
43436
+ return $f_Lcom_vinctus_oql_PGDataSource__mapType__Lcom_vinctus_oql_TypeSpecifier__T(this, typ)
43437
+ });
43438
+ $c_Lcom_vinctus_oql_NodePG.prototype.mapPKType__Lcom_vinctus_oql_TypeSpecifier__T = (function(typ) {
43439
+ return $f_Lcom_vinctus_oql_PGDataSource__mapPKType__Lcom_vinctus_oql_TypeSpecifier__T(this, typ)
43440
+ });
43205
43441
  $c_Lcom_vinctus_oql_NodePG.prototype.reverseMapType__T__Lcom_vinctus_oql_Datatype = (function(typ) {
43206
43442
  return $f_Lcom_vinctus_oql_PGDataSource__reverseMapType__T__Lcom_vinctus_oql_Datatype(this, typ)
43207
43443
  });
@@ -63418,6 +63654,86 @@ var $d_sc_StrictOptimizedLinearSeqOps$$anon$1 = new $TypeData().initClass({
63418
63654
  sc_IterableOnceOps: 1
63419
63655
  });
63420
63656
  $c_sc_StrictOptimizedLinearSeqOps$$anon$1.prototype.$classData = $d_sc_StrictOptimizedLinearSeqOps$$anon$1;
63657
+ function $p_sc_StringOps$$anon$1__advance__T($thiz) {
63658
+ var start = $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index;
63659
+ while (true) {
63660
+ if (($thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index < $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$len)) {
63661
+ var this$ = $thiz.sc_StringOps$$anon$1__f_$this$2;
63662
+ var i = $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index;
63663
+ var c = (65535 & $uI(this$.charCodeAt(i)));
63664
+ var $$x1 = (!((c === 13) || (c === 10)))
63665
+ } else {
63666
+ var $$x1 = false
63667
+ };
63668
+ if ($$x1) {
63669
+ $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index = ((1 + $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index) | 0)
63670
+ } else {
63671
+ break
63672
+ }
63673
+ };
63674
+ var end = $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index;
63675
+ if (($thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index < $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$len)) {
63676
+ var this$$2 = $thiz.sc_StringOps$$anon$1__f_$this$2;
63677
+ var i$1 = $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index;
63678
+ var c$1 = (65535 & $uI(this$$2.charCodeAt(i$1)));
63679
+ $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index = ((1 + $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index) | 0);
63680
+ if (($thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index < $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$len)) {
63681
+ var this$$3 = $thiz.sc_StringOps$$anon$1__f_$this$2;
63682
+ var i$2 = $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index;
63683
+ var c$2 = (65535 & $uI(this$$3.charCodeAt(i$2)));
63684
+ var $$x2 = ((c$1 === 13) && (c$2 === 10))
63685
+ } else {
63686
+ var $$x2 = false
63687
+ };
63688
+ if ($$x2) {
63689
+ $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index = ((1 + $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index) | 0)
63690
+ };
63691
+ if ((!$thiz.sc_StringOps$$anon$1__f_stripped$1)) {
63692
+ end = $thiz.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index
63693
+ }
63694
+ };
63695
+ var this$6 = $thiz.sc_StringOps$$anon$1__f_$this$2;
63696
+ var endIndex = end;
63697
+ return $as_T(this$6.substring(start, endIndex))
63698
+ }
63699
+ /** @constructor */
63700
+ function $c_sc_StringOps$$anon$1(\u03b4this$2, stripped$1) {
63701
+ this.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$len = 0;
63702
+ this.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index = 0;
63703
+ this.sc_StringOps$$anon$1__f_$this$2 = null;
63704
+ this.sc_StringOps$$anon$1__f_stripped$1 = false;
63705
+ this.sc_StringOps$$anon$1__f_$this$2 = \u03b4this$2;
63706
+ this.sc_StringOps$$anon$1__f_stripped$1 = stripped$1;
63707
+ this.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$len = $uI(\u03b4this$2.length);
63708
+ this.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index = 0
63709
+ }
63710
+ $c_sc_StringOps$$anon$1.prototype = new $h_sc_AbstractIterator();
63711
+ $c_sc_StringOps$$anon$1.prototype.constructor = $c_sc_StringOps$$anon$1;
63712
+ /** @constructor */
63713
+ function $h_sc_StringOps$$anon$1() {
63714
+ /*<skip>*/
63715
+ }
63716
+ $h_sc_StringOps$$anon$1.prototype = $c_sc_StringOps$$anon$1.prototype;
63717
+ $c_sc_StringOps$$anon$1.prototype.hasNext__Z = (function() {
63718
+ return (this.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$index < this.sc_StringOps$$anon$1__f_scala$collection$StringOps$$anon$$len)
63719
+ });
63720
+ $c_sc_StringOps$$anon$1.prototype.next__T = (function() {
63721
+ 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))
63722
+ });
63723
+ $c_sc_StringOps$$anon$1.prototype.next__O = (function() {
63724
+ return this.next__T()
63725
+ });
63726
+ var $d_sc_StringOps$$anon$1 = new $TypeData().initClass({
63727
+ sc_StringOps$$anon$1: 0
63728
+ }, false, "scala.collection.StringOps$$anon$1", {
63729
+ sc_StringOps$$anon$1: 1,
63730
+ sc_AbstractIterator: 1,
63731
+ O: 1,
63732
+ sc_Iterator: 1,
63733
+ sc_IterableOnce: 1,
63734
+ sc_IterableOnceOps: 1
63735
+ });
63736
+ $c_sc_StringOps$$anon$1.prototype.$classData = $d_sc_StringOps$$anon$1;
63421
63737
  /** @constructor */
63422
63738
  function $c_sc_StringOps$StringIterator(s) {
63423
63739
  this.sc_StringOps$StringIterator__f_s = null;
@@ -74401,6 +74717,10 @@ $c_sc_AbstractIterable.prototype.copyToArray__O__I__I__I = (function(xs, start,
74401
74717
  $c_sc_AbstractIterable.prototype.addString__scm_StringBuilder__T__T__T__scm_StringBuilder = (function(b, start, sep, end) {
74402
74718
  return $f_sc_IterableOnceOps__addString__scm_StringBuilder__T__T__T__scm_StringBuilder(this, b, start, sep, end)
74403
74719
  });
74720
+ $c_sc_AbstractIterable.prototype.toList__sci_List = (function() {
74721
+ $m_sci_List$();
74722
+ return $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(this)
74723
+ });
74404
74724
  $c_sc_AbstractIterable.prototype.toMap__s_$less$colon$less__sci_Map = (function(ev) {
74405
74725
  return $m_sci_Map$().from__sc_IterableOnce__sci_Map(this)
74406
74726
  });
@@ -80171,6 +80491,10 @@ $c_sci_VectorMap$$anon$2.prototype.copyToArray__O__I__I__I = (function(xs, start
80171
80491
  $c_sci_VectorMap$$anon$2.prototype.addString__scm_StringBuilder__T__T__T__scm_StringBuilder = (function(b, start, sep, end) {
80172
80492
  return $f_sc_IterableOnceOps__addString__scm_StringBuilder__T__T__T__scm_StringBuilder(this, b, start, sep, end)
80173
80493
  });
80494
+ $c_sci_VectorMap$$anon$2.prototype.toList__sci_List = (function() {
80495
+ $m_sci_List$();
80496
+ return $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(this)
80497
+ });
80174
80498
  $c_sci_VectorMap$$anon$2.prototype.toMap__s_$less$colon$less__sci_Map = (function(ev) {
80175
80499
  return $m_sci_Map$().from__sc_IterableOnce__sci_Map(this)
80176
80500
  });
@@ -87389,6 +87713,10 @@ $c_sc_SeqView$Sorted.prototype.copyToArray__O__I__I__I = (function(xs, start, le
87389
87713
  $c_sc_SeqView$Sorted.prototype.addString__scm_StringBuilder__T__T__T__scm_StringBuilder = (function(b, start, sep, end) {
87390
87714
  return $f_sc_IterableOnceOps__addString__scm_StringBuilder__T__T__T__scm_StringBuilder(this, b, start, sep, end)
87391
87715
  });
87716
+ $c_sc_SeqView$Sorted.prototype.toList__sci_List = (function() {
87717
+ $m_sci_List$();
87718
+ return $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(this)
87719
+ });
87392
87720
  $c_sc_SeqView$Sorted.prototype.toMap__s_$less$colon$less__sci_Map = (function(ev) {
87393
87721
  return $m_sci_Map$().from__sc_IterableOnce__sci_Map(this)
87394
87722
  });
@@ -87563,6 +87891,10 @@ $c_sc_SeqView$Sorted$ReverseSorted.prototype.copyToArray__O__I__I__I = (function
87563
87891
  $c_sc_SeqView$Sorted$ReverseSorted.prototype.addString__scm_StringBuilder__T__T__T__scm_StringBuilder = (function(b, start, sep, end) {
87564
87892
  return $f_sc_IterableOnceOps__addString__scm_StringBuilder__T__T__T__scm_StringBuilder(this, b, start, sep, end)
87565
87893
  });
87894
+ $c_sc_SeqView$Sorted$ReverseSorted.prototype.toList__sci_List = (function() {
87895
+ $m_sci_List$();
87896
+ return $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(this)
87897
+ });
87566
87898
  $c_sc_SeqView$Sorted$ReverseSorted.prototype.toMap__s_$less$colon$less__sci_Map = (function(ev) {
87567
87899
  return $m_sci_Map$().from__sc_IterableOnce__sci_Map(this)
87568
87900
  });
@@ -97546,6 +97878,10 @@ $c_sjsr_WrappedVarArgs.prototype.copyToArray__O__I__I__I = (function(xs, start,
97546
97878
  $c_sjsr_WrappedVarArgs.prototype.addString__scm_StringBuilder__T__T__T__scm_StringBuilder = (function(b, start, sep, end) {
97547
97879
  return $f_sc_IterableOnceOps__addString__scm_StringBuilder__T__T__T__scm_StringBuilder(this, b, start, sep, end)
97548
97880
  });
97881
+ $c_sjsr_WrappedVarArgs.prototype.toList__sci_List = (function() {
97882
+ $m_sci_List$();
97883
+ return $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(this)
97884
+ });
97549
97885
  $c_sjsr_WrappedVarArgs.prototype.toMap__s_$less$colon$less__sci_Map = (function(ev) {
97550
97886
  return $m_sci_Map$().from__sc_IterableOnce__sci_Map(this)
97551
97887
  });
@@ -101834,6 +102170,9 @@ $c_sci_List.prototype.last__O = (function() {
101834
102170
  $c_sci_List.prototype.className__T = (function() {
101835
102171
  return "List"
101836
102172
  });
102173
+ $c_sci_List.prototype.toList__sci_List = (function() {
102174
+ return this
102175
+ });
101837
102176
  $c_sci_List.prototype.equals__O__Z = (function(o) {
101838
102177
  if ((o instanceof $c_sci_List)) {
101839
102178
  var x2 = $as_sci_List(o);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vinctus/oql",
3
- "version": "1.1.0-alpha.6",
3
+ "version": "1.1.0-pre.9",
4
4
  "description": "Object Query Language",
5
5
  "main": "index.js",
6
6
  "scripts": {