@vinctus/oql 1.1.7 → 1.1.8
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/main.js +779 -587
- package/main.js.map +3 -3
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -2330,25 +2330,25 @@ $c_Lcom_vinctus_oql_AbstractOQL$.prototype.writeQuery__Lcom_vinctus_oql_Abstract
|
|
|
2330
2330
|
if ((node instanceof $c_Lcom_vinctus_oql_AbstractOQL$ResultNode)) {
|
|
2331
2331
|
var x$1 = $as_Lcom_vinctus_oql_AbstractOQL$ResultNode(node);
|
|
2332
2332
|
var this$2 = $n(x$1);
|
|
2333
|
-
var
|
|
2333
|
+
var x420 = this$2.Lcom_vinctus_oql_AbstractOQL$ResultNode__f_query;
|
|
2334
2334
|
var this$3 = $n(x$1);
|
|
2335
|
-
var
|
|
2335
|
+
var x421 = this$3.Lcom_vinctus_oql_AbstractOQL$ResultNode__f_element;
|
|
2336
2336
|
var this$4 = $n(builder);
|
|
2337
|
-
$n($as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$4).toOption__s_Option()).get__O())).table__T__s_Option__V($n($n(
|
|
2338
|
-
var this$5 = $n($n(
|
|
2337
|
+
$n($as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$4).toOption__s_Option()).get__O())).table__T__s_Option__V($n($n(x420).Lcom_vinctus_oql_OQLQuery__f_entity).Lcom_vinctus_oql_Entity__f_table, $m_s_None$());
|
|
2338
|
+
var this$5 = $n($n(x420).Lcom_vinctus_oql_OQLQuery__f_select);
|
|
2339
2339
|
if ((!this$5.isEmpty__Z())) {
|
|
2340
2340
|
var arg1 = this$5.get__O();
|
|
2341
2341
|
var _$20 = $as_Lcom_vinctus_oql_OQLExpression(arg1);
|
|
2342
2342
|
var this$6 = $n(builder);
|
|
2343
|
-
$n($as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$6).toOption__s_Option()).get__O())).select__Lcom_vinctus_oql_OQLExpression__T__V(_$20, $n($n(
|
|
2343
|
+
$n($as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$6).toOption__s_Option()).get__O())).select__Lcom_vinctus_oql_OQLExpression__T__V(_$20, $n($n(x420).Lcom_vinctus_oql_OQLQuery__f_entity).Lcom_vinctus_oql_Entity__f_table)
|
|
2344
2344
|
};
|
|
2345
2345
|
if ($n(fixed).Lcom_vinctus_oql_Fixed__f_operative) {
|
|
2346
|
-
$n($n($as_sc_IterableOps($n($n($n(
|
|
2346
|
+
$n($n($as_sc_IterableOps($n($n($n(x420).Lcom_vinctus_oql_OQLQuery__f_entity).fixing__sci_Map()).apply__O__O($n(fixed).Lcom_vinctus_oql_Fixed__f_entity))).withFilter__F1__sc_WithFilter(new $c_sjsr_AnonFunction1(((x$1$1) => {
|
|
2347
2347
|
var x$1$2 = $as_T2(x$1$1);
|
|
2348
2348
|
return ((x$1$2 !== null) && ($as_Lcom_vinctus_oql_AttributeOQLExpression($n(x$1$2).T2__f__1), $as_sci_List($n(x$1$2).T2__f__2), true))
|
|
2349
2349
|
})))).foreach__F1__V(new $c_sjsr_AnonFunction1(((x$1$2$1) => {
|
|
2350
2350
|
var x$1$3 = $as_T2(x$1$2$1);
|
|
2351
|
-
|
|
2351
|
+
matchResult27: {
|
|
2352
2352
|
if ((x$1$3 !== null)) {
|
|
2353
2353
|
var attr$1 = $as_Lcom_vinctus_oql_AttributeOQLExpression($n(x$1$3).T2__f__1);
|
|
2354
2354
|
var nullables$1 = $as_sci_List($n(x$1$3).T2__f__2);
|
|
@@ -2373,85 +2373,100 @@ $c_Lcom_vinctus_oql_AbstractOQL$.prototype.writeQuery__Lcom_vinctus_oql_Abstract
|
|
|
2373
2373
|
};
|
|
2374
2374
|
var $$x1 = h
|
|
2375
2375
|
};
|
|
2376
|
-
var this$
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2376
|
+
var this$14 = $n($$x1);
|
|
2377
|
+
matchResult26: {
|
|
2378
|
+
var $$x2;
|
|
2379
|
+
var x302 = $n(fixed).Lcom_vinctus_oql_Fixed__f_at;
|
|
2380
|
+
if ($isInt(x302)) {
|
|
2381
|
+
var n$2 = $uI(x302);
|
|
2382
|
+
var $$x2 = new $c_Lcom_vinctus_oql_IntegerOQLExpression(n$2);
|
|
2383
|
+
break matchResult26
|
|
2384
|
+
};
|
|
2385
|
+
if (((typeof x302) === "string")) {
|
|
2386
|
+
var s = $as_T(x302);
|
|
2387
|
+
var $$x2 = new $c_Lcom_vinctus_oql_StringOQLExpression(s);
|
|
2388
|
+
break matchResult26
|
|
2389
|
+
};
|
|
2390
|
+
$m_s_sys_package$().error__T__E((("no type match for creating TypedOQLExpression for fixed.at: '" + x302) + "'"))
|
|
2391
|
+
};
|
|
2392
|
+
var expr = $as_Lcom_vinctus_oql_OQLExpression($$x2);
|
|
2393
|
+
var this$11 = $n($n($as_Lcom_vinctus_oql_Attribute($n($n($n(fixed).Lcom_vinctus_oql_Fixed__f_entity).pk__s_Option()).get__O())).Lcom_vinctus_oql_Attribute__f_typ);
|
|
2394
|
+
var t$1 = $as_Lcom_vinctus_oql_Datatype(this$11);
|
|
2395
|
+
var right = new $c_Lcom_vinctus_oql_TypedOQLExpression(expr, t$1);
|
|
2381
2396
|
var elem = new $c_Lcom_vinctus_oql_InfixOQLExpression(attr$1, "=", right);
|
|
2382
|
-
var cond = this.orList__sci_List__Lcom_vinctus_oql_OQLExpression($as_sci_List($f_sc_StrictOptimizedSeqOps__appended__O__O(this$
|
|
2383
|
-
var this$
|
|
2384
|
-
$n($as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$
|
|
2385
|
-
break
|
|
2397
|
+
var cond = this.orList__sci_List__Lcom_vinctus_oql_OQLExpression($as_sci_List($f_sc_StrictOptimizedSeqOps__appended__O__O(this$14, elem)));
|
|
2398
|
+
var this$15 = $n(builder);
|
|
2399
|
+
$n($as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$15).toOption__s_Option()).get__O())).select__Lcom_vinctus_oql_OQLExpression__T__V(cond, $n($n(x420).Lcom_vinctus_oql_OQLQuery__f_entity).Lcom_vinctus_oql_Entity__f_table);
|
|
2400
|
+
break matchResult27
|
|
2386
2401
|
};
|
|
2387
2402
|
throw new $c_s_MatchError(x$1$3)
|
|
2388
2403
|
}
|
|
2389
2404
|
})))
|
|
2390
2405
|
};
|
|
2391
|
-
var this$
|
|
2392
|
-
if ((!this$14.isEmpty__Z())) {
|
|
2393
|
-
var arg1$3 = this$14.get__O();
|
|
2394
|
-
var _$21 = $as_sci_List(arg1$3);
|
|
2395
|
-
var this$15 = $n(builder);
|
|
2396
|
-
$n($as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$15).toOption__s_Option()).get__O())).group__sci_List__T__V(_$21, $n($n(x417).Lcom_vinctus_oql_OQLQuery__f_entity).Lcom_vinctus_oql_Entity__f_table)
|
|
2397
|
-
};
|
|
2398
|
-
var this$16 = $n($n(x417).Lcom_vinctus_oql_OQLQuery__f_order);
|
|
2406
|
+
var this$16 = $n($n(x420).Lcom_vinctus_oql_OQLQuery__f_group);
|
|
2399
2407
|
if ((!this$16.isEmpty__Z())) {
|
|
2400
|
-
var arg1$
|
|
2401
|
-
var _$
|
|
2408
|
+
var arg1$3 = this$16.get__O();
|
|
2409
|
+
var _$21 = $as_sci_List(arg1$3);
|
|
2402
2410
|
var this$17 = $n(builder);
|
|
2403
|
-
$n($as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$17).toOption__s_Option()).get__O())).
|
|
2411
|
+
$n($as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$17).toOption__s_Option()).get__O())).group__sci_List__T__V(_$21, $n($n(x420).Lcom_vinctus_oql_OQLQuery__f_entity).Lcom_vinctus_oql_Entity__f_table)
|
|
2404
2412
|
};
|
|
2405
|
-
var this$
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
var
|
|
2410
|
-
|
|
2411
|
-
$n(\u03b41$).limit__I__V(n$2)
|
|
2413
|
+
var this$18 = $n($n(x420).Lcom_vinctus_oql_OQLQuery__f_order);
|
|
2414
|
+
if ((!this$18.isEmpty__Z())) {
|
|
2415
|
+
var arg1$4 = this$18.get__O();
|
|
2416
|
+
var _$22 = $as_sci_List(arg1$4);
|
|
2417
|
+
var this$19 = $n(builder);
|
|
2418
|
+
$n($as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$19).toOption__s_Option()).get__O())).order__sci_List__T__V(_$22, $n($n(x420).Lcom_vinctus_oql_OQLQuery__f_entity).Lcom_vinctus_oql_Entity__f_table)
|
|
2412
2419
|
};
|
|
2413
|
-
var this$21 = $n($n(
|
|
2420
|
+
var this$21 = $n($n(x420).Lcom_vinctus_oql_OQLQuery__f_limit);
|
|
2414
2421
|
var this$20 = $n(builder);
|
|
2415
|
-
var \
|
|
2422
|
+
var \u03b41$ = $as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$20).toOption__s_Option()).get__O());
|
|
2416
2423
|
if ((!this$21.isEmpty__Z())) {
|
|
2417
|
-
var arg1$
|
|
2418
|
-
var n$3 = $uI(arg1$
|
|
2419
|
-
$n(\
|
|
2424
|
+
var arg1$5 = this$21.get__O();
|
|
2425
|
+
var n$3 = $uI(arg1$5);
|
|
2426
|
+
$n(\u03b41$).limit__I__V(n$3)
|
|
2420
2427
|
};
|
|
2421
|
-
this
|
|
2428
|
+
var this$23 = $n($n(x420).Lcom_vinctus_oql_OQLQuery__f_offset);
|
|
2422
2429
|
var this$22 = $n(builder);
|
|
2423
|
-
|
|
2430
|
+
var \u03b42$ = $as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$22).toOption__s_Option()).get__O());
|
|
2431
|
+
if ((!this$23.isEmpty__Z())) {
|
|
2432
|
+
var arg1$6 = this$23.get__O();
|
|
2433
|
+
var n$4 = $uI(arg1$6);
|
|
2434
|
+
$n(\u03b42$).offset__I__V(n$4)
|
|
2435
|
+
};
|
|
2436
|
+
this.writeQuery__Lcom_vinctus_oql_AbstractOQL$Node__T__s_util_Either__T__Lcom_vinctus_oql_SQLDataSource__Lcom_vinctus_oql_Fixed__Lcom_vinctus_oql_DataModel__Lcom_vinctus_oql_SQLQueryBuilder(x421, $n($n(x420).Lcom_vinctus_oql_OQLQuery__f_entity).Lcom_vinctus_oql_Entity__f_table, builder, oql, ds, fixed, model);
|
|
2437
|
+
var this$24 = $n(builder);
|
|
2438
|
+
return $as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$24).toOption__s_Option()).get__O())
|
|
2424
2439
|
};
|
|
2425
2440
|
if ((node instanceof $c_Lcom_vinctus_oql_AbstractOQL$ValueNode)) {
|
|
2426
|
-
var
|
|
2427
|
-
var this$
|
|
2428
|
-
var
|
|
2429
|
-
|
|
2441
|
+
var x415 = $as_Lcom_vinctus_oql_AbstractOQL$ValueNode(node);
|
|
2442
|
+
var this$26 = $n(x415);
|
|
2443
|
+
var x417 = this$26.Lcom_vinctus_oql_AbstractOQL$ValueNode__f_value;
|
|
2444
|
+
matchResult28: {
|
|
2430
2445
|
var \u03b43$___1;
|
|
2431
2446
|
var \u03b43$___2;
|
|
2432
|
-
var this$
|
|
2433
|
-
var
|
|
2434
|
-
if ((
|
|
2435
|
-
var idx = $uI($n(
|
|
2436
|
-
var typed = $uZ($n(
|
|
2447
|
+
var this$27 = $n(builder);
|
|
2448
|
+
var x308 = $n($as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$27).toOption__s_Option()).get__O())).projectValue__Lcom_vinctus_oql_OQLExpression__T__T2(x417, table);
|
|
2449
|
+
if ((x308 !== null)) {
|
|
2450
|
+
var idx = $uI($n(x308).T2__f__1);
|
|
2451
|
+
var typed = $uZ($n(x308).T2__f__2);
|
|
2437
2452
|
var \u03b43$___1 = idx;
|
|
2438
2453
|
var \u03b43$___2 = typed;
|
|
2439
|
-
break
|
|
2454
|
+
break matchResult28
|
|
2440
2455
|
};
|
|
2441
|
-
throw new $c_s_MatchError(
|
|
2456
|
+
throw new $c_s_MatchError(x308)
|
|
2442
2457
|
};
|
|
2443
2458
|
var idx$2 = $uI(\u03b43$___1);
|
|
2444
2459
|
var typed$2 = $uZ(\u03b43$___2);
|
|
2445
|
-
$n(
|
|
2446
|
-
$n(
|
|
2447
|
-
var this$
|
|
2448
|
-
return $as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$
|
|
2460
|
+
$n(x415).Lcom_vinctus_oql_AbstractOQL$ValueNode__f_idx = idx$2;
|
|
2461
|
+
$n(x415).Lcom_vinctus_oql_AbstractOQL$ValueNode__f_typed = typed$2;
|
|
2462
|
+
var this$29 = $n(builder);
|
|
2463
|
+
return $as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$29).toOption__s_Option()).get__O())
|
|
2449
2464
|
};
|
|
2450
2465
|
if ((node instanceof $c_Lcom_vinctus_oql_AbstractOQL$ObjectNode)) {
|
|
2451
2466
|
var x$1$4 = $as_Lcom_vinctus_oql_AbstractOQL$ObjectNode(node);
|
|
2452
|
-
var this$
|
|
2453
|
-
var
|
|
2454
|
-
$n(
|
|
2467
|
+
var this$31 = $n(x$1$4);
|
|
2468
|
+
var x414 = this$31.Lcom_vinctus_oql_AbstractOQL$ObjectNode__f_props;
|
|
2469
|
+
$n(x414).foreach__F1__V(new $c_sjsr_AnonFunction1(((x$1$3$1) => {
|
|
2455
2470
|
var x$1$5 = $as_T2(x$1$3$1);
|
|
2456
2471
|
if ((x$1$5 !== null)) {
|
|
2457
2472
|
var e = $as_Lcom_vinctus_oql_AbstractOQL$Node($n(x$1$5).T2__f__2);
|
|
@@ -2459,298 +2474,298 @@ $c_Lcom_vinctus_oql_AbstractOQL$.prototype.writeQuery__Lcom_vinctus_oql_Abstract
|
|
|
2459
2474
|
};
|
|
2460
2475
|
throw new $c_s_MatchError(x$1$5)
|
|
2461
2476
|
})));
|
|
2462
|
-
var this$
|
|
2463
|
-
return $as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$
|
|
2477
|
+
var this$32 = $n(builder);
|
|
2478
|
+
return $as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$32).toOption__s_Option()).get__O())
|
|
2464
2479
|
};
|
|
2465
2480
|
if ((node instanceof $c_Lcom_vinctus_oql_AbstractOQL$ManyToOneNode)) {
|
|
2466
|
-
var
|
|
2467
|
-
var this$
|
|
2468
|
-
var
|
|
2469
|
-
var this$
|
|
2470
|
-
var
|
|
2471
|
-
if ((
|
|
2472
|
-
var this$
|
|
2473
|
-
var this$
|
|
2474
|
-
var
|
|
2475
|
-
var this$
|
|
2476
|
-
var
|
|
2477
|
-
var this$
|
|
2478
|
-
var this$
|
|
2479
|
-
var this$
|
|
2480
|
-
var this$
|
|
2481
|
-
var this$
|
|
2482
|
-
var this$
|
|
2483
|
-
if ((
|
|
2484
|
-
var this$
|
|
2485
|
-
var
|
|
2486
|
-
var this$
|
|
2487
|
-
var
|
|
2488
|
-
var this$
|
|
2489
|
-
var this$
|
|
2490
|
-
var this$
|
|
2491
|
-
var
|
|
2492
|
-
if ((
|
|
2493
|
-
var x$1$6 = $as_Lcom_vinctus_oql_ManyToOneType(
|
|
2494
|
-
var this$
|
|
2495
|
-
var
|
|
2496
|
-
var alias = ((table + "$") +
|
|
2497
|
-
if ($n(
|
|
2498
|
-
$n(
|
|
2481
|
+
var x389 = $as_Lcom_vinctus_oql_AbstractOQL$ManyToOneNode(node);
|
|
2482
|
+
var this$34 = $n(x389);
|
|
2483
|
+
var x391 = this$34.Lcom_vinctus_oql_AbstractOQL$ManyToOneNode__f_query;
|
|
2484
|
+
var this$35 = $n(x389);
|
|
2485
|
+
var x392 = this$35.Lcom_vinctus_oql_AbstractOQL$ManyToOneNode__f_element;
|
|
2486
|
+
if ((x391 !== null)) {
|
|
2487
|
+
var this$37 = $n(x391);
|
|
2488
|
+
var this$38 = $n(x391);
|
|
2489
|
+
var x395 = this$38.Lcom_vinctus_oql_OQLQuery__f_entity;
|
|
2490
|
+
var this$39 = $n(x391);
|
|
2491
|
+
var x396 = this$39.Lcom_vinctus_oql_OQLQuery__f_attr;
|
|
2492
|
+
var this$40 = $n(x391);
|
|
2493
|
+
var this$41 = $n(x391);
|
|
2494
|
+
var this$42 = $n(x391);
|
|
2495
|
+
var this$43 = $n(x391);
|
|
2496
|
+
var this$44 = $n(x391);
|
|
2497
|
+
var this$45 = $n(x391);
|
|
2498
|
+
if ((x396 !== null)) {
|
|
2499
|
+
var this$47 = $n(x396);
|
|
2500
|
+
var x404 = this$47.Lcom_vinctus_oql_Attribute__f_name;
|
|
2501
|
+
var this$48 = $n(x396);
|
|
2502
|
+
var x405 = this$48.Lcom_vinctus_oql_Attribute__f_column;
|
|
2503
|
+
var this$49 = $n(x396);
|
|
2504
|
+
var this$50 = $n(x396);
|
|
2505
|
+
var this$51 = $n(x396);
|
|
2506
|
+
var x408 = this$51.Lcom_vinctus_oql_Attribute__f_typ;
|
|
2507
|
+
if ((x408 instanceof $c_Lcom_vinctus_oql_ManyToOneType)) {
|
|
2508
|
+
var x$1$6 = $as_Lcom_vinctus_oql_ManyToOneType(x408);
|
|
2509
|
+
var this$53 = $n(x$1$6);
|
|
2510
|
+
var x411 = this$53.Lcom_vinctus_oql_ManyToOneType__f_entity;
|
|
2511
|
+
var alias = ((table + "$") + x404);
|
|
2512
|
+
if ($n(x396).Lcom_vinctus_oql_Attribute__f_required) {
|
|
2513
|
+
$n(x389).Lcom_vinctus_oql_AbstractOQL$ManyToOneNode__f_idx = $m_s_None$()
|
|
2499
2514
|
} else {
|
|
2500
2515
|
$n($m_s_package$().s_package$__f_List);
|
|
2501
|
-
var elems = $m_sr_ScalaRunTime$().wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_vinctus_oql_Ident.getArrayOf().constr)([new $c_Lcom_vinctus_oql_Ident(
|
|
2516
|
+
var elems = $m_sr_ScalaRunTime$().wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_vinctus_oql_Ident.getArrayOf().constr)([new $c_Lcom_vinctus_oql_Ident(x404, null)]));
|
|
2502
2517
|
var ids = $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems);
|
|
2503
2518
|
$n($m_s_package$().s_package$__f_List);
|
|
2504
|
-
var elems$1 = $m_sr_ScalaRunTime$().wrapRefArray__AO__sci_ArraySeq(new ($d_T2.getArrayOf().constr)([new $c_T2(
|
|
2519
|
+
var elems$1 = $m_sr_ScalaRunTime$().wrapRefArray__AO__sci_ArraySeq(new ($d_T2.getArrayOf().constr)([new $c_T2(x395, x396)]));
|
|
2505
2520
|
var dmrefs = $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$1);
|
|
2506
2521
|
var mtoAttr = new $c_Lcom_vinctus_oql_AttributeOQLExpression(ids, dmrefs);
|
|
2507
|
-
var this$
|
|
2508
|
-
mtoAttr.Lcom_vinctus_oql_OQLExpression__f_typ = $as_Lcom_vinctus_oql_Datatype(this$
|
|
2509
|
-
var $$
|
|
2510
|
-
var this$
|
|
2511
|
-
var value = $n($n($as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$
|
|
2512
|
-
$$
|
|
2522
|
+
var this$59 = $n($n($as_Lcom_vinctus_oql_Attribute($n($n(x411).pk__s_Option()).get__O())).Lcom_vinctus_oql_Attribute__f_typ);
|
|
2523
|
+
mtoAttr.Lcom_vinctus_oql_OQLExpression__f_typ = $as_Lcom_vinctus_oql_Datatype(this$59);
|
|
2524
|
+
var $$x3 = $n(x389);
|
|
2525
|
+
var this$60 = $n(builder);
|
|
2526
|
+
var value = $n($n($as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$60).toOption__s_Option()).get__O())).projectValue__Lcom_vinctus_oql_OQLExpression__T__T2(mtoAttr, table)).T2__f__1;
|
|
2527
|
+
$$x3.Lcom_vinctus_oql_AbstractOQL$ManyToOneNode__f_idx = new $c_s_Some(value)
|
|
2513
2528
|
};
|
|
2514
|
-
var this$
|
|
2515
|
-
$n($as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$
|
|
2516
|
-
this.writeQuery__Lcom_vinctus_oql_AbstractOQL$Node__T__s_util_Either__T__Lcom_vinctus_oql_SQLDataSource__Lcom_vinctus_oql_Fixed__Lcom_vinctus_oql_DataModel__Lcom_vinctus_oql_SQLQueryBuilder(
|
|
2517
|
-
var this$
|
|
2518
|
-
return $as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$
|
|
2529
|
+
var this$62 = $n(builder);
|
|
2530
|
+
$n($as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$62).toOption__s_Option()).get__O())).leftJoin__T__T__T__T__T__Lcom_vinctus_oql_SQLQueryBuilder(table, x405, $n(x395).Lcom_vinctus_oql_Entity__f_table, alias, $n($as_Lcom_vinctus_oql_Attribute($n($n(x395).pk__s_Option()).get__O())).Lcom_vinctus_oql_Attribute__f_column);
|
|
2531
|
+
this.writeQuery__Lcom_vinctus_oql_AbstractOQL$Node__T__s_util_Either__T__Lcom_vinctus_oql_SQLDataSource__Lcom_vinctus_oql_Fixed__Lcom_vinctus_oql_DataModel__Lcom_vinctus_oql_SQLQueryBuilder(x392, alias, builder, oql, ds, fixed, model);
|
|
2532
|
+
var this$63 = $n(builder);
|
|
2533
|
+
return $as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$63).toOption__s_Option()).get__O())
|
|
2519
2534
|
}
|
|
2520
2535
|
}
|
|
2521
2536
|
}
|
|
2522
2537
|
};
|
|
2523
2538
|
if ((node instanceof $c_Lcom_vinctus_oql_AbstractOQL$ManyToManyNode)) {
|
|
2524
|
-
var
|
|
2525
|
-
var this$
|
|
2526
|
-
var
|
|
2527
|
-
var this$
|
|
2528
|
-
var
|
|
2529
|
-
if ((
|
|
2530
|
-
var this$
|
|
2531
|
-
var this$
|
|
2532
|
-
var
|
|
2533
|
-
var this$
|
|
2534
|
-
var
|
|
2535
|
-
var this$
|
|
2536
|
-
var this$
|
|
2537
|
-
var
|
|
2538
|
-
var this$
|
|
2539
|
-
var
|
|
2540
|
-
var this$
|
|
2541
|
-
var
|
|
2542
|
-
var this$
|
|
2543
|
-
var
|
|
2544
|
-
var this$
|
|
2545
|
-
var
|
|
2546
|
-
if ((
|
|
2547
|
-
var this$
|
|
2548
|
-
var
|
|
2549
|
-
var this$
|
|
2550
|
-
var this$
|
|
2551
|
-
var this$
|
|
2552
|
-
var this$
|
|
2553
|
-
var
|
|
2554
|
-
if ((
|
|
2555
|
-
var x$1$7 = $as_Lcom_vinctus_oql_ManyToManyType(
|
|
2556
|
-
var this$82 = $n(x$1$7);
|
|
2557
|
-
var x382 = this$82.Lcom_vinctus_oql_ManyToManyType__f_entity;
|
|
2558
|
-
var this$83 = $n(x$1$7);
|
|
2559
|
-
var x383 = this$83.Lcom_vinctus_oql_ManyToManyType__f_link;
|
|
2539
|
+
var x363 = $as_Lcom_vinctus_oql_AbstractOQL$ManyToManyNode(node);
|
|
2540
|
+
var this$65 = $n(x363);
|
|
2541
|
+
var x365 = this$65.Lcom_vinctus_oql_AbstractOQL$ManyToManyNode__f_query;
|
|
2542
|
+
var this$66 = $n(x363);
|
|
2543
|
+
var x366 = this$66.Lcom_vinctus_oql_AbstractOQL$ManyToManyNode__f_element;
|
|
2544
|
+
if ((x365 !== null)) {
|
|
2545
|
+
var this$68 = $n(x365);
|
|
2546
|
+
var this$69 = $n(x365);
|
|
2547
|
+
var x369 = this$69.Lcom_vinctus_oql_OQLQuery__f_entity;
|
|
2548
|
+
var this$70 = $n(x365);
|
|
2549
|
+
var x370 = this$70.Lcom_vinctus_oql_OQLQuery__f_attr;
|
|
2550
|
+
var this$71 = $n(x365);
|
|
2551
|
+
var this$72 = $n(x365);
|
|
2552
|
+
var x372 = this$72.Lcom_vinctus_oql_OQLQuery__f_select;
|
|
2553
|
+
var this$73 = $n(x365);
|
|
2554
|
+
var x373 = this$73.Lcom_vinctus_oql_OQLQuery__f_group;
|
|
2555
|
+
var this$74 = $n(x365);
|
|
2556
|
+
var x374 = this$74.Lcom_vinctus_oql_OQLQuery__f_order;
|
|
2557
|
+
var this$75 = $n(x365);
|
|
2558
|
+
var x375 = this$75.Lcom_vinctus_oql_OQLQuery__f_limit;
|
|
2559
|
+
var this$76 = $n(x365);
|
|
2560
|
+
var x376 = this$76.Lcom_vinctus_oql_OQLQuery__f_offset;
|
|
2561
|
+
if ((x370 !== null)) {
|
|
2562
|
+
var this$78 = $n(x370);
|
|
2563
|
+
var x378 = this$78.Lcom_vinctus_oql_Attribute__f_name;
|
|
2564
|
+
var this$79 = $n(x370);
|
|
2565
|
+
var this$80 = $n(x370);
|
|
2566
|
+
var this$81 = $n(x370);
|
|
2567
|
+
var this$82 = $n(x370);
|
|
2568
|
+
var x382 = this$82.Lcom_vinctus_oql_Attribute__f_typ;
|
|
2569
|
+
if ((x382 instanceof $c_Lcom_vinctus_oql_ManyToManyType)) {
|
|
2570
|
+
var x$1$7 = $as_Lcom_vinctus_oql_ManyToManyType(x382);
|
|
2560
2571
|
var this$84 = $n(x$1$7);
|
|
2561
|
-
var
|
|
2572
|
+
var x385 = this$84.Lcom_vinctus_oql_ManyToManyType__f_entity;
|
|
2562
2573
|
var this$85 = $n(x$1$7);
|
|
2563
|
-
var
|
|
2564
|
-
var
|
|
2574
|
+
var x386 = this$85.Lcom_vinctus_oql_ManyToManyType__f_link;
|
|
2575
|
+
var this$86 = $n(x$1$7);
|
|
2576
|
+
var x387 = this$86.Lcom_vinctus_oql_ManyToManyType__f_self;
|
|
2577
|
+
var this$87 = $n(x$1$7);
|
|
2578
|
+
var x388 = this$87.Lcom_vinctus_oql_ManyToManyType__f_target;
|
|
2579
|
+
var alias$2 = ((table + "$") + x378);
|
|
2565
2580
|
if ($n(builder).isLeft__Z()) {
|
|
2566
|
-
var this$
|
|
2567
|
-
var subquery = new $c_Lcom_vinctus_oql_SQLQueryBuilder(oql, ds, fixed, model, (($n($as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$
|
|
2581
|
+
var this$88 = $n(builder);
|
|
2582
|
+
var subquery = new $c_Lcom_vinctus_oql_SQLQueryBuilder(oql, ds, fixed, model, (($n($as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$88).toOption__s_Option()).get__O())).Lcom_vinctus_oql_SQLQueryBuilder__f_margin + ($m_Lcom_vinctus_oql_SQLQueryBuilder$().Lcom_vinctus_oql_SQLQueryBuilder$__f_INDENT << 1)) | 0), false)
|
|
2568
2583
|
} else {
|
|
2569
2584
|
var subquery = new $c_Lcom_vinctus_oql_SQLQueryBuilder(oql, ds, fixed, model, $uI($n($n(builder).toOption__s_Option()).get__O()), true)
|
|
2570
2585
|
};
|
|
2571
|
-
var joinAlias = ((alias$2 + "$") + $n(
|
|
2586
|
+
var joinAlias = ((alias$2 + "$") + $n(x388).Lcom_vinctus_oql_Attribute__f_name);
|
|
2572
2587
|
if ($n(builder).isLeft__Z()) {
|
|
2573
|
-
var $$
|
|
2574
|
-
var this$
|
|
2575
|
-
$$
|
|
2588
|
+
var $$x4 = $n(x363);
|
|
2589
|
+
var this$89 = $n(builder);
|
|
2590
|
+
$$x4.Lcom_vinctus_oql_AbstractOQL$ManyToManyNode__f_idx = $n($as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$89).toOption__s_Option()).get__O())).projectQuery__Lcom_vinctus_oql_SQLQueryBuilder__I(subquery)
|
|
2576
2591
|
};
|
|
2577
|
-
$n(subquery).table__T__s_Option__V($n(
|
|
2578
|
-
this.writeQuery__Lcom_vinctus_oql_AbstractOQL$Node__T__s_util_Either__T__Lcom_vinctus_oql_SQLDataSource__Lcom_vinctus_oql_Fixed__Lcom_vinctus_oql_DataModel__Lcom_vinctus_oql_SQLQueryBuilder(
|
|
2579
|
-
var $$
|
|
2580
|
-
var s = (((((((("\"" + alias$2) + "\".\"") + $n(
|
|
2581
|
-
$n($$
|
|
2582
|
-
var this$
|
|
2583
|
-
if ((!this$
|
|
2584
|
-
var arg1$7 = this$
|
|
2592
|
+
$n(subquery).table__T__s_Option__V($n(x386).Lcom_vinctus_oql_Entity__f_table, new $c_s_Some(alias$2));
|
|
2593
|
+
this.writeQuery__Lcom_vinctus_oql_AbstractOQL$Node__T__s_util_Either__T__Lcom_vinctus_oql_SQLDataSource__Lcom_vinctus_oql_Fixed__Lcom_vinctus_oql_DataModel__Lcom_vinctus_oql_SQLQueryBuilder(x366, joinAlias, ($n($m_s_package$().s_package$__f_Left), new $c_s_util_Left(subquery)), oql, ds, fixed, model);
|
|
2594
|
+
var $$x5 = $n(subquery);
|
|
2595
|
+
var s$1 = (((((((("\"" + alias$2) + "\".\"") + $n(x387).Lcom_vinctus_oql_Attribute__f_column) + "\" = \"") + table) + "\".\"") + $n($as_Lcom_vinctus_oql_Attribute($n($n(x369).pk__s_Option()).get__O())).Lcom_vinctus_oql_Attribute__f_column) + "\"");
|
|
2596
|
+
$n($$x5).select__Lcom_vinctus_oql_OQLExpression__T__V(new $c_Lcom_vinctus_oql_RawOQLExpression(s$1), null);
|
|
2597
|
+
var this$93 = $n(x372);
|
|
2598
|
+
if ((!this$93.isEmpty__Z())) {
|
|
2599
|
+
var arg1$7 = this$93.get__O();
|
|
2585
2600
|
var _$23 = $as_Lcom_vinctus_oql_OQLExpression(arg1$7);
|
|
2586
2601
|
$n(subquery).select__Lcom_vinctus_oql_OQLExpression__T__V(_$23, joinAlias)
|
|
2587
2602
|
};
|
|
2588
|
-
var this$
|
|
2589
|
-
if ((!this$
|
|
2590
|
-
var arg1$8 = this$
|
|
2603
|
+
var this$94 = $n(x373);
|
|
2604
|
+
if ((!this$94.isEmpty__Z())) {
|
|
2605
|
+
var arg1$8 = this$94.get__O();
|
|
2591
2606
|
var _$24 = $as_sci_List(arg1$8);
|
|
2592
2607
|
$n(subquery).group__sci_List__T__V(_$24, joinAlias)
|
|
2593
2608
|
};
|
|
2594
|
-
var this$
|
|
2595
|
-
if ((!this$
|
|
2596
|
-
var arg1$9 = this$
|
|
2609
|
+
var this$95 = $n(x374);
|
|
2610
|
+
if ((!this$95.isEmpty__Z())) {
|
|
2611
|
+
var arg1$9 = this$95.get__O();
|
|
2597
2612
|
var _$25 = $as_sci_List(arg1$9);
|
|
2598
2613
|
$n(subquery).order__sci_List__T__V(_$25, joinAlias)
|
|
2599
2614
|
};
|
|
2600
|
-
var this$
|
|
2601
|
-
if ((!this$
|
|
2602
|
-
var arg1$10 = this$
|
|
2603
|
-
var n$
|
|
2604
|
-
$n(subquery).limit__I__V(n$
|
|
2615
|
+
var this$96 = $n(x375);
|
|
2616
|
+
if ((!this$96.isEmpty__Z())) {
|
|
2617
|
+
var arg1$10 = this$96.get__O();
|
|
2618
|
+
var n$5 = $uI(arg1$10);
|
|
2619
|
+
$n(subquery).limit__I__V(n$5)
|
|
2605
2620
|
};
|
|
2606
|
-
var this$
|
|
2607
|
-
if ((!this$
|
|
2608
|
-
var arg1$11 = this$
|
|
2609
|
-
var n$
|
|
2610
|
-
$n(subquery).offset__I__V(n$
|
|
2621
|
+
var this$97 = $n(x376);
|
|
2622
|
+
if ((!this$97.isEmpty__Z())) {
|
|
2623
|
+
var arg1$11 = this$97.get__O();
|
|
2624
|
+
var n$6 = $uI(arg1$11);
|
|
2625
|
+
$n(subquery).offset__I__V(n$6)
|
|
2611
2626
|
};
|
|
2612
|
-
$n(subquery).innerJoin__T__T__T__T__T__Lcom_vinctus_oql_SQLQueryBuilder(alias$2, $n(
|
|
2627
|
+
$n(subquery).innerJoin__T__T__T__T__T__Lcom_vinctus_oql_SQLQueryBuilder(alias$2, $n(x388).Lcom_vinctus_oql_Attribute__f_column, $n(x385).Lcom_vinctus_oql_Entity__f_table, joinAlias, $n($as_Lcom_vinctus_oql_Attribute($n($n(x385).pk__s_Option()).get__O())).Lcom_vinctus_oql_Attribute__f_column);
|
|
2613
2628
|
return subquery
|
|
2614
2629
|
}
|
|
2615
2630
|
}
|
|
2616
2631
|
}
|
|
2617
2632
|
};
|
|
2618
2633
|
if ((node instanceof $c_Lcom_vinctus_oql_AbstractOQL$OneToOneNode)) {
|
|
2619
|
-
var
|
|
2620
|
-
var this$
|
|
2621
|
-
var
|
|
2622
|
-
var this$
|
|
2623
|
-
var
|
|
2624
|
-
if ((
|
|
2625
|
-
var this$
|
|
2626
|
-
var this$
|
|
2627
|
-
var
|
|
2628
|
-
var this$
|
|
2629
|
-
var
|
|
2630
|
-
var this$
|
|
2631
|
-
var this$
|
|
2632
|
-
var this$
|
|
2633
|
-
var this$
|
|
2634
|
-
var this$
|
|
2635
|
-
var this$
|
|
2636
|
-
if ((
|
|
2637
|
-
var this$
|
|
2638
|
-
var
|
|
2639
|
-
var this$
|
|
2640
|
-
var this$
|
|
2641
|
-
var this$
|
|
2642
|
-
var this$
|
|
2643
|
-
var
|
|
2644
|
-
if ((
|
|
2645
|
-
var x$1$8 = $as_Lcom_vinctus_oql_OneToOneType(
|
|
2646
|
-
var this$
|
|
2647
|
-
var
|
|
2648
|
-
var this$
|
|
2649
|
-
var
|
|
2650
|
-
var alias$3 = ((table + "$") +
|
|
2634
|
+
var x339 = $as_Lcom_vinctus_oql_AbstractOQL$OneToOneNode(node);
|
|
2635
|
+
var this$99 = $n(x339);
|
|
2636
|
+
var x341 = this$99.Lcom_vinctus_oql_AbstractOQL$OneToOneNode__f_query;
|
|
2637
|
+
var this$100 = $n(x339);
|
|
2638
|
+
var x342 = this$100.Lcom_vinctus_oql_AbstractOQL$OneToOneNode__f_element;
|
|
2639
|
+
if ((x341 !== null)) {
|
|
2640
|
+
var this$102 = $n(x341);
|
|
2641
|
+
var this$103 = $n(x341);
|
|
2642
|
+
var x345 = this$103.Lcom_vinctus_oql_OQLQuery__f_entity;
|
|
2643
|
+
var this$104 = $n(x341);
|
|
2644
|
+
var x346 = this$104.Lcom_vinctus_oql_OQLQuery__f_attr;
|
|
2645
|
+
var this$105 = $n(x341);
|
|
2646
|
+
var this$106 = $n(x341);
|
|
2647
|
+
var this$107 = $n(x341);
|
|
2648
|
+
var this$108 = $n(x341);
|
|
2649
|
+
var this$109 = $n(x341);
|
|
2650
|
+
var this$110 = $n(x341);
|
|
2651
|
+
if ((x346 !== null)) {
|
|
2652
|
+
var this$112 = $n(x346);
|
|
2653
|
+
var x354 = this$112.Lcom_vinctus_oql_Attribute__f_name;
|
|
2654
|
+
var this$113 = $n(x346);
|
|
2655
|
+
var this$114 = $n(x346);
|
|
2656
|
+
var this$115 = $n(x346);
|
|
2657
|
+
var this$116 = $n(x346);
|
|
2658
|
+
var x358 = this$116.Lcom_vinctus_oql_Attribute__f_typ;
|
|
2659
|
+
if ((x358 instanceof $c_Lcom_vinctus_oql_OneToOneType)) {
|
|
2660
|
+
var x$1$8 = $as_Lcom_vinctus_oql_OneToOneType(x358);
|
|
2661
|
+
var this$118 = $n(x$1$8);
|
|
2662
|
+
var x361 = this$118.Lcom_vinctus_oql_OneToOneType__f_entity;
|
|
2663
|
+
var this$119 = $n(x$1$8);
|
|
2664
|
+
var x362 = this$119.Lcom_vinctus_oql_OneToOneType__f_attribute;
|
|
2665
|
+
var alias$3 = ((table + "$") + x354);
|
|
2651
2666
|
if ($n(builder).isLeft__Z()) {
|
|
2652
|
-
var this$
|
|
2653
|
-
var subquery$7 = new $c_Lcom_vinctus_oql_SQLQueryBuilder(oql, ds, fixed, model, (($n($as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$
|
|
2667
|
+
var this$120 = $n(builder);
|
|
2668
|
+
var subquery$7 = new $c_Lcom_vinctus_oql_SQLQueryBuilder(oql, ds, fixed, model, (($n($as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$120).toOption__s_Option()).get__O())).Lcom_vinctus_oql_SQLQueryBuilder__f_margin + ($m_Lcom_vinctus_oql_SQLQueryBuilder$().Lcom_vinctus_oql_SQLQueryBuilder$__f_INDENT << 1)) | 0), false)
|
|
2654
2669
|
} else {
|
|
2655
2670
|
var subquery$7 = new $c_Lcom_vinctus_oql_SQLQueryBuilder(oql, ds, fixed, model, $uI($n($n(builder).toOption__s_Option()).get__O()), true)
|
|
2656
2671
|
};
|
|
2657
2672
|
if ($n(builder).isLeft__Z()) {
|
|
2658
|
-
var $$
|
|
2659
|
-
var this$
|
|
2660
|
-
$$
|
|
2673
|
+
var $$x6 = $n(x339);
|
|
2674
|
+
var this$121 = $n(builder);
|
|
2675
|
+
$$x6.Lcom_vinctus_oql_AbstractOQL$OneToOneNode__f_idx = $n($as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$121).toOption__s_Option()).get__O())).projectQuery__Lcom_vinctus_oql_SQLQueryBuilder__I(subquery$7)
|
|
2661
2676
|
};
|
|
2662
|
-
$n(subquery$7).table__T__s_Option__V($n(
|
|
2663
|
-
this.writeQuery__Lcom_vinctus_oql_AbstractOQL$Node__T__s_util_Either__T__Lcom_vinctus_oql_SQLDataSource__Lcom_vinctus_oql_Fixed__Lcom_vinctus_oql_DataModel__Lcom_vinctus_oql_SQLQueryBuilder(
|
|
2664
|
-
var $$
|
|
2665
|
-
var s$
|
|
2666
|
-
$n($$
|
|
2677
|
+
$n(subquery$7).table__T__s_Option__V($n(x361).Lcom_vinctus_oql_Entity__f_table, new $c_s_Some(alias$3));
|
|
2678
|
+
this.writeQuery__Lcom_vinctus_oql_AbstractOQL$Node__T__s_util_Either__T__Lcom_vinctus_oql_SQLDataSource__Lcom_vinctus_oql_Fixed__Lcom_vinctus_oql_DataModel__Lcom_vinctus_oql_SQLQueryBuilder(x342, alias$3, ($n($m_s_package$().s_package$__f_Left), new $c_s_util_Left(subquery$7)), oql, ds, fixed, model);
|
|
2679
|
+
var $$x7 = $n(subquery$7);
|
|
2680
|
+
var s$2 = (((((((("\"" + alias$3) + "\".\"") + $n(x362).Lcom_vinctus_oql_Attribute__f_column) + "\" = \"") + table) + "\".\"") + $n($as_Lcom_vinctus_oql_Attribute($n($n(x345).pk__s_Option()).get__O())).Lcom_vinctus_oql_Attribute__f_column) + "\"");
|
|
2681
|
+
$n($$x7).select__Lcom_vinctus_oql_OQLExpression__T__V(new $c_Lcom_vinctus_oql_RawOQLExpression(s$2), null);
|
|
2667
2682
|
return subquery$7
|
|
2668
2683
|
}
|
|
2669
2684
|
}
|
|
2670
2685
|
}
|
|
2671
2686
|
};
|
|
2672
2687
|
if ((node instanceof $c_Lcom_vinctus_oql_AbstractOQL$OneToManyNode)) {
|
|
2673
|
-
var
|
|
2674
|
-
var this$
|
|
2675
|
-
var
|
|
2676
|
-
var this$
|
|
2677
|
-
var
|
|
2678
|
-
if ((
|
|
2679
|
-
var this$
|
|
2680
|
-
var this$
|
|
2681
|
-
var this$
|
|
2682
|
-
var
|
|
2683
|
-
var this$
|
|
2684
|
-
var this$
|
|
2685
|
-
var
|
|
2686
|
-
var this$
|
|
2687
|
-
var
|
|
2688
|
-
var this$
|
|
2689
|
-
var
|
|
2690
|
-
var this$
|
|
2691
|
-
var
|
|
2692
|
-
var this$
|
|
2693
|
-
var
|
|
2694
|
-
if ((
|
|
2695
|
-
var this$
|
|
2696
|
-
var
|
|
2697
|
-
var this$
|
|
2698
|
-
var this$
|
|
2699
|
-
var this$
|
|
2700
|
-
var this$
|
|
2701
|
-
var
|
|
2702
|
-
if ((
|
|
2703
|
-
var x$1$9 = $as_Lcom_vinctus_oql_OneToManyType(
|
|
2704
|
-
var this$
|
|
2705
|
-
var
|
|
2706
|
-
var this$
|
|
2707
|
-
var
|
|
2708
|
-
var alias$4 = ((table + "$") +
|
|
2688
|
+
var x315 = $as_Lcom_vinctus_oql_AbstractOQL$OneToManyNode(node);
|
|
2689
|
+
var this$126 = $n(x315);
|
|
2690
|
+
var x317 = this$126.Lcom_vinctus_oql_AbstractOQL$OneToManyNode__f_query;
|
|
2691
|
+
var this$127 = $n(x315);
|
|
2692
|
+
var x318 = this$127.Lcom_vinctus_oql_AbstractOQL$OneToManyNode__f_element;
|
|
2693
|
+
if ((x317 !== null)) {
|
|
2694
|
+
var this$129 = $n(x317);
|
|
2695
|
+
var this$130 = $n(x317);
|
|
2696
|
+
var this$131 = $n(x317);
|
|
2697
|
+
var x322 = this$131.Lcom_vinctus_oql_OQLQuery__f_attr;
|
|
2698
|
+
var this$132 = $n(x317);
|
|
2699
|
+
var this$133 = $n(x317);
|
|
2700
|
+
var x324 = this$133.Lcom_vinctus_oql_OQLQuery__f_select;
|
|
2701
|
+
var this$134 = $n(x317);
|
|
2702
|
+
var x325 = this$134.Lcom_vinctus_oql_OQLQuery__f_group;
|
|
2703
|
+
var this$135 = $n(x317);
|
|
2704
|
+
var x326 = this$135.Lcom_vinctus_oql_OQLQuery__f_order;
|
|
2705
|
+
var this$136 = $n(x317);
|
|
2706
|
+
var x327 = this$136.Lcom_vinctus_oql_OQLQuery__f_limit;
|
|
2707
|
+
var this$137 = $n(x317);
|
|
2708
|
+
var x328 = this$137.Lcom_vinctus_oql_OQLQuery__f_offset;
|
|
2709
|
+
if ((x322 !== null)) {
|
|
2710
|
+
var this$139 = $n(x322);
|
|
2711
|
+
var x330 = this$139.Lcom_vinctus_oql_Attribute__f_name;
|
|
2712
|
+
var this$140 = $n(x322);
|
|
2713
|
+
var this$141 = $n(x322);
|
|
2714
|
+
var this$142 = $n(x322);
|
|
2715
|
+
var this$143 = $n(x322);
|
|
2716
|
+
var x334 = this$143.Lcom_vinctus_oql_Attribute__f_typ;
|
|
2717
|
+
if ((x334 instanceof $c_Lcom_vinctus_oql_OneToManyType)) {
|
|
2718
|
+
var x$1$9 = $as_Lcom_vinctus_oql_OneToManyType(x334);
|
|
2719
|
+
var this$145 = $n(x$1$9);
|
|
2720
|
+
var x337 = this$145.Lcom_vinctus_oql_OneToManyType__f_entity;
|
|
2721
|
+
var this$146 = $n(x$1$9);
|
|
2722
|
+
var x338 = this$146.Lcom_vinctus_oql_OneToManyType__f_attribute;
|
|
2723
|
+
var alias$4 = ((table + "$") + x330);
|
|
2709
2724
|
if ($n(builder).isLeft__Z()) {
|
|
2710
|
-
var this$
|
|
2711
|
-
var subquery$8 = new $c_Lcom_vinctus_oql_SQLQueryBuilder(oql, ds, fixed, model, (($n($as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$
|
|
2725
|
+
var this$147 = $n(builder);
|
|
2726
|
+
var subquery$8 = new $c_Lcom_vinctus_oql_SQLQueryBuilder(oql, ds, fixed, model, (($n($as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$147).toOption__s_Option()).get__O())).Lcom_vinctus_oql_SQLQueryBuilder__f_margin + ($m_Lcom_vinctus_oql_SQLQueryBuilder$().Lcom_vinctus_oql_SQLQueryBuilder$__f_INDENT << 1)) | 0), false)
|
|
2712
2727
|
} else {
|
|
2713
2728
|
var subquery$8 = new $c_Lcom_vinctus_oql_SQLQueryBuilder(oql, ds, fixed, model, $uI($n($n(builder).toOption__s_Option()).get__O()), true)
|
|
2714
2729
|
};
|
|
2715
2730
|
if ($n(builder).isLeft__Z()) {
|
|
2716
|
-
var $$
|
|
2717
|
-
var this$
|
|
2718
|
-
$$
|
|
2731
|
+
var $$x8 = $n(x315);
|
|
2732
|
+
var this$148 = $n(builder);
|
|
2733
|
+
$$x8.Lcom_vinctus_oql_AbstractOQL$OneToManyNode__f_idx = $n($as_Lcom_vinctus_oql_SQLQueryBuilder($n(new $c_s_util_Either$LeftProjection(this$148).toOption__s_Option()).get__O())).projectQuery__Lcom_vinctus_oql_SQLQueryBuilder__I(subquery$8)
|
|
2719
2734
|
};
|
|
2720
|
-
$n(subquery$8).table__T__s_Option__V($n(
|
|
2721
|
-
this.writeQuery__Lcom_vinctus_oql_AbstractOQL$Node__T__s_util_Either__T__Lcom_vinctus_oql_SQLDataSource__Lcom_vinctus_oql_Fixed__Lcom_vinctus_oql_DataModel__Lcom_vinctus_oql_SQLQueryBuilder(
|
|
2722
|
-
var $$
|
|
2723
|
-
var s$
|
|
2724
|
-
$n($$
|
|
2725
|
-
var this$
|
|
2726
|
-
if ((!this$
|
|
2727
|
-
var arg1$12 = this$
|
|
2735
|
+
$n(subquery$8).table__T__s_Option__V($n(x337).Lcom_vinctus_oql_Entity__f_table, new $c_s_Some(alias$4));
|
|
2736
|
+
this.writeQuery__Lcom_vinctus_oql_AbstractOQL$Node__T__s_util_Either__T__Lcom_vinctus_oql_SQLDataSource__Lcom_vinctus_oql_Fixed__Lcom_vinctus_oql_DataModel__Lcom_vinctus_oql_SQLQueryBuilder(x318, alias$4, ($n($m_s_package$().s_package$__f_Left), new $c_s_util_Left(subquery$8)), oql, ds, fixed, model);
|
|
2737
|
+
var $$x9 = $n(subquery$8);
|
|
2738
|
+
var s$3 = (((((((("\"" + alias$4) + "\".\"") + $n(x338).Lcom_vinctus_oql_Attribute__f_column) + "\" = \"") + table) + "\".\"") + $n($as_Lcom_vinctus_oql_Attribute($n($n($n($as_Lcom_vinctus_oql_ManyToOneType($n(x338).Lcom_vinctus_oql_Attribute__f_typ)).Lcom_vinctus_oql_ManyToOneType__f_entity).pk__s_Option()).get__O())).Lcom_vinctus_oql_Attribute__f_column) + "\"");
|
|
2739
|
+
$n($$x9).select__Lcom_vinctus_oql_OQLExpression__T__V(new $c_Lcom_vinctus_oql_RawOQLExpression(s$3), null);
|
|
2740
|
+
var this$152 = $n(x324);
|
|
2741
|
+
if ((!this$152.isEmpty__Z())) {
|
|
2742
|
+
var arg1$12 = this$152.get__O();
|
|
2728
2743
|
var _$26 = $as_Lcom_vinctus_oql_OQLExpression(arg1$12);
|
|
2729
2744
|
$n(subquery$8).select__Lcom_vinctus_oql_OQLExpression__T__V(_$26, alias$4)
|
|
2730
2745
|
};
|
|
2731
|
-
var this$
|
|
2732
|
-
if ((!this$
|
|
2733
|
-
var arg1$13 = this$
|
|
2746
|
+
var this$153 = $n(x325);
|
|
2747
|
+
if ((!this$153.isEmpty__Z())) {
|
|
2748
|
+
var arg1$13 = this$153.get__O();
|
|
2734
2749
|
var _$27 = $as_sci_List(arg1$13);
|
|
2735
2750
|
$n(subquery$8).group__sci_List__T__V(_$27, alias$4)
|
|
2736
2751
|
};
|
|
2737
|
-
var this$
|
|
2738
|
-
if ((!this$
|
|
2739
|
-
var arg1$14 = this$
|
|
2752
|
+
var this$154 = $n(x326);
|
|
2753
|
+
if ((!this$154.isEmpty__Z())) {
|
|
2754
|
+
var arg1$14 = this$154.get__O();
|
|
2740
2755
|
var _$28 = $as_sci_List(arg1$14);
|
|
2741
2756
|
$n(subquery$8).order__sci_List__T__V(_$28, alias$4)
|
|
2742
2757
|
};
|
|
2743
|
-
var this$
|
|
2744
|
-
if ((!this$
|
|
2745
|
-
var arg1$15 = this$
|
|
2746
|
-
var n$
|
|
2747
|
-
$n(subquery$8).limit__I__V(n$
|
|
2758
|
+
var this$155 = $n(x327);
|
|
2759
|
+
if ((!this$155.isEmpty__Z())) {
|
|
2760
|
+
var arg1$15 = this$155.get__O();
|
|
2761
|
+
var n$7 = $uI(arg1$15);
|
|
2762
|
+
$n(subquery$8).limit__I__V(n$7)
|
|
2748
2763
|
};
|
|
2749
|
-
var this$
|
|
2750
|
-
if ((!this$
|
|
2751
|
-
var arg1$16 = this$
|
|
2752
|
-
var n$
|
|
2753
|
-
$n(subquery$8).offset__I__V(n$
|
|
2764
|
+
var this$156 = $n(x328);
|
|
2765
|
+
if ((!this$156.isEmpty__Z())) {
|
|
2766
|
+
var arg1$16 = this$156.get__O();
|
|
2767
|
+
var n$8 = $uI(arg1$16);
|
|
2768
|
+
$n(subquery$8).offset__I__V(n$8)
|
|
2754
2769
|
};
|
|
2755
2770
|
return subquery$8
|
|
2756
2771
|
}
|
|
@@ -2984,10 +2999,10 @@ function $p_Lcom_vinctus_oql_DataModel__scan$1__scm_ListBuffer__scm_ListBuffer__
|
|
|
2984
2999
|
var this$11 = $n(x$1$3);
|
|
2985
3000
|
var this$12 = $n(x$1$3);
|
|
2986
3001
|
var this$13 = $n(x$1$3);
|
|
2987
|
-
var
|
|
3002
|
+
var x264 = this$13.Lcom_vinctus_oql_Attribute__f_pk;
|
|
2988
3003
|
var this$14 = $n(x$1$3);
|
|
2989
3004
|
var this$15 = $n(x$1$3);
|
|
2990
|
-
return (!
|
|
3005
|
+
return (!x264)
|
|
2991
3006
|
};
|
|
2992
3007
|
throw new $c_s_MatchError(x$1$3)
|
|
2993
3008
|
})))).foreach__F1__V(new $c_sjsr_AnonFunction1(((x$1$3$1) => {
|
|
@@ -2995,28 +3010,28 @@ function $p_Lcom_vinctus_oql_DataModel__scan$1__scm_ListBuffer__scm_ListBuffer__
|
|
|
2995
3010
|
matchResult31: {
|
|
2996
3011
|
if ((x$1$4 !== null)) {
|
|
2997
3012
|
var this$18 = $n(x$1$4);
|
|
2998
|
-
var
|
|
3013
|
+
var x273 = this$18.Lcom_vinctus_oql_Attribute__f_name;
|
|
2999
3014
|
var this$19 = $n(x$1$4);
|
|
3000
3015
|
var this$20 = $n(x$1$4);
|
|
3001
3016
|
var this$21 = $n(x$1$4);
|
|
3002
|
-
var
|
|
3017
|
+
var x276 = this$21.Lcom_vinctus_oql_Attribute__f_required;
|
|
3003
3018
|
var this$22 = $n(x$1$4);
|
|
3004
|
-
var
|
|
3005
|
-
if ((
|
|
3006
|
-
var x$1$5 = $as_Lcom_vinctus_oql_ManyToOneType(
|
|
3019
|
+
var x277 = this$22.Lcom_vinctus_oql_Attribute__f_typ;
|
|
3020
|
+
if ((x277 instanceof $c_Lcom_vinctus_oql_ManyToOneType)) {
|
|
3021
|
+
var x$1$5 = $as_Lcom_vinctus_oql_ManyToOneType(x277);
|
|
3007
3022
|
var this$24 = $n(x$1$5);
|
|
3008
|
-
var
|
|
3023
|
+
var x270 = this$24.Lcom_vinctus_oql_ManyToOneType__f_entity;
|
|
3009
3024
|
var this$25 = $n(ents);
|
|
3010
3025
|
var newents = new $c_sci_$colon$colon(entity, this$25);
|
|
3011
|
-
if ((!newents.contains__O__Z(
|
|
3012
|
-
if ((!
|
|
3026
|
+
if ((!newents.contains__O__Z(x270))) {
|
|
3027
|
+
if ((!x276)) {
|
|
3013
3028
|
var this$27 = $n(nullablesbuf$1);
|
|
3014
3029
|
var this$26 = $n(attrs);
|
|
3015
|
-
var elem$2 = new $c_sci_$colon$colon(
|
|
3030
|
+
var elem$2 = new $c_sci_$colon$colon(x273, this$26).reverse__sci_List();
|
|
3016
3031
|
this$27.addOne__O__scm_ListBuffer(elem$2)
|
|
3017
3032
|
};
|
|
3018
3033
|
var this$28 = $n(attrs);
|
|
3019
|
-
$p_Lcom_vinctus_oql_DataModel__scan$1__scm_ListBuffer__scm_ListBuffer__sci_List__sci_List__Lcom_vinctus_oql_Entity__V($thiz, idsbuf$1, nullablesbuf$1, new $c_sci_$colon$colon(
|
|
3034
|
+
$p_Lcom_vinctus_oql_DataModel__scan$1__scm_ListBuffer__scm_ListBuffer__sci_List__sci_List__Lcom_vinctus_oql_Entity__V($thiz, idsbuf$1, nullablesbuf$1, new $c_sci_$colon$colon(x273, this$28), newents, x270)
|
|
3020
3035
|
}
|
|
3021
3036
|
};
|
|
3022
3037
|
break matchResult31
|
|
@@ -3031,30 +3046,30 @@ function $ps_Lcom_vinctus_oql_DataModel__lookup$1__Lcom_vinctus_oql_OQLExpressio
|
|
|
3031
3046
|
var ids$tailLocal1 = ids;
|
|
3032
3047
|
while (true) {
|
|
3033
3048
|
matchResult34: {
|
|
3034
|
-
var
|
|
3035
|
-
if ((
|
|
3049
|
+
var x295 = ids$tailLocal1;
|
|
3050
|
+
if ((x295 !== null)) {
|
|
3036
3051
|
$n($m_s_package$().s_package$__f_List);
|
|
3037
|
-
if (($n(
|
|
3038
|
-
var this$4 = $n(
|
|
3039
|
-
var
|
|
3052
|
+
if (($n(x295).lengthCompare__I__I(1) === 0)) {
|
|
3053
|
+
var this$4 = $n(x295);
|
|
3054
|
+
var x300 = $as_Lcom_vinctus_oql_Ident($f_sc_LinearSeqOps__apply__I__O(this$4, 0));
|
|
3040
3055
|
matchResult32: {
|
|
3041
|
-
var
|
|
3042
|
-
if ((
|
|
3043
|
-
var attr = $as_Lcom_vinctus_oql_Attribute($n($as_s_Some(
|
|
3056
|
+
var x278 = $n($n(entity$tailLocal1).attributes__sci_Map()).get__O__s_Option($n(x300).Lcom_vinctus_oql_Ident__f_s);
|
|
3057
|
+
if ((x278 instanceof $c_s_Some)) {
|
|
3058
|
+
var attr = $as_Lcom_vinctus_oql_Attribute($n($as_s_Some(x278)).s_Some__f_value);
|
|
3044
3059
|
var this$7 = $n(dmrefs$1);
|
|
3045
3060
|
var self = entity$tailLocal1;
|
|
3046
3061
|
var elem = new $c_T2(self, attr);
|
|
3047
3062
|
this$7.addOne__O__scm_ListBuffer(elem);
|
|
3048
3063
|
if (ref$1) {
|
|
3049
3064
|
if ((!($n(attr).Lcom_vinctus_oql_Attribute__f_typ instanceof $c_Lcom_vinctus_oql_ManyToOneType))) {
|
|
3050
|
-
$m_Lcom_vinctus_oql_package$().problem__s_util_parsing_input_Position__T__T__E($n(
|
|
3065
|
+
$m_Lcom_vinctus_oql_package$().problem__s_util_parsing_input_Position__T__T__E($n(x300).Lcom_vinctus_oql_Ident__f_pos, (("attribute '" + $n(x300).Lcom_vinctus_oql_Ident__f_s) + "' is not many-to-one"), input$1)
|
|
3051
3066
|
};
|
|
3052
3067
|
var $$x1 = $n(expr$1);
|
|
3053
3068
|
var this$8 = $n($n($as_Lcom_vinctus_oql_Attribute($n($n($n($as_Lcom_vinctus_oql_ManyToOneType($n(attr).Lcom_vinctus_oql_Attribute__f_typ)).Lcom_vinctus_oql_ManyToOneType__f_entity).pk__s_Option()).get__O())).Lcom_vinctus_oql_Attribute__f_typ);
|
|
3054
3069
|
$$x1.Lcom_vinctus_oql_OQLExpression__f_typ = $as_Lcom_vinctus_oql_Datatype(this$8)
|
|
3055
3070
|
} else {
|
|
3056
3071
|
if ((!$n($n(attr).Lcom_vinctus_oql_Attribute__f_typ).isDataType__Z())) {
|
|
3057
|
-
$m_Lcom_vinctus_oql_package$().problem__s_util_parsing_input_Position__T__T__E($n(
|
|
3072
|
+
$m_Lcom_vinctus_oql_package$().problem__s_util_parsing_input_Position__T__T__E($n(x300).Lcom_vinctus_oql_Ident__f_pos, (("attribute '" + $n(x300).Lcom_vinctus_oql_Ident__f_s) + "' is not a DBMS data type"), input$1)
|
|
3058
3073
|
};
|
|
3059
3074
|
var $$x2 = $n(expr$1);
|
|
3060
3075
|
var this$9 = $n($n(attr).Lcom_vinctus_oql_Attribute__f_typ);
|
|
@@ -3063,50 +3078,50 @@ function $ps_Lcom_vinctus_oql_DataModel__lookup$1__Lcom_vinctus_oql_OQLExpressio
|
|
|
3063
3078
|
break matchResult32
|
|
3064
3079
|
};
|
|
3065
3080
|
var x = $m_s_None$();
|
|
3066
|
-
if ((x ===
|
|
3067
|
-
$m_Lcom_vinctus_oql_package$().problem__s_util_parsing_input_Position__T__T__E($n(
|
|
3081
|
+
if ((x === x278)) {
|
|
3082
|
+
$m_Lcom_vinctus_oql_package$().problem__s_util_parsing_input_Position__T__T__E($n(x300).Lcom_vinctus_oql_Ident__f_pos, (((("entity '" + $n(entity$tailLocal1).Lcom_vinctus_oql_Entity__f_name) + "' does not have attribute '") + $n(x300).Lcom_vinctus_oql_Ident__f_s) + "'"), input$1)
|
|
3068
3083
|
};
|
|
3069
|
-
throw new $c_s_MatchError(
|
|
3084
|
+
throw new $c_s_MatchError(x278)
|
|
3070
3085
|
};
|
|
3071
3086
|
break matchResult34
|
|
3072
3087
|
}
|
|
3073
3088
|
};
|
|
3074
|
-
if ((
|
|
3075
|
-
var
|
|
3076
|
-
var
|
|
3077
|
-
var head = $as_Lcom_vinctus_oql_Ident($n(
|
|
3078
|
-
var
|
|
3079
|
-
if ((
|
|
3080
|
-
var
|
|
3081
|
-
if ((
|
|
3082
|
-
var this$11 = $n(
|
|
3083
|
-
var this$12 = $n(
|
|
3084
|
-
var this$13 = $n(
|
|
3085
|
-
var this$14 = $n(
|
|
3086
|
-
var this$15 = $n(
|
|
3087
|
-
var
|
|
3088
|
-
if ((
|
|
3089
|
-
var x$1 = $as_Lcom_vinctus_oql_ManyToOneType(
|
|
3089
|
+
if ((x295 instanceof $c_sci_$colon$colon)) {
|
|
3090
|
+
var x296 = $as_sci_$colon$colon(x295);
|
|
3091
|
+
var x298 = $n(x296).sci_$colon$colon__f_next;
|
|
3092
|
+
var head = $as_Lcom_vinctus_oql_Ident($n(x296).sci_$colon$colon__f_head);
|
|
3093
|
+
var x281 = $n($n(entity$tailLocal1).attributes__sci_Map()).get__O__s_Option($n(head).Lcom_vinctus_oql_Ident__f_s);
|
|
3094
|
+
if ((x281 instanceof $c_s_Some)) {
|
|
3095
|
+
var x285 = $as_Lcom_vinctus_oql_Attribute($n($as_s_Some(x281)).s_Some__f_value);
|
|
3096
|
+
if ((x285 !== null)) {
|
|
3097
|
+
var this$11 = $n(x285);
|
|
3098
|
+
var this$12 = $n(x285);
|
|
3099
|
+
var this$13 = $n(x285);
|
|
3100
|
+
var this$14 = $n(x285);
|
|
3101
|
+
var this$15 = $n(x285);
|
|
3102
|
+
var x291 = this$15.Lcom_vinctus_oql_Attribute__f_typ;
|
|
3103
|
+
if ((x291 instanceof $c_Lcom_vinctus_oql_ManyToOneType)) {
|
|
3104
|
+
var x$1 = $as_Lcom_vinctus_oql_ManyToOneType(x291);
|
|
3090
3105
|
var this$17 = $n(x$1);
|
|
3091
|
-
var
|
|
3106
|
+
var x294 = this$17.Lcom_vinctus_oql_ManyToOneType__f_entity;
|
|
3092
3107
|
var this$20 = $n(dmrefs$1);
|
|
3093
|
-
var elem$1 = new $c_T2(
|
|
3108
|
+
var elem$1 = new $c_T2(x294, x285);
|
|
3094
3109
|
this$20.addOne__O__scm_ListBuffer(elem$1);
|
|
3095
|
-
ids$tailLocal1 =
|
|
3096
|
-
entity$tailLocal1 =
|
|
3110
|
+
ids$tailLocal1 = x298;
|
|
3111
|
+
entity$tailLocal1 = x294;
|
|
3097
3112
|
continue
|
|
3098
3113
|
}
|
|
3099
3114
|
};
|
|
3100
3115
|
$m_Lcom_vinctus_oql_package$().problem__s_util_parsing_input_Position__T__T__E($n(head).Lcom_vinctus_oql_Ident__f_pos, (((("attribute '" + $n(head).Lcom_vinctus_oql_Ident__f_s) + "' of entity '") + $n(entity$tailLocal1).Lcom_vinctus_oql_Entity__f_name) + "' does not have an entity type"), input$1)
|
|
3101
3116
|
};
|
|
3102
3117
|
var x$3 = $m_s_None$();
|
|
3103
|
-
if ((x$3 ===
|
|
3118
|
+
if ((x$3 === x281)) {
|
|
3104
3119
|
$m_Lcom_vinctus_oql_package$().problem__s_util_parsing_input_Position__T__T__E($n(head).Lcom_vinctus_oql_Ident__f_pos, (((("entity '" + $n(entity$tailLocal1).Lcom_vinctus_oql_Entity__f_name) + "' does not have attribute '") + $n(head).Lcom_vinctus_oql_Ident__f_s) + "'"), input$1)
|
|
3105
3120
|
};
|
|
3106
|
-
throw new $c_s_MatchError(
|
|
3121
|
+
throw new $c_s_MatchError(x281);
|
|
3107
3122
|
break matchResult34
|
|
3108
3123
|
};
|
|
3109
|
-
throw new $c_s_MatchError(
|
|
3124
|
+
throw new $c_s_MatchError(x295)
|
|
3110
3125
|
};
|
|
3111
3126
|
return (void 0)
|
|
3112
3127
|
}
|
|
@@ -3220,14 +3235,14 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3220
3235
|
if ((x$1$3 !== null)) {
|
|
3221
3236
|
$n(this.Lcom_vinctus_oql_DataModel__f_EntityInfo$lzy1);
|
|
3222
3237
|
var this$15 = $n(x$1$3);
|
|
3223
|
-
var
|
|
3238
|
+
var x114 = this$15.Lcom_vinctus_oql_DataModel$EntityInfo__f_entity;
|
|
3224
3239
|
var this$16 = $n(x$1$3);
|
|
3225
|
-
var
|
|
3240
|
+
var x115 = this$16.Lcom_vinctus_oql_DataModel$EntityInfo__f_dmlattrs;
|
|
3226
3241
|
var this$17 = $n(x$1$3);
|
|
3227
|
-
var
|
|
3242
|
+
var x116 = this$17.Lcom_vinctus_oql_DataModel$EntityInfo__f_attrs;
|
|
3228
3243
|
var elem = $m_s_None$();
|
|
3229
3244
|
var pk = new $c_sr_ObjectRef(elem);
|
|
3230
|
-
$n(
|
|
3245
|
+
$n(x115).foreach__F1__V(new $c_sjsr_AnonFunction1(((a$4) => {
|
|
3231
3246
|
var a$5 = $as_Lcom_vinctus_oql_DMLAttribute(a$4);
|
|
3232
3247
|
matchResult14: {
|
|
3233
3248
|
var $$x2;
|
|
@@ -3235,8 +3250,8 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3235
3250
|
if ((x59 instanceof $c_Lcom_vinctus_oql_DMLSimpleDataType)) {
|
|
3236
3251
|
var x$1$4 = $as_Lcom_vinctus_oql_DMLSimpleDataType(x59);
|
|
3237
3252
|
var this$20 = $n(x$1$4);
|
|
3238
|
-
var
|
|
3239
|
-
switch (
|
|
3253
|
+
var x111 = this$20.Lcom_vinctus_oql_DMLSimpleDataType__f_typ;
|
|
3254
|
+
switch (x111) {
|
|
3240
3255
|
case "text": {
|
|
3241
3256
|
var $$x2 = $m_Lcom_vinctus_oql_TextType$();
|
|
3242
3257
|
break matchResult14;
|
|
@@ -3258,10 +3273,10 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3258
3273
|
default: {
|
|
3259
3274
|
matchAlts3: {
|
|
3260
3275
|
matchAlts4: {
|
|
3261
|
-
if ((
|
|
3276
|
+
if ((x111 === "bigint")) {
|
|
3262
3277
|
break matchAlts4
|
|
3263
3278
|
};
|
|
3264
|
-
if ((
|
|
3279
|
+
if ((x111 === "int8")) {
|
|
3265
3280
|
break matchAlts4
|
|
3266
3281
|
};
|
|
3267
3282
|
break matchAlts3
|
|
@@ -3275,16 +3290,16 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3275
3290
|
if ((x59 instanceof $c_Lcom_vinctus_oql_DMLParametricDataType)) {
|
|
3276
3291
|
var x$1$5 = $as_Lcom_vinctus_oql_DMLParametricDataType(x59);
|
|
3277
3292
|
var this$22 = $n(x$1$5);
|
|
3278
|
-
var
|
|
3293
|
+
var x98 = this$22.Lcom_vinctus_oql_DMLParametricDataType__f_typ;
|
|
3279
3294
|
var this$23 = $n(x$1$5);
|
|
3280
|
-
var
|
|
3281
|
-
if ((
|
|
3295
|
+
var x99 = this$23.Lcom_vinctus_oql_DMLParametricDataType__f_parameters;
|
|
3296
|
+
if ((x98 === "decimal")) {
|
|
3282
3297
|
$m_sc_StringOps$();
|
|
3283
|
-
var x = $as_T($n(
|
|
3298
|
+
var x = $as_T($n(x99).head__O());
|
|
3284
3299
|
var this$26 = $m_jl_Integer$();
|
|
3285
3300
|
var precision = this$26.parseInt__T__I__I(x, 10);
|
|
3286
3301
|
$m_sc_StringOps$();
|
|
3287
|
-
var x$2 = $as_T($n($as_sc_IterableOps($n(
|
|
3302
|
+
var x$2 = $as_T($n($as_sc_IterableOps($n(x99).tail__O())).head__O());
|
|
3288
3303
|
var this$29 = $m_jl_Integer$();
|
|
3289
3304
|
var scale = this$29.parseInt__T__I__I(x$2, 10);
|
|
3290
3305
|
var $$x2 = new $c_Lcom_vinctus_oql_DecimalType(precision, scale);
|
|
@@ -3294,8 +3309,23 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3294
3309
|
if ((x59 instanceof $c_Lcom_vinctus_oql_DMLSimpleDataType)) {
|
|
3295
3310
|
var x$1$6 = $as_Lcom_vinctus_oql_DMLSimpleDataType(x59);
|
|
3296
3311
|
var this$32 = $n(x$1$6);
|
|
3297
|
-
var
|
|
3298
|
-
switch (
|
|
3312
|
+
var x95 = this$32.Lcom_vinctus_oql_DMLSimpleDataType__f_typ;
|
|
3313
|
+
switch (x95) {
|
|
3314
|
+
case "date": {
|
|
3315
|
+
var $$x2 = $m_Lcom_vinctus_oql_DateType$();
|
|
3316
|
+
break matchResult14;
|
|
3317
|
+
break
|
|
3318
|
+
}
|
|
3319
|
+
case "time": {
|
|
3320
|
+
var $$x2 = $m_Lcom_vinctus_oql_TimeType$();
|
|
3321
|
+
break matchResult14;
|
|
3322
|
+
break
|
|
3323
|
+
}
|
|
3324
|
+
case "interval": {
|
|
3325
|
+
var $$x2 = $m_Lcom_vinctus_oql_IntervalType$();
|
|
3326
|
+
break matchResult14;
|
|
3327
|
+
break
|
|
3328
|
+
}
|
|
3299
3329
|
case "float":
|
|
3300
3330
|
case "float8": {
|
|
3301
3331
|
var $$x2 = $m_Lcom_vinctus_oql_FloatType$();
|
|
@@ -3313,7 +3343,7 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3313
3343
|
break
|
|
3314
3344
|
}
|
|
3315
3345
|
default: {
|
|
3316
|
-
if ((
|
|
3346
|
+
if ((x95 === "json")) {
|
|
3317
3347
|
var $$x2 = $m_Lcom_vinctus_oql_JSONType$();
|
|
3318
3348
|
break matchResult14
|
|
3319
3349
|
}
|
|
@@ -3463,9 +3493,9 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3463
3493
|
pk.sr_ObjectRef__f_elem = ev$4;
|
|
3464
3494
|
ev$4 = null
|
|
3465
3495
|
};
|
|
3466
|
-
$n(
|
|
3496
|
+
$n(x116).update__O__O__V($n($n(a$5).Lcom_vinctus_oql_DMLAttribute__f_name).Lcom_vinctus_oql_Ident__f_s, attr$3)
|
|
3467
3497
|
})));
|
|
3468
|
-
$n(
|
|
3498
|
+
$n(x114).Lcom_vinctus_oql_Entity__f__pk = $as_s_Option(pk.sr_ObjectRef__f_elem);
|
|
3469
3499
|
break matchResult15
|
|
3470
3500
|
};
|
|
3471
3501
|
throw new $c_s_MatchError(x$1$3)
|
|
@@ -3492,28 +3522,28 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3492
3522
|
if ((x$1$12 !== null)) {
|
|
3493
3523
|
$n(this.Lcom_vinctus_oql_DataModel__f_EntityInfo$lzy1);
|
|
3494
3524
|
var this$79 = $n(x$1$12);
|
|
3495
|
-
var
|
|
3525
|
+
var x245 = this$79.Lcom_vinctus_oql_DataModel$EntityInfo__f_entity;
|
|
3496
3526
|
var this$80 = $n(x$1$12);
|
|
3497
|
-
var
|
|
3527
|
+
var x246 = this$80.Lcom_vinctus_oql_DataModel$EntityInfo__f_dmlattrs;
|
|
3498
3528
|
var this$81 = $n(x$1$12);
|
|
3499
|
-
var
|
|
3500
|
-
$n(
|
|
3529
|
+
var x247 = this$81.Lcom_vinctus_oql_DataModel$EntityInfo__f_attrs;
|
|
3530
|
+
$n(x246).foreach__F1__V(new $c_sjsr_AnonFunction1(((x$1$2$1) => {
|
|
3501
3531
|
var x$1$13 = $as_Lcom_vinctus_oql_DMLAttribute(x$1$2$1);
|
|
3502
3532
|
matchResult25: {
|
|
3503
3533
|
if ((x$1$13 !== null)) {
|
|
3504
3534
|
var this$83 = $n(x$1$13);
|
|
3505
3535
|
var this$84 = $n(x$1$13);
|
|
3506
3536
|
var this$85 = $n(x$1$13);
|
|
3507
|
-
var
|
|
3537
|
+
var x236 = this$85.Lcom_vinctus_oql_DMLAttribute__f_typ;
|
|
3508
3538
|
var this$86 = $n(x$1$13);
|
|
3509
3539
|
var this$87 = $n(x$1$13);
|
|
3510
|
-
if ((
|
|
3511
|
-
var x$1$14 = $as_Lcom_vinctus_oql_DMLManyToManyType(
|
|
3540
|
+
if ((x236 instanceof $c_Lcom_vinctus_oql_DMLManyToManyType)) {
|
|
3541
|
+
var x$1$14 = $as_Lcom_vinctus_oql_DMLManyToManyType(x236);
|
|
3512
3542
|
var this$89 = $n(x$1$14);
|
|
3513
|
-
var
|
|
3543
|
+
var x241 = this$89.Lcom_vinctus_oql_DMLManyToManyType__f_entity;
|
|
3514
3544
|
var this$90 = $n(x$1$14);
|
|
3515
|
-
var
|
|
3516
|
-
var key$1 = $n(
|
|
3545
|
+
var x242 = this$90.Lcom_vinctus_oql_DMLManyToManyType__f_link;
|
|
3546
|
+
var key$1 = $n(x242).Lcom_vinctus_oql_Ident__f_s;
|
|
3517
3547
|
var linkinfo = $as_Lcom_vinctus_oql_DataModel$EntityInfo($f_sc_MapOps__apply__O__O(entities, key$1));
|
|
3518
3548
|
var this$91 = $n($n(linkinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_attrs);
|
|
3519
3549
|
var this$100 = new $c_sc_MapOps$$anon$1(this$91);
|
|
@@ -3525,12 +3555,12 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3525
3555
|
var this$95 = $n(x$1$15);
|
|
3526
3556
|
var this$96 = $n(x$1$15);
|
|
3527
3557
|
var this$97 = $n(x$1$15);
|
|
3528
|
-
var
|
|
3529
|
-
if ((
|
|
3530
|
-
var x$1$16 = $as_Lcom_vinctus_oql_ManyToOneType(
|
|
3558
|
+
var x128 = this$97.Lcom_vinctus_oql_Attribute__f_typ;
|
|
3559
|
+
if ((x128 instanceof $c_Lcom_vinctus_oql_ManyToOneType)) {
|
|
3560
|
+
var x$1$16 = $as_Lcom_vinctus_oql_ManyToOneType(x128);
|
|
3531
3561
|
var this$99 = $n(x$1$16);
|
|
3532
|
-
var
|
|
3533
|
-
if (((
|
|
3562
|
+
var x131 = this$99.Lcom_vinctus_oql_ManyToOneType__f_entity;
|
|
3563
|
+
if (((x245 === null) ? (x131 === null) : $n(x245).equals__O__Z(x131))) {
|
|
3534
3564
|
return true
|
|
3535
3565
|
}
|
|
3536
3566
|
}
|
|
@@ -3539,12 +3569,12 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3539
3569
|
}));
|
|
3540
3570
|
var self = $as_sc_Iterable($f_sc_IterableOps__filter__F1__O(this$100, pred));
|
|
3541
3571
|
if (($n(self).size__I() > 1)) {
|
|
3542
|
-
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(
|
|
3572
|
+
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x242).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(x245).Lcom_vinctus_oql_Entity__f_name) + "'"), dml)
|
|
3543
3573
|
};
|
|
3544
3574
|
if (($n(self).size__I() < 1)) {
|
|
3545
|
-
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(
|
|
3575
|
+
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x242).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(x245).Lcom_vinctus_oql_Entity__f_name) + "'"), dml)
|
|
3546
3576
|
};
|
|
3547
|
-
var key$2 = $n(
|
|
3577
|
+
var key$2 = $n(x241).Lcom_vinctus_oql_Ident__f_s;
|
|
3548
3578
|
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;
|
|
3549
3579
|
var this$101 = $n($n(linkinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_attrs);
|
|
3550
3580
|
var this$110 = new $c_sc_MapOps$$anon$1(this$101);
|
|
@@ -3556,12 +3586,12 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3556
3586
|
var this$105 = $n(x$1$17);
|
|
3557
3587
|
var this$106 = $n(x$1$17);
|
|
3558
3588
|
var this$107 = $n(x$1$17);
|
|
3559
|
-
var
|
|
3560
|
-
if ((
|
|
3561
|
-
var x$1$18 = $as_Lcom_vinctus_oql_ManyToOneType(
|
|
3589
|
+
var x138 = this$107.Lcom_vinctus_oql_Attribute__f_typ;
|
|
3590
|
+
if ((x138 instanceof $c_Lcom_vinctus_oql_ManyToOneType)) {
|
|
3591
|
+
var x$1$18 = $as_Lcom_vinctus_oql_ManyToOneType(x138);
|
|
3562
3592
|
var this$109 = $n(x$1$18);
|
|
3563
|
-
var
|
|
3564
|
-
if (((targetentity === null) ? (
|
|
3593
|
+
var x141 = this$109.Lcom_vinctus_oql_ManyToOneType__f_entity;
|
|
3594
|
+
if (((targetentity === null) ? (x141 === null) : $n(targetentity).equals__O__Z(x141))) {
|
|
3565
3595
|
return true
|
|
3566
3596
|
}
|
|
3567
3597
|
}
|
|
@@ -3570,14 +3600,14 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3570
3600
|
}));
|
|
3571
3601
|
var target = $as_sc_Iterable($f_sc_IterableOps__filter__F1__O(this$110, pred$1));
|
|
3572
3602
|
if (($n(target).size__I() > 1)) {
|
|
3573
|
-
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(
|
|
3603
|
+
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x242).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(x241).Lcom_vinctus_oql_Ident__f_s) + "'"), dml)
|
|
3574
3604
|
};
|
|
3575
3605
|
if (($n(target).size__I() < 1)) {
|
|
3576
|
-
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(
|
|
3606
|
+
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x242).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(x241).Lcom_vinctus_oql_Ident__f_s) + "'"), dml)
|
|
3577
3607
|
};
|
|
3578
|
-
var $$x4 = $n(
|
|
3608
|
+
var $$x4 = $n(x247);
|
|
3579
3609
|
var $$x3 = $n($n(x$1$13).Lcom_vinctus_oql_DMLAttribute__f_name).Lcom_vinctus_oql_Ident__f_s;
|
|
3580
|
-
var this$111 = $n(
|
|
3610
|
+
var this$111 = $n(x247);
|
|
3581
3611
|
var key$3 = $n($n(x$1$13).Lcom_vinctus_oql_DMLAttribute__f_name).Lcom_vinctus_oql_Ident__f_s;
|
|
3582
3612
|
var \u03b42$ = $as_Lcom_vinctus_oql_Attribute($f_sc_MapOps__apply__O__O(this$111, key$3));
|
|
3583
3613
|
var link = $n(linkinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity;
|
|
@@ -3596,50 +3626,50 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3596
3626
|
$n($$x4).update__O__O__V($$x3, new $c_Lcom_vinctus_oql_Attribute(name$1$1, column$1, pk$1$1, required$1, typ$1));
|
|
3597
3627
|
break matchResult25
|
|
3598
3628
|
};
|
|
3599
|
-
if ((
|
|
3600
|
-
var x$1$19 = $as_Lcom_vinctus_oql_DMLNameType(
|
|
3629
|
+
if ((x236 instanceof $c_Lcom_vinctus_oql_DMLNameType)) {
|
|
3630
|
+
var x$1$19 = $as_Lcom_vinctus_oql_DMLNameType(x236);
|
|
3601
3631
|
var this$119 = $n(x$1$19);
|
|
3602
|
-
var
|
|
3603
|
-
if (entities.contains__O__Z($n(
|
|
3604
|
-
var key$4 = $n(
|
|
3632
|
+
var x232 = this$119.Lcom_vinctus_oql_DMLNameType__f_entity;
|
|
3633
|
+
if (entities.contains__O__Z($n(x232).Lcom_vinctus_oql_Ident__f_s)) {
|
|
3634
|
+
var key$4 = $n(x232).Lcom_vinctus_oql_Ident__f_s;
|
|
3605
3635
|
var $$x5 = $n($n($n($as_Lcom_vinctus_oql_DataModel$EntityInfo($f_sc_MapOps__apply__O__O(entities, key$4))).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).pk__s_Option()).isEmpty__Z()
|
|
3606
3636
|
} else {
|
|
3607
3637
|
var $$x5 = false
|
|
3608
3638
|
};
|
|
3609
3639
|
if ($$x5) {
|
|
3610
|
-
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(
|
|
3640
|
+
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x232).Lcom_vinctus_oql_Ident__f_pos, (("target entity '" + $n(x232).Lcom_vinctus_oql_Ident__f_s) + "' has no declared primary key"), dml)
|
|
3611
3641
|
};
|
|
3612
3642
|
break matchResult25
|
|
3613
3643
|
};
|
|
3614
|
-
if ((
|
|
3615
|
-
var x$1$20 = $as_Lcom_vinctus_oql_DMLOneToOneType(
|
|
3644
|
+
if ((x236 instanceof $c_Lcom_vinctus_oql_DMLOneToOneType)) {
|
|
3645
|
+
var x$1$20 = $as_Lcom_vinctus_oql_DMLOneToOneType(x236);
|
|
3616
3646
|
var this$121 = $n(x$1$20);
|
|
3617
|
-
var
|
|
3647
|
+
var x222 = this$121.Lcom_vinctus_oql_DMLOneToOneType__f_entity;
|
|
3618
3648
|
var this$122 = $n(x$1$20);
|
|
3619
|
-
var
|
|
3620
|
-
var key$5 = $n(
|
|
3649
|
+
var x223 = this$122.Lcom_vinctus_oql_DMLOneToOneType__f_attr;
|
|
3650
|
+
var key$5 = $n(x222).Lcom_vinctus_oql_Ident__f_s;
|
|
3621
3651
|
var entityinfo = $as_Lcom_vinctus_oql_DataModel$EntityInfo($f_sc_MapOps__apply__O__O(entities, key$5));
|
|
3622
3652
|
matchResult21: {
|
|
3623
3653
|
var newtyp;
|
|
3624
|
-
if ((
|
|
3625
|
-
var id = $as_Lcom_vinctus_oql_Ident($n($as_s_Some(
|
|
3626
|
-
var
|
|
3627
|
-
if ((
|
|
3628
|
-
var
|
|
3629
|
-
if ((
|
|
3630
|
-
var this$124 = $n(
|
|
3631
|
-
var this$125 = $n(
|
|
3632
|
-
var this$126 = $n(
|
|
3633
|
-
var this$127 = $n(
|
|
3634
|
-
var this$128 = $n(
|
|
3635
|
-
var
|
|
3636
|
-
if ((
|
|
3637
|
-
var x$1$21 = $as_Lcom_vinctus_oql_ManyToOneType(
|
|
3654
|
+
if ((x223 instanceof $c_s_Some)) {
|
|
3655
|
+
var id = $as_Lcom_vinctus_oql_Ident($n($as_s_Some(x223)).s_Some__f_value);
|
|
3656
|
+
var x142 = $n($n(entityinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_attrs).get__O__s_Option($n(id).Lcom_vinctus_oql_Ident__f_s);
|
|
3657
|
+
if ((x142 instanceof $c_s_Some)) {
|
|
3658
|
+
var x146 = $as_Lcom_vinctus_oql_Attribute($n($as_s_Some(x142)).s_Some__f_value);
|
|
3659
|
+
if ((x146 !== null)) {
|
|
3660
|
+
var this$124 = $n(x146);
|
|
3661
|
+
var this$125 = $n(x146);
|
|
3662
|
+
var this$126 = $n(x146);
|
|
3663
|
+
var this$127 = $n(x146);
|
|
3664
|
+
var this$128 = $n(x146);
|
|
3665
|
+
var x152 = this$128.Lcom_vinctus_oql_Attribute__f_typ;
|
|
3666
|
+
if ((x152 instanceof $c_Lcom_vinctus_oql_ManyToOneType)) {
|
|
3667
|
+
var x$1$21 = $as_Lcom_vinctus_oql_ManyToOneType(x152);
|
|
3638
3668
|
var this$130 = $n(x$1$21);
|
|
3639
|
-
var
|
|
3640
|
-
if (((
|
|
3669
|
+
var x155 = this$130.Lcom_vinctus_oql_ManyToOneType__f_entity;
|
|
3670
|
+
if (((x245 === null) ? (x155 === null) : $n(x245).equals__O__Z(x155))) {
|
|
3641
3671
|
var entity$2 = $n(entityinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity;
|
|
3642
|
-
var newtyp = new $c_Lcom_vinctus_oql_OneToOneType(entity$2,
|
|
3672
|
+
var newtyp = new $c_Lcom_vinctus_oql_OneToOneType(entity$2, x146);
|
|
3643
3673
|
break matchResult21
|
|
3644
3674
|
}
|
|
3645
3675
|
}
|
|
@@ -3648,14 +3678,14 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3648
3678
|
break matchResult21
|
|
3649
3679
|
};
|
|
3650
3680
|
var x$3$2 = $m_s_None$();
|
|
3651
|
-
if ((x$3$2 ===
|
|
3681
|
+
if ((x$3$2 === x142)) {
|
|
3652
3682
|
var newtyp = $m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(id).Lcom_vinctus_oql_Ident__f_pos, (((("entity '" + $n($n(entityinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' does not have attribute '") + $n(id).Lcom_vinctus_oql_Ident__f_s) + "'"), dml);
|
|
3653
3683
|
break matchResult21
|
|
3654
3684
|
};
|
|
3655
|
-
throw new $c_s_MatchError(
|
|
3685
|
+
throw new $c_s_MatchError(x142)
|
|
3656
3686
|
};
|
|
3657
3687
|
var x$5$1 = $m_s_None$();
|
|
3658
|
-
if ((x$5$1 ===
|
|
3688
|
+
if ((x$5$1 === x223)) {
|
|
3659
3689
|
var this$132 = $n($n(entityinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_attrs);
|
|
3660
3690
|
var this$141 = new $c_sc_MapOps$$anon$1(this$132);
|
|
3661
3691
|
var pred$2 = new $c_sjsr_AnonFunction1(((x$1$4$2) => {
|
|
@@ -3666,12 +3696,12 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3666
3696
|
var this$136 = $n(x$1$22);
|
|
3667
3697
|
var this$137 = $n(x$1$22);
|
|
3668
3698
|
var this$138 = $n(x$1$22);
|
|
3669
|
-
var
|
|
3670
|
-
if ((
|
|
3671
|
-
var x$1$23 = $as_Lcom_vinctus_oql_ManyToOneType(
|
|
3699
|
+
var x162 = this$138.Lcom_vinctus_oql_Attribute__f_typ;
|
|
3700
|
+
if ((x162 instanceof $c_Lcom_vinctus_oql_ManyToOneType)) {
|
|
3701
|
+
var x$1$23 = $as_Lcom_vinctus_oql_ManyToOneType(x162);
|
|
3672
3702
|
var this$140 = $n(x$1$23);
|
|
3673
|
-
var
|
|
3674
|
-
if (((
|
|
3703
|
+
var x165 = this$140.Lcom_vinctus_oql_ManyToOneType__f_entity;
|
|
3704
|
+
if (((x245 === null) ? (x165 === null) : $n(x245).equals__O__Z(x165))) {
|
|
3675
3705
|
return true
|
|
3676
3706
|
}
|
|
3677
3707
|
}
|
|
@@ -3680,21 +3710,21 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3680
3710
|
}));
|
|
3681
3711
|
var attrs = $as_sc_Iterable($f_sc_IterableOps__filter__F1__O(this$141, pred$2));
|
|
3682
3712
|
if (($n(attrs).size__I() > 1)) {
|
|
3683
|
-
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(
|
|
3713
|
+
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x222).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(x245).Lcom_vinctus_oql_Entity__f_name) + "'"), dml)
|
|
3684
3714
|
};
|
|
3685
3715
|
if (($n(attrs).size__I() < 1)) {
|
|
3686
|
-
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(
|
|
3716
|
+
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x222).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(x245).Lcom_vinctus_oql_Entity__f_name) + "'"), dml)
|
|
3687
3717
|
};
|
|
3688
3718
|
var entity$3 = $n(entityinfo).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity;
|
|
3689
3719
|
var attribute = $as_Lcom_vinctus_oql_Attribute($n(attrs).head__O());
|
|
3690
3720
|
var newtyp = new $c_Lcom_vinctus_oql_OneToOneType(entity$3, attribute);
|
|
3691
3721
|
break matchResult21
|
|
3692
3722
|
};
|
|
3693
|
-
throw new $c_s_MatchError(
|
|
3723
|
+
throw new $c_s_MatchError(x223)
|
|
3694
3724
|
};
|
|
3695
|
-
var $$x7 = $n(
|
|
3725
|
+
var $$x7 = $n(x247);
|
|
3696
3726
|
var $$x6 = $n($n(x$1$13).Lcom_vinctus_oql_DMLAttribute__f_name).Lcom_vinctus_oql_Ident__f_s;
|
|
3697
|
-
var this$143 = $n(
|
|
3727
|
+
var this$143 = $n(x247);
|
|
3698
3728
|
var key$6 = $n($n(x$1$13).Lcom_vinctus_oql_DMLAttribute__f_name).Lcom_vinctus_oql_Ident__f_s;
|
|
3699
3729
|
var \u03b43$ = $as_Lcom_vinctus_oql_Attribute($f_sc_MapOps__apply__O__O(this$143, key$6));
|
|
3700
3730
|
$n(\u03b43$);
|
|
@@ -3709,35 +3739,35 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3709
3739
|
$n($$x7).update__O__O__V($$x6, new $c_Lcom_vinctus_oql_Attribute(name$3, column$2, pk$2, required$2, newtyp));
|
|
3710
3740
|
break matchResult25
|
|
3711
3741
|
};
|
|
3712
|
-
if ((
|
|
3713
|
-
var x$1$24 = $as_Lcom_vinctus_oql_DMLOneToManyType(
|
|
3742
|
+
if ((x236 instanceof $c_Lcom_vinctus_oql_DMLOneToManyType)) {
|
|
3743
|
+
var x$1$24 = $as_Lcom_vinctus_oql_DMLOneToManyType(x236);
|
|
3714
3744
|
var this$150 = $n(x$1$24);
|
|
3715
|
-
var
|
|
3745
|
+
var x212 = this$150.Lcom_vinctus_oql_DMLOneToManyType__f_entity;
|
|
3716
3746
|
var this$151 = $n(x$1$24);
|
|
3717
|
-
var
|
|
3718
|
-
var key$7 = $n(
|
|
3747
|
+
var x213 = this$151.Lcom_vinctus_oql_DMLOneToManyType__f_attr;
|
|
3748
|
+
var key$7 = $n(x212).Lcom_vinctus_oql_Ident__f_s;
|
|
3719
3749
|
var entityinfo$2 = $as_Lcom_vinctus_oql_DataModel$EntityInfo($f_sc_MapOps__apply__O__O(entities, key$7));
|
|
3720
3750
|
matchResult24: {
|
|
3721
3751
|
var newtyp$2;
|
|
3722
|
-
if ((
|
|
3723
|
-
var id$2 = $as_Lcom_vinctus_oql_Ident($n($as_s_Some(
|
|
3724
|
-
var
|
|
3725
|
-
if ((
|
|
3726
|
-
var
|
|
3727
|
-
if ((
|
|
3728
|
-
var this$153 = $n(
|
|
3729
|
-
var this$154 = $n(
|
|
3730
|
-
var this$155 = $n(
|
|
3731
|
-
var this$156 = $n(
|
|
3732
|
-
var this$157 = $n(
|
|
3733
|
-
var
|
|
3734
|
-
if ((
|
|
3735
|
-
var x$1$25 = $as_Lcom_vinctus_oql_ManyToOneType(
|
|
3752
|
+
if ((x213 instanceof $c_s_Some)) {
|
|
3753
|
+
var id$2 = $as_Lcom_vinctus_oql_Ident($n($as_s_Some(x213)).s_Some__f_value);
|
|
3754
|
+
var x169 = $n($n(entityinfo$2).Lcom_vinctus_oql_DataModel$EntityInfo__f_attrs).get__O__s_Option($n(id$2).Lcom_vinctus_oql_Ident__f_s);
|
|
3755
|
+
if ((x169 instanceof $c_s_Some)) {
|
|
3756
|
+
var x173 = $as_Lcom_vinctus_oql_Attribute($n($as_s_Some(x169)).s_Some__f_value);
|
|
3757
|
+
if ((x173 !== null)) {
|
|
3758
|
+
var this$153 = $n(x173);
|
|
3759
|
+
var this$154 = $n(x173);
|
|
3760
|
+
var this$155 = $n(x173);
|
|
3761
|
+
var this$156 = $n(x173);
|
|
3762
|
+
var this$157 = $n(x173);
|
|
3763
|
+
var x179 = this$157.Lcom_vinctus_oql_Attribute__f_typ;
|
|
3764
|
+
if ((x179 instanceof $c_Lcom_vinctus_oql_ManyToOneType)) {
|
|
3765
|
+
var x$1$25 = $as_Lcom_vinctus_oql_ManyToOneType(x179);
|
|
3736
3766
|
var this$159 = $n(x$1$25);
|
|
3737
|
-
var
|
|
3738
|
-
if (((
|
|
3767
|
+
var x182 = this$159.Lcom_vinctus_oql_ManyToOneType__f_entity;
|
|
3768
|
+
if (((x245 === null) ? (x182 === null) : $n(x245).equals__O__Z(x182))) {
|
|
3739
3769
|
var entity$4 = $n(entityinfo$2).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity;
|
|
3740
|
-
var newtyp$2 = new $c_Lcom_vinctus_oql_OneToManyType(entity$4,
|
|
3770
|
+
var newtyp$2 = new $c_Lcom_vinctus_oql_OneToManyType(entity$4, x173);
|
|
3741
3771
|
break matchResult24
|
|
3742
3772
|
}
|
|
3743
3773
|
}
|
|
@@ -3746,14 +3776,14 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3746
3776
|
break matchResult24
|
|
3747
3777
|
};
|
|
3748
3778
|
var x$9 = $m_s_None$();
|
|
3749
|
-
if ((x$9 ===
|
|
3779
|
+
if ((x$9 === x169)) {
|
|
3750
3780
|
var newtyp$2 = $m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(id$2).Lcom_vinctus_oql_Ident__f_pos, (((("entity '" + $n($n(entityinfo$2).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity).Lcom_vinctus_oql_Entity__f_name) + "' does not have attribute '") + $n(id$2).Lcom_vinctus_oql_Ident__f_s) + "'"), dml);
|
|
3751
3781
|
break matchResult24
|
|
3752
3782
|
};
|
|
3753
|
-
throw new $c_s_MatchError(
|
|
3783
|
+
throw new $c_s_MatchError(x169)
|
|
3754
3784
|
};
|
|
3755
3785
|
var x$11 = $m_s_None$();
|
|
3756
|
-
if ((x$11 ===
|
|
3786
|
+
if ((x$11 === x213)) {
|
|
3757
3787
|
var this$161 = $n($n(entityinfo$2).Lcom_vinctus_oql_DataModel$EntityInfo__f_attrs);
|
|
3758
3788
|
var this$170 = new $c_sc_MapOps$$anon$1(this$161);
|
|
3759
3789
|
var pred$3 = new $c_sjsr_AnonFunction1(((x$1$5$1) => {
|
|
@@ -3764,12 +3794,12 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3764
3794
|
var this$165 = $n(x$1$26);
|
|
3765
3795
|
var this$166 = $n(x$1$26);
|
|
3766
3796
|
var this$167 = $n(x$1$26);
|
|
3767
|
-
var
|
|
3768
|
-
if ((
|
|
3769
|
-
var x$1$27 = $as_Lcom_vinctus_oql_ManyToOneType(
|
|
3797
|
+
var x189 = this$167.Lcom_vinctus_oql_Attribute__f_typ;
|
|
3798
|
+
if ((x189 instanceof $c_Lcom_vinctus_oql_ManyToOneType)) {
|
|
3799
|
+
var x$1$27 = $as_Lcom_vinctus_oql_ManyToOneType(x189);
|
|
3770
3800
|
var this$169 = $n(x$1$27);
|
|
3771
|
-
var
|
|
3772
|
-
if (((
|
|
3801
|
+
var x192 = this$169.Lcom_vinctus_oql_ManyToOneType__f_entity;
|
|
3802
|
+
if (((x245 === null) ? (x192 === null) : $n(x245).equals__O__Z(x192))) {
|
|
3773
3803
|
return true
|
|
3774
3804
|
}
|
|
3775
3805
|
}
|
|
@@ -3778,21 +3808,21 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3778
3808
|
}));
|
|
3779
3809
|
var attrs$2 = $as_sc_Iterable($f_sc_IterableOps__filter__F1__O(this$170, pred$3));
|
|
3780
3810
|
if (($n(attrs$2).size__I() > 1)) {
|
|
3781
|
-
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(
|
|
3811
|
+
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x212).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(x245).Lcom_vinctus_oql_Entity__f_name) + "'"), dml)
|
|
3782
3812
|
};
|
|
3783
3813
|
if (($n(attrs$2).size__I() < 1)) {
|
|
3784
|
-
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(
|
|
3814
|
+
$m_Lcom_vinctus_oql_package$().printError__s_util_parsing_input_Position__T__T__N($n(x212).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(x245).Lcom_vinctus_oql_Entity__f_name) + "'"), dml)
|
|
3785
3815
|
};
|
|
3786
3816
|
var entity$5 = $n(entityinfo$2).Lcom_vinctus_oql_DataModel$EntityInfo__f_entity;
|
|
3787
3817
|
var attribute$1 = $as_Lcom_vinctus_oql_Attribute($n(attrs$2).head__O());
|
|
3788
3818
|
var newtyp$2 = new $c_Lcom_vinctus_oql_OneToManyType(entity$5, attribute$1);
|
|
3789
3819
|
break matchResult24
|
|
3790
3820
|
};
|
|
3791
|
-
throw new $c_s_MatchError(
|
|
3821
|
+
throw new $c_s_MatchError(x213)
|
|
3792
3822
|
};
|
|
3793
|
-
var $$x9 = $n(
|
|
3823
|
+
var $$x9 = $n(x247);
|
|
3794
3824
|
var $$x8 = $n($n(x$1$13).Lcom_vinctus_oql_DMLAttribute__f_name).Lcom_vinctus_oql_Ident__f_s;
|
|
3795
|
-
var this$172 = $n(
|
|
3825
|
+
var this$172 = $n(x247);
|
|
3796
3826
|
var key$8 = $n($n(x$1$13).Lcom_vinctus_oql_DMLAttribute__f_name).Lcom_vinctus_oql_Ident__f_s;
|
|
3797
3827
|
var \u03b44$ = $as_Lcom_vinctus_oql_Attribute($f_sc_MapOps__apply__O__O(this$172, key$8));
|
|
3798
3828
|
$n(\u03b44$);
|
|
@@ -3807,15 +3837,15 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3807
3837
|
$n($$x9).update__O__O__V($$x8, new $c_Lcom_vinctus_oql_Attribute(name$4, column$3, pk$3, required$3, newtyp$2));
|
|
3808
3838
|
break matchResult25
|
|
3809
3839
|
};
|
|
3810
|
-
if ($is_Lcom_vinctus_oql_DMLDataType(
|
|
3840
|
+
if ($is_Lcom_vinctus_oql_DMLDataType(x236)) {
|
|
3811
3841
|
break matchResult25
|
|
3812
3842
|
}
|
|
3813
3843
|
};
|
|
3814
3844
|
throw new $c_s_MatchError(x$1$13)
|
|
3815
3845
|
}
|
|
3816
3846
|
})));
|
|
3817
|
-
var $$x10 = $n(
|
|
3818
|
-
var this$179 = $n(
|
|
3847
|
+
var $$x10 = $n(x245);
|
|
3848
|
+
var this$179 = $n(x247);
|
|
3819
3849
|
var factory = $m_sci_VectorMap$();
|
|
3820
3850
|
var factory$1 = new $c_sc_MapFactory$ToFactory(factory);
|
|
3821
3851
|
$$x10.Lcom_vinctus_oql_Entity__f__attributes = $as_sci_Map(factory$1.fromSpecific__sc_IterableOnce__O(this$179));
|
|
@@ -3839,17 +3869,17 @@ function $c_Lcom_vinctus_oql_DataModel(model, dml) {
|
|
|
3839
3869
|
var _1$1 = factory$3.fromSpecific__sc_IterableOnce__O(this$183);
|
|
3840
3870
|
var this$184 = $m_s_$less$colon$less$();
|
|
3841
3871
|
var _2$1 = $m_sci_Map$().from__sc_IterableOnce__sci_Map(enums);
|
|
3842
|
-
var
|
|
3843
|
-
var
|
|
3844
|
-
var
|
|
3845
|
-
if ((
|
|
3846
|
-
if ((
|
|
3847
|
-
var \u03b41$___1 =
|
|
3848
|
-
var \u03b41$___2 =
|
|
3872
|
+
var x248 = new $c_T2(_1$1, _2$1);
|
|
3873
|
+
var x249 = $as_sci_VectorMap(x248.T2__f__1);
|
|
3874
|
+
var x250 = $as_sci_Map(x248.T2__f__2);
|
|
3875
|
+
if ((x249 !== null)) {
|
|
3876
|
+
if ((x250 !== null)) {
|
|
3877
|
+
var \u03b41$___1 = x249;
|
|
3878
|
+
var \u03b41$___2 = x250;
|
|
3849
3879
|
break matchResult27
|
|
3850
3880
|
}
|
|
3851
3881
|
};
|
|
3852
|
-
throw new $c_s_MatchError(
|
|
3882
|
+
throw new $c_s_MatchError(x248)
|
|
3853
3883
|
};
|
|
3854
3884
|
this.Lcom_vinctus_oql_DataModel__f_entities = $as_sci_Map(\u03b41$___1);
|
|
3855
3885
|
this.Lcom_vinctus_oql_DataModel__f_enums = $as_sci_Map(\u03b41$___2);
|
|
@@ -6253,11 +6283,12 @@ $c_Lcom_vinctus_oql_SQLQueryBuilder.prototype.expression__Lcom_vinctus_oql_OQLEx
|
|
|
6253
6283
|
if ((expr instanceof $c_Lcom_vinctus_oql_TypedOQLExpression)) {
|
|
6254
6284
|
var x$1$11 = $as_Lcom_vinctus_oql_TypedOQLExpression(expr);
|
|
6255
6285
|
var this$47 = $n(x$1$11);
|
|
6256
|
-
var x73 = this$47.
|
|
6286
|
+
var x73 = this$47.Lcom_vinctus_oql_TypedOQLExpression__f_expr;
|
|
6257
6287
|
var this$48 = $n(x$1$11);
|
|
6258
6288
|
var x74 = this$48.Lcom_vinctus_oql_TypedOQLExpression__f_t;
|
|
6259
6289
|
var this$49 = $n(this.Lcom_vinctus_oql_SQLQueryBuilder__f_com$vinctus$oql$SQLQueryBuilder$$ds);
|
|
6260
|
-
|
|
6290
|
+
var a = this.expression__Lcom_vinctus_oql_OQLExpression__T__T(x73, table);
|
|
6291
|
+
return $f_Lcom_vinctus_oql_SQLDataSource__typed__O__Lcom_vinctus_oql_Datatype__T(this$49, a, x74)
|
|
6261
6292
|
};
|
|
6262
6293
|
if ((expr instanceof $c_Lcom_vinctus_oql_FloatOQLExpression)) {
|
|
6263
6294
|
var x$1$12 = $as_Lcom_vinctus_oql_FloatOQLExpression(expr);
|
|
@@ -30996,24 +31027,40 @@ function $f_Lcom_vinctus_oql_SQLDataSource__string__T__T($thiz, s) {
|
|
|
30996
31027
|
}
|
|
30997
31028
|
function $f_Lcom_vinctus_oql_SQLDataSource__typed__O__Lcom_vinctus_oql_Datatype__T($thiz, a, typ) {
|
|
30998
31029
|
if (((typeof a) === "string")) {
|
|
30999
|
-
var
|
|
31030
|
+
var x25 = $as_T(a);
|
|
31000
31031
|
var x = $m_Lcom_vinctus_oql_TextType$();
|
|
31001
31032
|
if ((x === typ)) {
|
|
31002
|
-
return $thiz.string__T__T(
|
|
31033
|
+
return $thiz.string__T__T(x25)
|
|
31003
31034
|
};
|
|
31004
31035
|
var x$3 = $m_Lcom_vinctus_oql_UUIDType$();
|
|
31005
31036
|
if ((x$3 === typ)) {
|
|
31006
|
-
return (("
|
|
31037
|
+
return (("'" + x25) + "'::UUID")
|
|
31038
|
+
};
|
|
31039
|
+
var x$5 = $m_Lcom_vinctus_oql_TimestampType$();
|
|
31040
|
+
if ((x$5 === typ)) {
|
|
31041
|
+
return (("'" + x25) + "'::TIMESTAMP")
|
|
31042
|
+
};
|
|
31043
|
+
var x$7 = $m_Lcom_vinctus_oql_DateType$();
|
|
31044
|
+
if ((x$7 === typ)) {
|
|
31045
|
+
return (("'" + x25) + "'::DATE")
|
|
31046
|
+
};
|
|
31047
|
+
var x$9 = $m_Lcom_vinctus_oql_JSONType$();
|
|
31048
|
+
if ((x$9 === typ)) {
|
|
31049
|
+
return (("'" + x25) + "'::JSON")
|
|
31050
|
+
};
|
|
31051
|
+
var x$11 = $m_Lcom_vinctus_oql_IntervalType$();
|
|
31052
|
+
if ((x$11 === typ)) {
|
|
31053
|
+
return (("'" + x25) + "'::INTERVAL")
|
|
31007
31054
|
}
|
|
31008
31055
|
};
|
|
31009
31056
|
matchAlts1: {
|
|
31010
31057
|
matchAlts2: {
|
|
31011
|
-
var x$
|
|
31012
|
-
if ((x$
|
|
31058
|
+
var x$13 = $m_Lcom_vinctus_oql_IntegerType$();
|
|
31059
|
+
if ((x$13 === typ)) {
|
|
31013
31060
|
break matchAlts2
|
|
31014
31061
|
};
|
|
31015
|
-
var x$
|
|
31016
|
-
if ((x$
|
|
31062
|
+
var x$15 = $m_Lcom_vinctus_oql_FloatType$();
|
|
31063
|
+
if ((x$15 === typ)) {
|
|
31017
31064
|
break matchAlts2
|
|
31018
31065
|
};
|
|
31019
31066
|
break matchAlts1
|
|
@@ -41761,7 +41808,7 @@ $c_Lcom_vinctus_oql_DMLParser.prototype.attribute__s_util_parsing_combinator_Par
|
|
|
41761
41808
|
});
|
|
41762
41809
|
$c_Lcom_vinctus_oql_DMLParser.prototype.typeSpecifier__s_util_parsing_combinator_Parsers$Parser = (function() {
|
|
41763
41810
|
var r = this.kw__T__s_util_matching_Regex("text");
|
|
41764
|
-
return $n($n($n($n($n($n($n($n($n($n($n($n($n($n($n($n($n($n(new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r, this).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
41811
|
+
return $n($n($n($n($n($n($n($n($n($n($n($n($n($n($n($n($n($n($n($n(new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r, this).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
41765
41812
|
var r$1 = this.kw__T__s_util_matching_Regex("json");
|
|
41766
41813
|
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$1, this)
|
|
41767
41814
|
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
@@ -41789,23 +41836,29 @@ $c_Lcom_vinctus_oql_DMLParser.prototype.typeSpecifier__s_util_parsing_combinator
|
|
|
41789
41836
|
var r$9 = this.kw__T__s_util_matching_Regex("date");
|
|
41790
41837
|
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$9, this)
|
|
41791
41838
|
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
41792
|
-
var r$10 = this.kw__T__s_util_matching_Regex("
|
|
41839
|
+
var r$10 = this.kw__T__s_util_matching_Regex("time");
|
|
41793
41840
|
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$10, this)
|
|
41794
41841
|
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
41795
|
-
var r$11 = this.kw__T__s_util_matching_Regex("
|
|
41842
|
+
var r$11 = this.kw__T__s_util_matching_Regex("interval");
|
|
41796
41843
|
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$11, this)
|
|
41797
41844
|
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
41798
|
-
var r$12 = this.kw__T__s_util_matching_Regex("
|
|
41845
|
+
var r$12 = this.kw__T__s_util_matching_Regex("float8");
|
|
41799
41846
|
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$12, this)
|
|
41800
41847
|
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
41801
|
-
var r$13 = this.kw__T__s_util_matching_Regex("
|
|
41848
|
+
var r$13 = this.kw__T__s_util_matching_Regex("float");
|
|
41802
41849
|
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$13, this)
|
|
41850
|
+
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
41851
|
+
var r$14 = this.kw__T__s_util_matching_Regex("uuid");
|
|
41852
|
+
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$14, this)
|
|
41853
|
+
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
41854
|
+
var r$15 = this.kw__T__s_util_matching_Regex("timestamp");
|
|
41855
|
+
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$15, this)
|
|
41803
41856
|
})))).$up$up__F1__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction1(((typ) => {
|
|
41804
41857
|
var typ$1 = $as_T(typ);
|
|
41805
41858
|
return new $c_Lcom_vinctus_oql_DMLSimpleDataType(typ$1)
|
|
41806
41859
|
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
41807
|
-
var r$
|
|
41808
|
-
return $n($n($n($n($n(new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$
|
|
41860
|
+
var r$16 = this.kw__T__s_util_matching_Regex("decimal");
|
|
41861
|
+
return $n($n($n($n($n(new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$16, this).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => new $c_s_util_parsing_combinator_RegexParsers$$anon$1("(", this))))).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.integer__s_util_parsing_combinator_Parsers$Parser())))).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => new $c_s_util_parsing_combinator_RegexParsers$$anon$1(",", this))))).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.integer__s_util_parsing_combinator_Parsers$Parser())))).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => new $c_s_util_parsing_combinator_RegexParsers$$anon$1(")", this))))).$up$up__F1__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction1(((x$1) => {
|
|
41809
41862
|
var x$1$1 = $as_s_util_parsing_combinator_Parsers$$tilde(x$1);
|
|
41810
41863
|
if ((x$1$1 !== null)) {
|
|
41811
41864
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
@@ -42181,6 +42234,18 @@ function $f_Lcom_vinctus_oql_PGDataSource__reverseMapType__T__Lcom_vinctus_oql_D
|
|
|
42181
42234
|
var $$x1 = $m_Lcom_vinctus_oql_BigintType$();
|
|
42182
42235
|
break
|
|
42183
42236
|
}
|
|
42237
|
+
case "time": {
|
|
42238
|
+
var $$x1 = $m_Lcom_vinctus_oql_TimeType$();
|
|
42239
|
+
break
|
|
42240
|
+
}
|
|
42241
|
+
case "date": {
|
|
42242
|
+
var $$x1 = $m_Lcom_vinctus_oql_DateType$();
|
|
42243
|
+
break
|
|
42244
|
+
}
|
|
42245
|
+
case "interval": {
|
|
42246
|
+
var $$x1 = $m_Lcom_vinctus_oql_IntervalType$();
|
|
42247
|
+
break
|
|
42248
|
+
}
|
|
42184
42249
|
case "double precision": {
|
|
42185
42250
|
var $$x1 = $m_Lcom_vinctus_oql_FloatType$();
|
|
42186
42251
|
break
|
|
@@ -51110,6 +51175,10 @@ function $c_Lcom_vinctus_oql_OQLParser$() {
|
|
|
51110
51175
|
this.Lcom_vinctus_oql_OQLParser$__f_attributeNamebitmap$1 = false;
|
|
51111
51176
|
this.Lcom_vinctus_oql_OQLParser$__f_applyExpression$lzy1 = null;
|
|
51112
51177
|
this.Lcom_vinctus_oql_OQLParser$__f_applyExpressionbitmap$1 = false;
|
|
51178
|
+
this.Lcom_vinctus_oql_OQLParser$__f_simpleType$lzy1 = null;
|
|
51179
|
+
this.Lcom_vinctus_oql_OQLParser$__f_simpleTypebitmap$1 = false;
|
|
51180
|
+
this.Lcom_vinctus_oql_OQLParser$__f_castExpression$lzy1 = null;
|
|
51181
|
+
this.Lcom_vinctus_oql_OQLParser$__f_castExpressionbitmap$1 = false;
|
|
51113
51182
|
this.Lcom_vinctus_oql_OQLParser$__f_attributeExpression$lzy1 = null;
|
|
51114
51183
|
this.Lcom_vinctus_oql_OQLParser$__f_attributeExpressionbitmap$1 = false;
|
|
51115
51184
|
this.Lcom_vinctus_oql_OQLParser$__f_qualifiedAttributeExpression$lzy1 = null;
|
|
@@ -51614,6 +51683,53 @@ $c_Lcom_vinctus_oql_OQLParser$.prototype.applyExpression__s_util_parsing_combina
|
|
|
51614
51683
|
};
|
|
51615
51684
|
return this.Lcom_vinctus_oql_OQLParser$__f_applyExpression$lzy1
|
|
51616
51685
|
});
|
|
51686
|
+
$c_Lcom_vinctus_oql_OQLParser$.prototype.simpleType__s_util_parsing_combinator_PackratParsers$PackratParser = (function() {
|
|
51687
|
+
if ((!this.Lcom_vinctus_oql_OQLParser$__f_simpleTypebitmap$1)) {
|
|
51688
|
+
var p = new $c_sjsr_AnonFunction0((() => {
|
|
51689
|
+
var r = this.kw__T__s_util_matching_Regex("json");
|
|
51690
|
+
return $n($n($n($n($n(new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r, this).$up$up$up__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => $m_Lcom_vinctus_oql_JSONType$())))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
51691
|
+
var r$1 = this.kw__T__s_util_matching_Regex("date");
|
|
51692
|
+
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$1, this).$up$up$up__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => $m_Lcom_vinctus_oql_DateType$())))
|
|
51693
|
+
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
51694
|
+
var r$2 = this.kw__T__s_util_matching_Regex("time");
|
|
51695
|
+
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$2, this).$up$up$up__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => $m_Lcom_vinctus_oql_TimeType$())))
|
|
51696
|
+
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
51697
|
+
var r$3 = this.kw__T__s_util_matching_Regex("interval");
|
|
51698
|
+
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$3, this).$up$up$up__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => $m_Lcom_vinctus_oql_IntervalType$())))
|
|
51699
|
+
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
51700
|
+
var r$4 = this.kw__T__s_util_matching_Regex("uuid");
|
|
51701
|
+
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$4, this).$up$up$up__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => $m_Lcom_vinctus_oql_UUIDType$())))
|
|
51702
|
+
})))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => {
|
|
51703
|
+
var r$5 = this.kw__T__s_util_matching_Regex("timestamp");
|
|
51704
|
+
return new $c_s_util_parsing_combinator_RegexParsers$$anon$2(r$5, this).$up$up$up__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => $m_Lcom_vinctus_oql_TimestampType$())))
|
|
51705
|
+
})))
|
|
51706
|
+
}));
|
|
51707
|
+
this.Lcom_vinctus_oql_OQLParser$__f_simpleType$lzy1 = $f_s_util_parsing_combinator_PackratParsers__parser2packrat__F0__s_util_parsing_combinator_PackratParsers$PackratParser(this, p);
|
|
51708
|
+
this.Lcom_vinctus_oql_OQLParser$__f_simpleTypebitmap$1 = true
|
|
51709
|
+
};
|
|
51710
|
+
return this.Lcom_vinctus_oql_OQLParser$__f_simpleType$lzy1
|
|
51711
|
+
});
|
|
51712
|
+
$c_Lcom_vinctus_oql_OQLParser$.prototype.castExpression__s_util_parsing_combinator_PackratParsers$PackratParser = (function() {
|
|
51713
|
+
if ((!this.Lcom_vinctus_oql_OQLParser$__f_castExpressionbitmap$1)) {
|
|
51714
|
+
var p$1 = new $c_sjsr_AnonFunction0((() => $n($n($n(this.primary__s_util_parsing_combinator_PackratParsers$PackratParser()).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => new $c_s_util_parsing_combinator_RegexParsers$$anon$1("::", this))))).$tilde__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.simpleType__s_util_parsing_combinator_PackratParsers$PackratParser())))).$up$up__F1__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction1(((x$1) => {
|
|
51715
|
+
var x$1$1 = $as_s_util_parsing_combinator_Parsers$$tilde(x$1);
|
|
51716
|
+
if ((x$1$1 !== null)) {
|
|
51717
|
+
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
51718
|
+
var x142 = $as_s_util_parsing_combinator_Parsers$$tilde($n(x$1$1).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
51719
|
+
if ((x142 !== null)) {
|
|
51720
|
+
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
51721
|
+
var p = $as_Lcom_vinctus_oql_OQLExpression($n(x142).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
51722
|
+
var t = $as_Lcom_vinctus_oql_Datatype($n(x$1$1).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
51723
|
+
return new $c_Lcom_vinctus_oql_TypedOQLExpression(p, t)
|
|
51724
|
+
}
|
|
51725
|
+
};
|
|
51726
|
+
throw new $c_s_MatchError(x$1$1)
|
|
51727
|
+
})))));
|
|
51728
|
+
this.Lcom_vinctus_oql_OQLParser$__f_castExpression$lzy1 = $f_s_util_parsing_combinator_PackratParsers__parser2packrat__F0__s_util_parsing_combinator_PackratParsers$PackratParser(this, p$1);
|
|
51729
|
+
this.Lcom_vinctus_oql_OQLParser$__f_castExpressionbitmap$1 = true
|
|
51730
|
+
};
|
|
51731
|
+
return this.Lcom_vinctus_oql_OQLParser$__f_castExpression$lzy1
|
|
51732
|
+
});
|
|
51617
51733
|
$c_Lcom_vinctus_oql_OQLParser$.prototype.attributeExpression__s_util_parsing_combinator_PackratParsers$PackratParser = (function() {
|
|
51618
51734
|
if ((!this.Lcom_vinctus_oql_OQLParser$__f_attributeExpressionbitmap$1)) {
|
|
51619
51735
|
var p = new $c_sjsr_AnonFunction0((() => $n(this.identifier__s_util_parsing_combinator_PackratParsers$PackratParser()).$up$up__F1__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction1(((id) => {
|
|
@@ -51714,32 +51830,32 @@ $c_Lcom_vinctus_oql_OQLParser$.prototype.ordering__s_util_parsing_combinator_Pac
|
|
|
51714
51830
|
var x$1$2 = $as_s_util_parsing_combinator_Parsers$$tilde(x$1$1);
|
|
51715
51831
|
if ((x$1$2 !== null)) {
|
|
51716
51832
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
51717
|
-
var
|
|
51718
|
-
if ((
|
|
51833
|
+
var x168 = $as_s_util_parsing_combinator_Parsers$$tilde($n(x$1$2).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
51834
|
+
if ((x168 !== null)) {
|
|
51719
51835
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
51720
|
-
var e = $as_Lcom_vinctus_oql_OQLExpression($n(
|
|
51721
|
-
var d = $as_s_Option($n(
|
|
51836
|
+
var e = $as_Lcom_vinctus_oql_OQLExpression($n(x168).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
51837
|
+
var d = $as_s_Option($n(x168).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
51722
51838
|
var n = $as_s_Option($n(x$1$2).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
51723
|
-
|
|
51839
|
+
matchResult12: {
|
|
51724
51840
|
var ordering;
|
|
51725
|
-
var
|
|
51841
|
+
var x147 = new $c_T2(d, n);
|
|
51726
51842
|
matchAlts1: {
|
|
51727
51843
|
matchAlts2: {
|
|
51728
|
-
var
|
|
51729
|
-
var
|
|
51844
|
+
var x164 = $as_s_Option(x147.T2__f__1);
|
|
51845
|
+
var x165 = $as_s_Option(x147.T2__f__2);
|
|
51730
51846
|
var x$2 = $m_s_None$();
|
|
51731
|
-
if ((x$2 ===
|
|
51847
|
+
if ((x$2 === x164)) {
|
|
51732
51848
|
var x$3 = $m_s_None$();
|
|
51733
|
-
var $$x1 = (x$3 ===
|
|
51849
|
+
var $$x1 = (x$3 === x165)
|
|
51734
51850
|
} else {
|
|
51735
51851
|
var $$x1 = false
|
|
51736
51852
|
};
|
|
51737
51853
|
if ($$x1) {
|
|
51738
51854
|
break matchAlts2
|
|
51739
51855
|
};
|
|
51740
|
-
if (((
|
|
51856
|
+
if (((x164 instanceof $c_s_Some) && ($n($as_s_Some(x164)).s_Some__f_value === "ASC"))) {
|
|
51741
51857
|
var x$5 = $m_s_None$();
|
|
51742
|
-
var $$x2 = (x$5 ===
|
|
51858
|
+
var $$x2 = (x$5 === x165)
|
|
51743
51859
|
} else {
|
|
51744
51860
|
var $$x2 = false
|
|
51745
51861
|
};
|
|
@@ -51749,34 +51865,34 @@ $c_Lcom_vinctus_oql_OQLParser$.prototype.ordering__s_util_parsing_combinator_Pac
|
|
|
51749
51865
|
break matchAlts1
|
|
51750
51866
|
};
|
|
51751
51867
|
var ordering = "ASC NULLS FIRST";
|
|
51752
|
-
break
|
|
51868
|
+
break matchResult12
|
|
51753
51869
|
};
|
|
51754
|
-
var
|
|
51755
|
-
var
|
|
51870
|
+
var x156 = $as_s_Option(x147.T2__f__1);
|
|
51871
|
+
var x157 = $as_s_Option(x147.T2__f__2);
|
|
51756
51872
|
var x$7 = $m_s_None$();
|
|
51757
|
-
if (((x$7 ===
|
|
51758
|
-
var nulls = $as_T($n($as_s_Some(
|
|
51873
|
+
if (((x$7 === x156) && (x157 instanceof $c_s_Some))) {
|
|
51874
|
+
var nulls = $as_T($n($as_s_Some(x157)).s_Some__f_value);
|
|
51759
51875
|
var this$7 = $n(nulls);
|
|
51760
51876
|
var ordering = ("ASC NULLS " + $as_T(this$7.toUpperCase()));
|
|
51761
|
-
break
|
|
51877
|
+
break matchResult12
|
|
51762
51878
|
};
|
|
51763
51879
|
var x$9 = $m_s_None$();
|
|
51764
|
-
if ((x$9 ===
|
|
51880
|
+
if ((x$9 === x157)) {
|
|
51765
51881
|
var ordering = "DESC NULLS LAST";
|
|
51766
|
-
break
|
|
51882
|
+
break matchResult12
|
|
51767
51883
|
};
|
|
51768
|
-
if ((
|
|
51769
|
-
var dir = $as_T($n($as_s_Some(
|
|
51770
|
-
if ((
|
|
51771
|
-
var nulls$2 = $as_T($n($as_s_Some(
|
|
51884
|
+
if ((x156 instanceof $c_s_Some)) {
|
|
51885
|
+
var dir = $as_T($n($as_s_Some(x156)).s_Some__f_value);
|
|
51886
|
+
if ((x157 instanceof $c_s_Some)) {
|
|
51887
|
+
var nulls$2 = $as_T($n($as_s_Some(x157)).s_Some__f_value);
|
|
51772
51888
|
var this$8 = $n(dir);
|
|
51773
51889
|
var $$x3 = $as_T(this$8.toUpperCase());
|
|
51774
51890
|
var this$9 = $n(nulls$2);
|
|
51775
51891
|
var ordering = (($$x3 + " NULLS ") + $as_T(this$9.toUpperCase()));
|
|
51776
|
-
break
|
|
51892
|
+
break matchResult12
|
|
51777
51893
|
}
|
|
51778
51894
|
};
|
|
51779
|
-
throw new $c_s_MatchError(
|
|
51895
|
+
throw new $c_s_MatchError(x147)
|
|
51780
51896
|
};
|
|
51781
51897
|
return new $c_Lcom_vinctus_oql_OQLOrdering(e, ordering)
|
|
51782
51898
|
}
|
|
@@ -51842,10 +51958,10 @@ $c_Lcom_vinctus_oql_OQLParser$.prototype.orExpression__s_util_parsing_combinator
|
|
|
51842
51958
|
var x$1$1 = $as_s_util_parsing_combinator_Parsers$$tilde(x$1);
|
|
51843
51959
|
if ((x$1$1 !== null)) {
|
|
51844
51960
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
51845
|
-
var
|
|
51846
|
-
if ((
|
|
51961
|
+
var x179 = $as_s_util_parsing_combinator_Parsers$$tilde($n(x$1$1).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
51962
|
+
if ((x179 !== null)) {
|
|
51847
51963
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
51848
|
-
var l = $as_Lcom_vinctus_oql_OQLExpression($n(
|
|
51964
|
+
var l = $as_Lcom_vinctus_oql_OQLExpression($n(x179).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
51849
51965
|
var r$1 = $as_Lcom_vinctus_oql_OQLExpression($n(x$1$1).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
51850
51966
|
return new $c_Lcom_vinctus_oql_InfixOQLExpression(l, "OR", r$1)
|
|
51851
51967
|
}
|
|
@@ -51866,10 +51982,10 @@ $c_Lcom_vinctus_oql_OQLParser$.prototype.andExpression__s_util_parsing_combinato
|
|
|
51866
51982
|
var x$1$1 = $as_s_util_parsing_combinator_Parsers$$tilde(x$1);
|
|
51867
51983
|
if ((x$1$1 !== null)) {
|
|
51868
51984
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
51869
|
-
var
|
|
51870
|
-
if ((
|
|
51985
|
+
var x186 = $as_s_util_parsing_combinator_Parsers$$tilde($n(x$1$1).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
51986
|
+
if ((x186 !== null)) {
|
|
51871
51987
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
51872
|
-
var l = $as_Lcom_vinctus_oql_OQLExpression($n(
|
|
51988
|
+
var l = $as_Lcom_vinctus_oql_OQLExpression($n(x186).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
51873
51989
|
var r$1 = $as_Lcom_vinctus_oql_OQLExpression($n(x$1$1).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
51874
51990
|
return new $c_Lcom_vinctus_oql_InfixOQLExpression(l, "AND", r$1)
|
|
51875
51991
|
}
|
|
@@ -51901,11 +52017,11 @@ $c_Lcom_vinctus_oql_OQLParser$.prototype.booleanPrimary__s_util_parsing_combinat
|
|
|
51901
52017
|
var x$1$1 = $as_s_util_parsing_combinator_Parsers$$tilde(x$1);
|
|
51902
52018
|
if ((x$1$1 !== null)) {
|
|
51903
52019
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
51904
|
-
var
|
|
51905
|
-
if ((
|
|
52020
|
+
var x193 = $as_s_util_parsing_combinator_Parsers$$tilde($n(x$1$1).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
52021
|
+
if ((x193 !== null)) {
|
|
51906
52022
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
51907
|
-
var l = $as_Lcom_vinctus_oql_OQLExpression($n(
|
|
51908
|
-
var c = $as_T($n(
|
|
52023
|
+
var l = $as_Lcom_vinctus_oql_OQLExpression($n(x193).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
52024
|
+
var c = $as_T($n(x193).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
51909
52025
|
var r = $as_Lcom_vinctus_oql_OQLExpression($n(x$1$1).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
51910
52026
|
return new $c_Lcom_vinctus_oql_InfixOQLExpression(l, c, r)
|
|
51911
52027
|
}
|
|
@@ -51927,18 +52043,18 @@ $c_Lcom_vinctus_oql_OQLParser$.prototype.booleanPrimary__s_util_parsing_combinat
|
|
|
51927
52043
|
var x$1$3 = $as_s_util_parsing_combinator_Parsers$$tilde(x$1$2);
|
|
51928
52044
|
if ((x$1$3 !== null)) {
|
|
51929
52045
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
51930
|
-
var
|
|
51931
|
-
if ((
|
|
52046
|
+
var x200 = $as_s_util_parsing_combinator_Parsers$$tilde($n(x$1$3).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
52047
|
+
if ((x200 !== null)) {
|
|
51932
52048
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
51933
|
-
var
|
|
51934
|
-
if ((
|
|
52049
|
+
var x203 = $as_s_util_parsing_combinator_Parsers$$tilde($n(x200).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
52050
|
+
if ((x203 !== null)) {
|
|
51935
52051
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
51936
|
-
var
|
|
51937
|
-
if ((
|
|
52052
|
+
var x206 = $as_s_util_parsing_combinator_Parsers$$tilde($n(x203).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
52053
|
+
if ((x206 !== null)) {
|
|
51938
52054
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
51939
|
-
var e = $as_Lcom_vinctus_oql_OQLExpression($n(
|
|
51940
|
-
var b = $as_T($n(
|
|
51941
|
-
var l$1 = $as_Lcom_vinctus_oql_OQLExpression($n(
|
|
52055
|
+
var e = $as_Lcom_vinctus_oql_OQLExpression($n(x206).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
52056
|
+
var b = $as_T($n(x206).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
52057
|
+
var l$1 = $as_Lcom_vinctus_oql_OQLExpression($n(x203).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
51942
52058
|
var u = $as_Lcom_vinctus_oql_OQLExpression($n(x$1$3).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
51943
52059
|
return new $c_Lcom_vinctus_oql_BetweenOQLExpression(e, b, l$1, u)
|
|
51944
52060
|
}
|
|
@@ -51959,11 +52075,11 @@ $c_Lcom_vinctus_oql_OQLParser$.prototype.booleanPrimary__s_util_parsing_combinat
|
|
|
51959
52075
|
var x$1$7 = $as_s_util_parsing_combinator_Parsers$$tilde(x$1$6);
|
|
51960
52076
|
if ((x$1$7 !== null)) {
|
|
51961
52077
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
51962
|
-
var
|
|
51963
|
-
if ((
|
|
52078
|
+
var x217 = $as_s_util_parsing_combinator_Parsers$$tilde($n(x$1$7).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
52079
|
+
if ((x217 !== null)) {
|
|
51964
52080
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
51965
|
-
var e$2 = $as_Lcom_vinctus_oql_OQLExpression($n(
|
|
51966
|
-
var i = $as_T($n(
|
|
52081
|
+
var e$2 = $as_Lcom_vinctus_oql_OQLExpression($n(x217).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
52082
|
+
var i = $as_T($n(x217).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
51967
52083
|
var es = $as_sci_List($n(x$1$7).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
51968
52084
|
return new $c_Lcom_vinctus_oql_InArrayOQLExpression(e$2, i, es)
|
|
51969
52085
|
}
|
|
@@ -51973,11 +52089,11 @@ $c_Lcom_vinctus_oql_OQLParser$.prototype.booleanPrimary__s_util_parsing_combinat
|
|
|
51973
52089
|
var x$1$9 = $as_s_util_parsing_combinator_Parsers$$tilde(x$1$8);
|
|
51974
52090
|
if ((x$1$9 !== null)) {
|
|
51975
52091
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
51976
|
-
var
|
|
51977
|
-
if ((
|
|
52092
|
+
var x224 = $as_s_util_parsing_combinator_Parsers$$tilde($n(x$1$9).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
52093
|
+
if ((x224 !== null)) {
|
|
51978
52094
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
51979
|
-
var e$3 = $as_Lcom_vinctus_oql_OQLExpression($n(
|
|
51980
|
-
var i$1 = $as_T($n(
|
|
52095
|
+
var e$3 = $as_Lcom_vinctus_oql_OQLExpression($n(x224).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
52096
|
+
var i$1 = $as_T($n(x224).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
51981
52097
|
var q = $as_Lcom_vinctus_oql_OQLQuery($n(x$1$9).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
51982
52098
|
return new $c_Lcom_vinctus_oql_InQueryOQLExpression(e$3, i$1, q)
|
|
51983
52099
|
}
|
|
@@ -52097,11 +52213,11 @@ $c_Lcom_vinctus_oql_OQLParser$.prototype.additive__s_util_parsing_combinator_Pac
|
|
|
52097
52213
|
var x$1$1 = $as_s_util_parsing_combinator_Parsers$$tilde(x$1);
|
|
52098
52214
|
if ((x$1$1 !== null)) {
|
|
52099
52215
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
52100
|
-
var
|
|
52101
|
-
if ((
|
|
52216
|
+
var x231 = $as_s_util_parsing_combinator_Parsers$$tilde($n(x$1$1).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
52217
|
+
if ((x231 !== null)) {
|
|
52102
52218
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
52103
|
-
var l = $as_Lcom_vinctus_oql_OQLExpression($n(
|
|
52104
|
-
var o = $as_T($n(
|
|
52219
|
+
var l = $as_Lcom_vinctus_oql_OQLExpression($n(x231).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
52220
|
+
var o = $as_T($n(x231).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
52105
52221
|
var r = $as_Lcom_vinctus_oql_OQLExpression($n(x$1$1).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
52106
52222
|
return new $c_Lcom_vinctus_oql_InfixOQLExpression(l, o, r)
|
|
52107
52223
|
}
|
|
@@ -52119,11 +52235,11 @@ $c_Lcom_vinctus_oql_OQLParser$.prototype.multiplicative__s_util_parsing_combinat
|
|
|
52119
52235
|
var x$1$1 = $as_s_util_parsing_combinator_Parsers$$tilde(x$1);
|
|
52120
52236
|
if ((x$1$1 !== null)) {
|
|
52121
52237
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
52122
|
-
var
|
|
52123
|
-
if ((
|
|
52238
|
+
var x238 = $as_s_util_parsing_combinator_Parsers$$tilde($n(x$1$1).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
52239
|
+
if ((x238 !== null)) {
|
|
52124
52240
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
52125
|
-
var l = $as_Lcom_vinctus_oql_OQLExpression($n(
|
|
52126
|
-
var o = $as_T($n(
|
|
52241
|
+
var l = $as_Lcom_vinctus_oql_OQLExpression($n(x238).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
52242
|
+
var o = $as_T($n(x238).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
52127
52243
|
var r = $as_Lcom_vinctus_oql_OQLExpression($n(x$1$1).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
52128
52244
|
return new $c_Lcom_vinctus_oql_InfixOQLExpression(l, o, r)
|
|
52129
52245
|
}
|
|
@@ -52174,10 +52290,10 @@ $c_Lcom_vinctus_oql_OQLParser$.prototype.pair__s_util_parsing_combinator_Packrat
|
|
|
52174
52290
|
var x$1$1 = $as_s_util_parsing_combinator_Parsers$$tilde(x$1);
|
|
52175
52291
|
if ((x$1$1 !== null)) {
|
|
52176
52292
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
52177
|
-
var
|
|
52178
|
-
if ((
|
|
52293
|
+
var x245 = $as_s_util_parsing_combinator_Parsers$$tilde($n(x$1$1).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
52294
|
+
if ((x245 !== null)) {
|
|
52179
52295
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
52180
|
-
var k = $as_T($n(
|
|
52296
|
+
var k = $as_T($n(x245).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
52181
52297
|
var v = $as_Lcom_vinctus_oql_OQLExpression($n(x$1$1).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
52182
52298
|
return new $c_T2(k, v)
|
|
52183
52299
|
}
|
|
@@ -52232,7 +52348,7 @@ $c_Lcom_vinctus_oql_OQLParser$.prototype.jsonExpression__s_util_parsing_combinat
|
|
|
52232
52348
|
});
|
|
52233
52349
|
$c_Lcom_vinctus_oql_OQLParser$.prototype.primary__s_util_parsing_combinator_PackratParsers$PackratParser = (function() {
|
|
52234
52350
|
if ((!this.Lcom_vinctus_oql_OQLParser$__f_primarybitmap$1)) {
|
|
52235
|
-
var p = new $c_sjsr_AnonFunction0((() => $n($n($n($n($n($n($n($n($n(this.literalExpression__s_util_parsing_combinator_PackratParsers$PackratParser()).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.jsonExpression__s_util_parsing_combinator_PackratParsers$PackratParser())))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.starExpression__s_util_parsing_combinator_PackratParsers$PackratParser())))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.caseExpression__s_util_parsing_combinator_PackratParsers$PackratParser())))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.applyExpression__s_util_parsing_combinator_PackratParsers$PackratParser())))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.qualifiedAttributeExpression__s_util_parsing_combinator_PackratParsers$PackratParser())))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => $n(new $c_s_util_parsing_combinator_RegexParsers$$anon$1("&", this).$tilde$greater__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.identifiers__s_util_parsing_combinator_PackratParsers$PackratParser())))).$up$up__F1__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction1(((_$2) => {
|
|
52351
|
+
var p = new $c_sjsr_AnonFunction0((() => $n($n($n($n($n($n($n($n($n($n(this.literalExpression__s_util_parsing_combinator_PackratParsers$PackratParser()).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.jsonExpression__s_util_parsing_combinator_PackratParsers$PackratParser())))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.starExpression__s_util_parsing_combinator_PackratParsers$PackratParser())))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.caseExpression__s_util_parsing_combinator_PackratParsers$PackratParser())))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.applyExpression__s_util_parsing_combinator_PackratParsers$PackratParser())))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.castExpression__s_util_parsing_combinator_PackratParsers$PackratParser())))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.qualifiedAttributeExpression__s_util_parsing_combinator_PackratParsers$PackratParser())))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => $n(new $c_s_util_parsing_combinator_RegexParsers$$anon$1("&", this).$tilde$greater__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.identifiers__s_util_parsing_combinator_PackratParsers$PackratParser())))).$up$up__F1__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction1(((_$2) => {
|
|
52236
52352
|
var _$2$1 = $as_sci_List(_$2);
|
|
52237
52353
|
return new $c_Lcom_vinctus_oql_ReferenceOQLExpression(_$2$1, null)
|
|
52238
52354
|
}))))))).$bar__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => $n(new $c_s_util_parsing_combinator_RegexParsers$$anon$1("-", this).$tilde$greater__F0__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction0((() => this.primary__s_util_parsing_combinator_PackratParsers$PackratParser())))).$up$up__F1__s_util_parsing_combinator_Parsers$Parser(new $c_sjsr_AnonFunction1(((e) => {
|
|
@@ -52293,13 +52409,13 @@ $c_Lcom_vinctus_oql_OQLParser$.prototype.when__s_util_parsing_combinator_Packrat
|
|
|
52293
52409
|
var x$1$1 = $as_s_util_parsing_combinator_Parsers$$tilde(x$1);
|
|
52294
52410
|
if ((x$1$1 !== null)) {
|
|
52295
52411
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
52296
|
-
var
|
|
52297
|
-
if ((
|
|
52412
|
+
var x256 = $as_s_util_parsing_combinator_Parsers$$tilde($n(x$1$1).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
52413
|
+
if ((x256 !== null)) {
|
|
52298
52414
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
52299
|
-
var
|
|
52300
|
-
if ((
|
|
52415
|
+
var x259 = $as_s_util_parsing_combinator_Parsers$$tilde($n(x256).s_util_parsing_combinator_Parsers$$tilde__f__1);
|
|
52416
|
+
if ((x259 !== null)) {
|
|
52301
52417
|
$n(this.$tilde__s_util_parsing_combinator_Parsers$$tilde$());
|
|
52302
|
-
var l = $as_Lcom_vinctus_oql_OQLExpression($n(
|
|
52418
|
+
var l = $as_Lcom_vinctus_oql_OQLExpression($n(x259).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
52303
52419
|
var e = $as_Lcom_vinctus_oql_OQLExpression($n(x$1$1).s_util_parsing_combinator_Parsers$$tilde__f__2);
|
|
52304
52420
|
return new $c_Lcom_vinctus_oql_OQLWhen(l, e)
|
|
52305
52421
|
}
|
|
@@ -52427,49 +52543,49 @@ $c_Lcom_vinctus_oql_OQLParser$.prototype.parseQuery__T__Lcom_vinctus_oql_OQLQuer
|
|
|
52427
52543
|
var p = this.query__s_util_parsing_combinator_PackratParsers$PackratParser();
|
|
52428
52544
|
var p$1 = $f_s_util_parsing_combinator_PackratParsers__phrase__s_util_parsing_combinator_Parsers$Parser__s_util_parsing_combinator_PackratParsers$PackratParser(this, p);
|
|
52429
52545
|
var in$1 = $ct_s_util_parsing_combinator_PackratParsers$PackratReader__s_util_parsing_combinator_PackratParsers__s_util_parsing_input_Reader__(new $c_s_util_parsing_combinator_PackratParsers$PackratReader(), this, $ct_s_util_parsing_input_CharSequenceReader__jl_CharSequence__(new $c_s_util_parsing_input_CharSequenceReader(), input));
|
|
52430
|
-
var
|
|
52431
|
-
if (((
|
|
52546
|
+
var x268 = $f_s_util_parsing_combinator_RegexParsers__parseAll__s_util_parsing_combinator_Parsers$Parser__s_util_parsing_input_Reader__s_util_parsing_combinator_Parsers$ParseResult(this, p$1, in$1);
|
|
52547
|
+
if (((x268 instanceof $c_s_util_parsing_combinator_Parsers$Success) && ($n($as_s_util_parsing_combinator_Parsers$Success(x268)).s_util_parsing_combinator_Parsers$Success__f_$outer === this))) {
|
|
52432
52548
|
$n(this.Success__s_util_parsing_combinator_Parsers$Success$());
|
|
52433
|
-
var x$1 = $as_s_util_parsing_combinator_Parsers$Success(
|
|
52549
|
+
var x$1 = $as_s_util_parsing_combinator_Parsers$Success(x268);
|
|
52434
52550
|
var this$2 = $n(x$1);
|
|
52435
|
-
var
|
|
52551
|
+
var x275 = $as_Lcom_vinctus_oql_OQLQuery(this$2.s_util_parsing_combinator_Parsers$Success__f_result);
|
|
52436
52552
|
var this$3 = $n(x$1);
|
|
52437
|
-
return
|
|
52438
|
-
};
|
|
52439
|
-
if ((
|
|
52440
|
-
var
|
|
52441
|
-
if ((!$n(
|
|
52442
|
-
var
|
|
52443
|
-
var error = $as_T($n(
|
|
52444
|
-
var rest = $as_s_util_parsing_input_Reader($n(
|
|
52553
|
+
return x275
|
|
52554
|
+
};
|
|
52555
|
+
if ((x268 !== null)) {
|
|
52556
|
+
var x269 = $n(this.NoSuccess__s_util_parsing_combinator_Parsers$NoSuccess$()).unapply__s_util_parsing_combinator_Parsers$ParseResult__s_Option(x268);
|
|
52557
|
+
if ((!$n(x269).isEmpty__Z())) {
|
|
52558
|
+
var x270 = $as_T2($n(x269).get__O());
|
|
52559
|
+
var error = $as_T($n(x270).T2__f__1);
|
|
52560
|
+
var rest = $as_s_util_parsing_input_Reader($n(x270).T2__f__2);
|
|
52445
52561
|
$m_Lcom_vinctus_oql_package$().problem__s_util_parsing_input_Position__T__T__E($n(rest).pos__s_util_parsing_input_Position(), error, input)
|
|
52446
52562
|
}
|
|
52447
52563
|
};
|
|
52448
|
-
throw new $c_s_MatchError(
|
|
52564
|
+
throw new $c_s_MatchError(x268)
|
|
52449
52565
|
});
|
|
52450
52566
|
$c_Lcom_vinctus_oql_OQLParser$.prototype.parseBooleanExpression__T__Lcom_vinctus_oql_OQLExpression = (function(input) {
|
|
52451
52567
|
var p = this.booleanExpression__s_util_parsing_combinator_PackratParsers$PackratParser();
|
|
52452
52568
|
var p$1 = $f_s_util_parsing_combinator_PackratParsers__phrase__s_util_parsing_combinator_Parsers$Parser__s_util_parsing_combinator_PackratParsers$PackratParser(this, p);
|
|
52453
52569
|
var in$1 = $ct_s_util_parsing_combinator_PackratParsers$PackratReader__s_util_parsing_combinator_PackratParsers__s_util_parsing_input_Reader__(new $c_s_util_parsing_combinator_PackratParsers$PackratReader(), this, $ct_s_util_parsing_input_CharSequenceReader__jl_CharSequence__(new $c_s_util_parsing_input_CharSequenceReader(), input));
|
|
52454
|
-
var
|
|
52455
|
-
if (((
|
|
52570
|
+
var x277 = $f_s_util_parsing_combinator_RegexParsers__parseAll__s_util_parsing_combinator_Parsers$Parser__s_util_parsing_input_Reader__s_util_parsing_combinator_Parsers$ParseResult(this, p$1, in$1);
|
|
52571
|
+
if (((x277 instanceof $c_s_util_parsing_combinator_Parsers$Success) && ($n($as_s_util_parsing_combinator_Parsers$Success(x277)).s_util_parsing_combinator_Parsers$Success__f_$outer === this))) {
|
|
52456
52572
|
$n(this.Success__s_util_parsing_combinator_Parsers$Success$());
|
|
52457
|
-
var x$1 = $as_s_util_parsing_combinator_Parsers$Success(
|
|
52573
|
+
var x$1 = $as_s_util_parsing_combinator_Parsers$Success(x277);
|
|
52458
52574
|
var this$2 = $n(x$1);
|
|
52459
|
-
var
|
|
52575
|
+
var x284 = $as_Lcom_vinctus_oql_OQLExpression(this$2.s_util_parsing_combinator_Parsers$Success__f_result);
|
|
52460
52576
|
var this$3 = $n(x$1);
|
|
52461
|
-
return
|
|
52462
|
-
};
|
|
52463
|
-
if ((
|
|
52464
|
-
var
|
|
52465
|
-
if ((!$n(
|
|
52466
|
-
var
|
|
52467
|
-
var error = $as_T($n(
|
|
52468
|
-
var rest = $as_s_util_parsing_input_Reader($n(
|
|
52577
|
+
return x284
|
|
52578
|
+
};
|
|
52579
|
+
if ((x277 !== null)) {
|
|
52580
|
+
var x278 = $n(this.NoSuccess__s_util_parsing_combinator_Parsers$NoSuccess$()).unapply__s_util_parsing_combinator_Parsers$ParseResult__s_Option(x277);
|
|
52581
|
+
if ((!$n(x278).isEmpty__Z())) {
|
|
52582
|
+
var x279 = $as_T2($n(x278).get__O());
|
|
52583
|
+
var error = $as_T($n(x279).T2__f__1);
|
|
52584
|
+
var rest = $as_s_util_parsing_input_Reader($n(x279).T2__f__2);
|
|
52469
52585
|
$m_Lcom_vinctus_oql_package$().problem__s_util_parsing_input_Position__T__T__E($n(rest).pos__s_util_parsing_input_Position(), error, input)
|
|
52470
52586
|
}
|
|
52471
52587
|
};
|
|
52472
|
-
throw new $c_s_MatchError(
|
|
52588
|
+
throw new $c_s_MatchError(x277)
|
|
52473
52589
|
});
|
|
52474
52590
|
$c_Lcom_vinctus_oql_OQLParser$.prototype.phrase__s_util_parsing_combinator_Parsers$Parser__s_util_parsing_combinator_Parsers$Parser = (function(p) {
|
|
52475
52591
|
return $f_s_util_parsing_combinator_PackratParsers__phrase__s_util_parsing_combinator_Parsers$Parser__s_util_parsing_combinator_PackratParsers$PackratParser(this, p)
|
|
@@ -66420,11 +66536,11 @@ var $d_Lcom_vinctus_oql_SubtractOQLProject = new $TypeData().initClass({
|
|
|
66420
66536
|
});
|
|
66421
66537
|
$c_Lcom_vinctus_oql_SubtractOQLProject.prototype.$classData = $d_Lcom_vinctus_oql_SubtractOQLProject;
|
|
66422
66538
|
/** @constructor */
|
|
66423
|
-
function $c_Lcom_vinctus_oql_TypedOQLExpression(
|
|
66539
|
+
function $c_Lcom_vinctus_oql_TypedOQLExpression(expr, t) {
|
|
66424
66540
|
this.Lcom_vinctus_oql_OQLExpression__f_typ = null;
|
|
66425
|
-
this.
|
|
66541
|
+
this.Lcom_vinctus_oql_TypedOQLExpression__f_expr = null;
|
|
66426
66542
|
this.Lcom_vinctus_oql_TypedOQLExpression__f_t = null;
|
|
66427
|
-
this.
|
|
66543
|
+
this.Lcom_vinctus_oql_TypedOQLExpression__f_expr = expr;
|
|
66428
66544
|
this.Lcom_vinctus_oql_TypedOQLExpression__f_t = t
|
|
66429
66545
|
}
|
|
66430
66546
|
$c_Lcom_vinctus_oql_TypedOQLExpression.prototype = new $h_Lcom_vinctus_oql_OQLExpression();
|
|
@@ -66446,12 +66562,12 @@ $c_Lcom_vinctus_oql_TypedOQLExpression.prototype.equals__O__Z = (function(x$0) {
|
|
|
66446
66562
|
return true
|
|
66447
66563
|
} else if ((x$0 instanceof $c_Lcom_vinctus_oql_TypedOQLExpression)) {
|
|
66448
66564
|
var x$0$2 = $as_Lcom_vinctus_oql_TypedOQLExpression(x$0);
|
|
66449
|
-
var x = this.
|
|
66450
|
-
var
|
|
66451
|
-
if ($
|
|
66452
|
-
var x$
|
|
66453
|
-
var x$
|
|
66454
|
-
var $$x1 = ((x$
|
|
66565
|
+
var x = this.Lcom_vinctus_oql_TypedOQLExpression__f_expr;
|
|
66566
|
+
var x$2 = $n(x$0$2).Lcom_vinctus_oql_TypedOQLExpression__f_expr;
|
|
66567
|
+
if (((x === null) ? (x$2 === null) : $n(x).equals__O__Z(x$2))) {
|
|
66568
|
+
var x$3 = this.Lcom_vinctus_oql_TypedOQLExpression__f_t;
|
|
66569
|
+
var x$4 = $n(x$0$2).Lcom_vinctus_oql_TypedOQLExpression__f_t;
|
|
66570
|
+
var $$x1 = ((x$3 === null) ? (x$4 === null) : $n(x$3).equals__O__Z(x$4))
|
|
66455
66571
|
} else {
|
|
66456
66572
|
var $$x1 = false
|
|
66457
66573
|
};
|
|
@@ -66476,7 +66592,7 @@ $c_Lcom_vinctus_oql_TypedOQLExpression.prototype.productPrefix__T = (function()
|
|
|
66476
66592
|
});
|
|
66477
66593
|
$c_Lcom_vinctus_oql_TypedOQLExpression.prototype.productElement__I__O = (function(n) {
|
|
66478
66594
|
if ((n === 0)) {
|
|
66479
|
-
return this.
|
|
66595
|
+
return this.Lcom_vinctus_oql_TypedOQLExpression__f_expr
|
|
66480
66596
|
};
|
|
66481
66597
|
if ((n === 1)) {
|
|
66482
66598
|
return this.Lcom_vinctus_oql_TypedOQLExpression__f_t
|
|
@@ -66485,7 +66601,7 @@ $c_Lcom_vinctus_oql_TypedOQLExpression.prototype.productElement__I__O = (functio
|
|
|
66485
66601
|
});
|
|
66486
66602
|
$c_Lcom_vinctus_oql_TypedOQLExpression.prototype.productElementName__I__T = (function(n) {
|
|
66487
66603
|
if ((n === 0)) {
|
|
66488
|
-
return "
|
|
66604
|
+
return "expr"
|
|
66489
66605
|
};
|
|
66490
66606
|
if ((n === 1)) {
|
|
66491
66607
|
return "t"
|
|
@@ -102661,6 +102777,82 @@ function $m_Lcom_vinctus_oql_IntegerType$() {
|
|
|
102661
102777
|
return $n_Lcom_vinctus_oql_IntegerType$
|
|
102662
102778
|
}
|
|
102663
102779
|
/** @constructor */
|
|
102780
|
+
function $c_Lcom_vinctus_oql_IntervalType$() {
|
|
102781
|
+
this.Lcom_vinctus_oql_IntervalType$__f_isDataType = false;
|
|
102782
|
+
this.Lcom_vinctus_oql_IntervalType$__f_isColumnType = false;
|
|
102783
|
+
this.Lcom_vinctus_oql_IntervalType$__f_isArrayType = false;
|
|
102784
|
+
$n_Lcom_vinctus_oql_IntervalType$ = this;
|
|
102785
|
+
$f_Lcom_vinctus_oql_Datatype__$init$__V(this)
|
|
102786
|
+
}
|
|
102787
|
+
$c_Lcom_vinctus_oql_IntervalType$.prototype = new $h_O();
|
|
102788
|
+
$c_Lcom_vinctus_oql_IntervalType$.prototype.constructor = $c_Lcom_vinctus_oql_IntervalType$;
|
|
102789
|
+
/** @constructor */
|
|
102790
|
+
function $h_Lcom_vinctus_oql_IntervalType$() {
|
|
102791
|
+
/*<skip>*/
|
|
102792
|
+
}
|
|
102793
|
+
$h_Lcom_vinctus_oql_IntervalType$.prototype = $c_Lcom_vinctus_oql_IntervalType$.prototype;
|
|
102794
|
+
$c_Lcom_vinctus_oql_IntervalType$.prototype.isDataType__Z = (function() {
|
|
102795
|
+
return this.Lcom_vinctus_oql_IntervalType$__f_isDataType
|
|
102796
|
+
});
|
|
102797
|
+
$c_Lcom_vinctus_oql_IntervalType$.prototype.isColumnType__Z = (function() {
|
|
102798
|
+
return this.Lcom_vinctus_oql_IntervalType$__f_isColumnType
|
|
102799
|
+
});
|
|
102800
|
+
$c_Lcom_vinctus_oql_IntervalType$.prototype.isArrayType__Z = (function() {
|
|
102801
|
+
return this.Lcom_vinctus_oql_IntervalType$__f_isArrayType
|
|
102802
|
+
});
|
|
102803
|
+
$c_Lcom_vinctus_oql_IntervalType$.prototype.com$vinctus$oql$Datatype$_setter_$isDataType_$eq__Z__V = (function(x$0) {
|
|
102804
|
+
this.Lcom_vinctus_oql_IntervalType$__f_isDataType = x$0
|
|
102805
|
+
});
|
|
102806
|
+
$c_Lcom_vinctus_oql_IntervalType$.prototype.com$vinctus$oql$Datatype$_setter_$isColumnType_$eq__Z__V = (function(x$0) {
|
|
102807
|
+
this.Lcom_vinctus_oql_IntervalType$__f_isColumnType = x$0
|
|
102808
|
+
});
|
|
102809
|
+
$c_Lcom_vinctus_oql_IntervalType$.prototype.com$vinctus$oql$Datatype$_setter_$isArrayType_$eq__Z__V = (function(x$0) {
|
|
102810
|
+
this.Lcom_vinctus_oql_IntervalType$__f_isArrayType = x$0
|
|
102811
|
+
});
|
|
102812
|
+
$c_Lcom_vinctus_oql_IntervalType$.prototype.productIterator__sc_Iterator = (function() {
|
|
102813
|
+
return new $c_s_Product$$anon$1(this)
|
|
102814
|
+
});
|
|
102815
|
+
$c_Lcom_vinctus_oql_IntervalType$.prototype.hashCode__I = (function() {
|
|
102816
|
+
return (-1405529665)
|
|
102817
|
+
});
|
|
102818
|
+
$c_Lcom_vinctus_oql_IntervalType$.prototype.toString__T = (function() {
|
|
102819
|
+
return "IntervalType"
|
|
102820
|
+
});
|
|
102821
|
+
$c_Lcom_vinctus_oql_IntervalType$.prototype.productArity__I = (function() {
|
|
102822
|
+
return 0
|
|
102823
|
+
});
|
|
102824
|
+
$c_Lcom_vinctus_oql_IntervalType$.prototype.productPrefix__T = (function() {
|
|
102825
|
+
return "IntervalType"
|
|
102826
|
+
});
|
|
102827
|
+
$c_Lcom_vinctus_oql_IntervalType$.prototype.productElement__I__O = (function(n) {
|
|
102828
|
+
throw $ct_jl_IndexOutOfBoundsException__T__(new $c_jl_IndexOutOfBoundsException(), ("" + n))
|
|
102829
|
+
});
|
|
102830
|
+
$c_Lcom_vinctus_oql_IntervalType$.prototype.productElementName__I__T = (function(n) {
|
|
102831
|
+
throw $ct_jl_IndexOutOfBoundsException__T__(new $c_jl_IndexOutOfBoundsException(), ("" + n))
|
|
102832
|
+
});
|
|
102833
|
+
var $d_Lcom_vinctus_oql_IntervalType$ = new $TypeData().initClass({
|
|
102834
|
+
Lcom_vinctus_oql_IntervalType$: 0
|
|
102835
|
+
}, false, "com.vinctus.oql.IntervalType$", {
|
|
102836
|
+
Lcom_vinctus_oql_IntervalType$: 1,
|
|
102837
|
+
O: 1,
|
|
102838
|
+
Lcom_vinctus_oql_TypeSpecifier: 1,
|
|
102839
|
+
Lcom_vinctus_oql_Datatype: 1,
|
|
102840
|
+
s_Equals: 1,
|
|
102841
|
+
s_Product: 1,
|
|
102842
|
+
Ljava_io_Serializable: 1,
|
|
102843
|
+
s_deriving_Mirror: 1,
|
|
102844
|
+
s_deriving_Mirror$Product: 1,
|
|
102845
|
+
s_deriving_Mirror$Singleton: 1
|
|
102846
|
+
});
|
|
102847
|
+
$c_Lcom_vinctus_oql_IntervalType$.prototype.$classData = $d_Lcom_vinctus_oql_IntervalType$;
|
|
102848
|
+
var $n_Lcom_vinctus_oql_IntervalType$;
|
|
102849
|
+
function $m_Lcom_vinctus_oql_IntervalType$() {
|
|
102850
|
+
if ((!$n_Lcom_vinctus_oql_IntervalType$)) {
|
|
102851
|
+
$n_Lcom_vinctus_oql_IntervalType$ = new $c_Lcom_vinctus_oql_IntervalType$()
|
|
102852
|
+
};
|
|
102853
|
+
return $n_Lcom_vinctus_oql_IntervalType$
|
|
102854
|
+
}
|
|
102855
|
+
/** @constructor */
|
|
102664
102856
|
function $c_Lcom_vinctus_oql_JSONType$() {
|
|
102665
102857
|
this.Lcom_vinctus_oql_JSONType$__f_isDataType = false;
|
|
102666
102858
|
this.Lcom_vinctus_oql_JSONType$__f_isColumnType = false;
|