@balena/abstract-sql-compiler 11.0.0-build-11-x-45529f014aa1c181f338c0f7348767f2990a9084-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.
Files changed (53) hide show
  1. package/package.json +5 -2
  2. package/.github/workflows/flowzone.yml +0 -21
  3. package/.husky/pre-commit +0 -2
  4. package/.versionbot/CHANGELOG.yml +0 -10729
  5. package/CHANGELOG.md +0 -3515
  6. package/repo.yml +0 -12
  7. package/src/abstract-sql-compiler.ts +0 -1138
  8. package/src/abstract-sql-optimizer.ts +0 -1632
  9. package/src/abstract-sql-rules-to-sql.ts +0 -1730
  10. package/src/abstract-sql-schema-optimizer.ts +0 -172
  11. package/src/referenced-fields.ts +0 -600
  12. package/test/abstract-sql/aggregate-json.ts +0 -49
  13. package/test/abstract-sql/aggregate.ts +0 -161
  14. package/test/abstract-sql/and-or-boolean-optimisations.ts +0 -115
  15. package/test/abstract-sql/case-when-else.ts +0 -48
  16. package/test/abstract-sql/cast.ts +0 -25
  17. package/test/abstract-sql/coalesce.ts +0 -24
  18. package/test/abstract-sql/comparisons.ts +0 -360
  19. package/test/abstract-sql/dates.ts +0 -512
  20. package/test/abstract-sql/duration.ts +0 -56
  21. package/test/abstract-sql/empty-query-optimisations.ts +0 -54
  22. package/test/abstract-sql/functions-wrapper.ts +0 -70
  23. package/test/abstract-sql/get-referenced-fields.ts +0 -674
  24. package/test/abstract-sql/get-rule-referenced-fields.ts +0 -345
  25. package/test/abstract-sql/insert-query.ts +0 -22
  26. package/test/abstract-sql/is-distinct.ts +0 -102
  27. package/test/abstract-sql/joins.ts +0 -84
  28. package/test/abstract-sql/json.ts +0 -58
  29. package/test/abstract-sql/math.ts +0 -467
  30. package/test/abstract-sql/nested-in-optimisations.ts +0 -200
  31. package/test/abstract-sql/not-not-optimisations.ts +0 -15
  32. package/test/abstract-sql/schema-checks.ts +0 -168
  33. package/test/abstract-sql/schema-informative-reference.ts +0 -420
  34. package/test/abstract-sql/schema-rule-optimization.ts +0 -120
  35. package/test/abstract-sql/schema-rule-to-check.ts +0 -393
  36. package/test/abstract-sql/schema-views.ts +0 -73
  37. package/test/abstract-sql/test.ts +0 -192
  38. package/test/abstract-sql/text.ts +0 -168
  39. package/test/model.sbvr +0 -60
  40. package/test/odata/expand.ts +0 -674
  41. package/test/odata/fields.ts +0 -59
  42. package/test/odata/filterby.ts +0 -1517
  43. package/test/odata/orderby.ts +0 -96
  44. package/test/odata/paging.ts +0 -48
  45. package/test/odata/resource-parsing.ts +0 -568
  46. package/test/odata/select.ts +0 -119
  47. package/test/odata/stress.ts +0 -93
  48. package/test/odata/test.ts +0 -297
  49. package/test/sbvr/pilots.ts +0 -1097
  50. package/test/sbvr/reference-type.ts +0 -211
  51. package/test/sbvr/test.ts +0 -101
  52. package/tsconfig.build.json +0 -6
  53. package/tsconfig.json +0 -25
@@ -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
- );