@balena/abstract-sql-compiler 11.0.0-build-11-x-b2280608fff69d9959999c79db6245c4ad561bbc-1 → 11.0.0-build-11-x-7511b8ebe5a9461f20add0ed97d0670ed3b5a479-1
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/package.json +5 -2
- package/.github/workflows/flowzone.yml +0 -21
- package/.husky/pre-commit +0 -2
- package/.versionbot/CHANGELOG.yml +0 -10729
- package/CHANGELOG.md +0 -3515
- package/repo.yml +0 -12
- package/src/abstract-sql-compiler.ts +0 -1138
- package/src/abstract-sql-optimizer.ts +0 -1632
- package/src/abstract-sql-rules-to-sql.ts +0 -1730
- package/src/abstract-sql-schema-optimizer.ts +0 -172
- package/src/referenced-fields.ts +0 -600
- package/test/abstract-sql/aggregate-json.ts +0 -49
- package/test/abstract-sql/aggregate.ts +0 -161
- package/test/abstract-sql/and-or-boolean-optimisations.ts +0 -115
- package/test/abstract-sql/case-when-else.ts +0 -48
- package/test/abstract-sql/cast.ts +0 -25
- package/test/abstract-sql/coalesce.ts +0 -24
- package/test/abstract-sql/comparisons.ts +0 -360
- package/test/abstract-sql/dates.ts +0 -512
- package/test/abstract-sql/duration.ts +0 -56
- package/test/abstract-sql/empty-query-optimisations.ts +0 -54
- package/test/abstract-sql/functions-wrapper.ts +0 -70
- package/test/abstract-sql/get-referenced-fields.ts +0 -674
- package/test/abstract-sql/get-rule-referenced-fields.ts +0 -345
- package/test/abstract-sql/insert-query.ts +0 -22
- package/test/abstract-sql/is-distinct.ts +0 -102
- package/test/abstract-sql/joins.ts +0 -84
- package/test/abstract-sql/json.ts +0 -58
- package/test/abstract-sql/math.ts +0 -467
- package/test/abstract-sql/nested-in-optimisations.ts +0 -200
- package/test/abstract-sql/not-not-optimisations.ts +0 -15
- package/test/abstract-sql/schema-checks.ts +0 -168
- package/test/abstract-sql/schema-informative-reference.ts +0 -420
- package/test/abstract-sql/schema-rule-optimization.ts +0 -120
- package/test/abstract-sql/schema-rule-to-check.ts +0 -393
- package/test/abstract-sql/schema-views.ts +0 -73
- package/test/abstract-sql/test.ts +0 -192
- package/test/abstract-sql/text.ts +0 -168
- package/test/model.sbvr +0 -60
- package/test/odata/expand.ts +0 -674
- package/test/odata/fields.ts +0 -59
- package/test/odata/filterby.ts +0 -1517
- package/test/odata/orderby.ts +0 -96
- package/test/odata/paging.ts +0 -48
- package/test/odata/resource-parsing.ts +0 -568
- package/test/odata/select.ts +0 -119
- package/test/odata/stress.ts +0 -93
- package/test/odata/test.ts +0 -297
- package/test/sbvr/pilots.ts +0 -1097
- package/test/sbvr/reference-type.ts +0 -211
- package/test/sbvr/test.ts +0 -101
- package/tsconfig.build.json +0 -6
- package/tsconfig.json +0 -25
package/test/odata/fields.ts
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
export const pilotFields = [
|
2
|
-
'"pilot"."created at" AS "created_at"',
|
3
|
-
'"pilot"."modified at" AS "modified_at"',
|
4
|
-
'"pilot"."id"',
|
5
|
-
'"pilot"."person"',
|
6
|
-
'"pilot"."is experienced" AS "is_experienced"',
|
7
|
-
'"pilot"."name"',
|
8
|
-
'"pilot"."age"',
|
9
|
-
'"pilot"."favourite colour" AS "favourite_colour"',
|
10
|
-
'"pilot"."is on-team" AS "is_on__team"',
|
11
|
-
'"pilot"."licence"',
|
12
|
-
'"pilot"."hire date" AS "hire_date"',
|
13
|
-
'"pilot"."was trained by-pilot" AS "was_trained_by__pilot"',
|
14
|
-
];
|
15
|
-
|
16
|
-
export const pilotCanFlyPlaneFields = [
|
17
|
-
'"pilot-can fly-plane"."created at" AS "created_at"',
|
18
|
-
'"pilot-can fly-plane"."modified at" AS "modified_at"',
|
19
|
-
'"pilot-can fly-plane"."pilot"',
|
20
|
-
'"pilot-can fly-plane"."can fly-plane" AS "can_fly__plane"',
|
21
|
-
'"pilot-can fly-plane"."id"',
|
22
|
-
];
|
23
|
-
|
24
|
-
export const licenceFields = [
|
25
|
-
'"licence"."created at" AS "created_at"',
|
26
|
-
'"licence"."modified at" AS "modified_at"',
|
27
|
-
'"licence"."id"',
|
28
|
-
'"licence"."name"',
|
29
|
-
];
|
30
|
-
|
31
|
-
export const planeFields = [
|
32
|
-
'"plane"."created at" AS "created_at"',
|
33
|
-
'"plane"."modified at" AS "modified_at"',
|
34
|
-
'"plane"."id"',
|
35
|
-
'"plane"."name"',
|
36
|
-
];
|
37
|
-
|
38
|
-
export const teamFields = [
|
39
|
-
'"team"."created at" AS "created_at"',
|
40
|
-
'"team"."modified at" AS "modified_at"',
|
41
|
-
'"team"."favourite colour" AS "favourite_colour"',
|
42
|
-
];
|
43
|
-
|
44
|
-
export const aliasFields = (alias: string, fields: string[]) =>
|
45
|
-
fields.map((field) => field.replace(/^".*?"/, '"' + alias + '"'));
|
46
|
-
|
47
|
-
export const aliasPilotLicenceFields = aliasFields(
|
48
|
-
'licence.is of-pilot',
|
49
|
-
pilotFields,
|
50
|
-
);
|
51
|
-
export const aliasLicenceFields = aliasFields('pilot.licence', licenceFields);
|
52
|
-
export const aliasPlaneFields = aliasFields(
|
53
|
-
'pilot.pilot-can fly-plane.plane',
|
54
|
-
planeFields,
|
55
|
-
);
|
56
|
-
export const aliasPilotCanFlyPlaneFields = aliasFields(
|
57
|
-
'pilot.pilot-can fly-plane',
|
58
|
-
pilotCanFlyPlaneFields,
|
59
|
-
);
|