@blazetrails/arel 0.0.0-stage → 0.1.0-alpha0.2
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/LICENSE +21 -0
- package/README.md +59 -2
- package/dist/alias-predication.d.ts +7 -0
- package/dist/alias-predication.js +7 -0
- package/dist/alias-predication.js.map +1 -0
- package/dist/arel.d.ts +13 -0
- package/dist/arel.js +29 -0
- package/dist/arel.js.map +1 -0
- package/dist/attributes/attribute.d.ts +39 -0
- package/dist/attributes/attribute.js +35 -0
- package/dist/attributes/attribute.js.map +1 -0
- package/dist/collectors/bind.d.ts +10 -0
- package/dist/collectors/bind.js +26 -0
- package/dist/collectors/bind.js.map +1 -0
- package/dist/collectors/composite.d.ts +22 -0
- package/dist/collectors/composite.js +40 -0
- package/dist/collectors/composite.js.map +1 -0
- package/dist/collectors/index.d.ts +6 -0
- package/dist/collectors/index.js +6 -0
- package/dist/collectors/index.js.map +1 -0
- package/dist/collectors/plain-string.d.ts +7 -0
- package/dist/collectors/plain-string.js +17 -0
- package/dist/collectors/plain-string.js.map +1 -0
- package/dist/collectors/sql-string.d.ts +10 -0
- package/dist/collectors/sql-string.js +23 -0
- package/dist/collectors/sql-string.js.map +1 -0
- package/dist/collectors/substitute-binds.d.ts +17 -0
- package/dist/collectors/substitute-binds.js +31 -0
- package/dist/collectors/substitute-binds.js.map +1 -0
- package/dist/constants.generated.d.ts +2 -0
- package/dist/constants.generated.js +231 -0
- package/dist/constants.generated.js.map +1 -0
- package/dist/crud.d.ts +15 -0
- package/dist/crud.js +43 -0
- package/dist/crud.js.map +1 -0
- package/dist/delete-manager.d.ts +19 -0
- package/dist/delete-manager.js +37 -0
- package/dist/delete-manager.js.map +1 -0
- package/dist/errors.d.ts +10 -0
- package/dist/errors.js +24 -0
- package/dist/errors.js.map +1 -0
- package/dist/expressions.d.ts +13 -0
- package/dist/expressions.js +22 -0
- package/dist/expressions.js.map +1 -0
- package/dist/factory-methods.d.ts +30 -0
- package/dist/factory-methods.js +38 -0
- package/dist/factory-methods.js.map +1 -0
- package/dist/filter-predications.d.ts +7 -0
- package/dist/filter-predications.js +7 -0
- package/dist/filter-predications.js.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -0
- package/dist/insert-manager.d.ts +16 -0
- package/dist/insert-manager.js +53 -0
- package/dist/insert-manager.js.map +1 -0
- package/dist/math.d.ts +18 -0
- package/dist/math.js +34 -0
- package/dist/math.js.map +1 -0
- package/dist/namespaces.d.ts +157 -0
- package/dist/namespaces.js +42 -0
- package/dist/namespaces.js.map +1 -0
- package/dist/nodes/ascending.d.ts +9 -0
- package/dist/nodes/ascending.js +20 -0
- package/dist/nodes/ascending.js.map +1 -0
- package/dist/nodes/binary.d.ts +81 -0
- package/dist/nodes/binary.js +147 -0
- package/dist/nodes/binary.js.map +1 -0
- package/dist/nodes/bind-param.d.ts +12 -0
- package/dist/nodes/bind-param.js +35 -0
- package/dist/nodes/bind-param.js.map +1 -0
- package/dist/nodes/bound-sql-literal.d.ts +17 -0
- package/dist/nodes/bound-sql-literal.js +80 -0
- package/dist/nodes/bound-sql-literal.js.map +1 -0
- package/dist/nodes/case.d.ts +25 -0
- package/dist/nodes/case.js +56 -0
- package/dist/nodes/case.js.map +1 -0
- package/dist/nodes/casted.d.ts +31 -0
- package/dist/nodes/casted.js +76 -0
- package/dist/nodes/casted.js.map +1 -0
- package/dist/nodes/comment.d.ts +9 -0
- package/dist/nodes/comment.js +24 -0
- package/dist/nodes/comment.js.map +1 -0
- package/dist/nodes/count.d.ts +6 -0
- package/dist/nodes/count.js +11 -0
- package/dist/nodes/count.js.map +1 -0
- package/dist/nodes/cte.d.ts +18 -0
- package/dist/nodes/cte.js +42 -0
- package/dist/nodes/cte.js.map +1 -0
- package/dist/nodes/delete-statement.d.ts +19 -0
- package/dist/nodes/delete-statement.js +60 -0
- package/dist/nodes/delete-statement.js.map +1 -0
- package/dist/nodes/descending.d.ts +9 -0
- package/dist/nodes/descending.js +20 -0
- package/dist/nodes/descending.js.map +1 -0
- package/dist/nodes/equality.d.ts +7 -0
- package/dist/nodes/equality.js +17 -0
- package/dist/nodes/equality.js.map +1 -0
- package/dist/nodes/extract.d.ts +9 -0
- package/dist/nodes/extract.js +19 -0
- package/dist/nodes/extract.js.map +1 -0
- package/dist/nodes/false.d.ts +10 -0
- package/dist/nodes/false.js +15 -0
- package/dist/nodes/false.js.map +1 -0
- package/dist/nodes/filter.d.ts +8 -0
- package/dist/nodes/filter.js +13 -0
- package/dist/nodes/filter.js.map +1 -0
- package/dist/nodes/fragments.d.ts +11 -0
- package/dist/nodes/fragments.js +31 -0
- package/dist/nodes/fragments.js.map +1 -0
- package/dist/nodes/full-outer-join.d.ts +4 -0
- package/dist/nodes/full-outer-join.js +7 -0
- package/dist/nodes/full-outer-join.js.map +1 -0
- package/dist/nodes/function.d.ts +27 -0
- package/dist/nodes/function.js +52 -0
- package/dist/nodes/function.js.map +1 -0
- package/dist/nodes/grouping.d.ts +6 -0
- package/dist/nodes/grouping.js +10 -0
- package/dist/nodes/grouping.js.map +1 -0
- package/dist/nodes/homogeneous-in.d.ts +20 -0
- package/dist/nodes/homogeneous-in.js +55 -0
- package/dist/nodes/homogeneous-in.js.map +1 -0
- package/dist/nodes/in.d.ts +7 -0
- package/dist/nodes/in.js +17 -0
- package/dist/nodes/in.js.map +1 -0
- package/dist/nodes/index.d.ts +53 -0
- package/dist/nodes/index.js +52 -0
- package/dist/nodes/index.js.map +1 -0
- package/dist/nodes/infix-operation.d.ts +49 -0
- package/dist/nodes/infix-operation.js +96 -0
- package/dist/nodes/infix-operation.js.map +1 -0
- package/dist/nodes/inner-join.d.ts +4 -0
- package/dist/nodes/inner-join.js +7 -0
- package/dist/nodes/inner-join.js.map +1 -0
- package/dist/nodes/insert-statement.d.ts +18 -0
- package/dist/nodes/insert-statement.js +37 -0
- package/dist/nodes/insert-statement.js.map +1 -0
- package/dist/nodes/join-source.d.ts +8 -0
- package/dist/nodes/join-source.js +13 -0
- package/dist/nodes/join-source.js.map +1 -0
- package/dist/nodes/leading-join.d.ts +4 -0
- package/dist/nodes/leading-join.js +7 -0
- package/dist/nodes/leading-join.js.map +1 -0
- package/dist/nodes/matches.d.ts +11 -0
- package/dist/nodes/matches.js +18 -0
- package/dist/nodes/matches.js.map +1 -0
- package/dist/nodes/named-function.d.ts +9 -0
- package/dist/nodes/named-function.js +19 -0
- package/dist/nodes/named-function.js.map +1 -0
- package/dist/nodes/nary.d.ts +21 -0
- package/dist/nodes/nary.js +38 -0
- package/dist/nodes/nary.js.map +1 -0
- package/dist/nodes/node-expression.d.ts +10 -0
- package/dist/nodes/node-expression.js +19 -0
- package/dist/nodes/node-expression.js.map +1 -0
- package/dist/nodes/node.d.ts +29 -0
- package/dist/nodes/node.js +34 -0
- package/dist/nodes/node.js.map +1 -0
- package/dist/nodes/ordering.d.ts +12 -0
- package/dist/nodes/ordering.js +27 -0
- package/dist/nodes/ordering.js.map +1 -0
- package/dist/nodes/outer-join.d.ts +4 -0
- package/dist/nodes/outer-join.js +7 -0
- package/dist/nodes/outer-join.js.map +1 -0
- package/dist/nodes/over.d.ts +6 -0
- package/dist/nodes/over.js +13 -0
- package/dist/nodes/over.js.map +1 -0
- package/dist/nodes/regexp.d.ts +10 -0
- package/dist/nodes/regexp.js +20 -0
- package/dist/nodes/regexp.js.map +1 -0
- package/dist/nodes/right-outer-join.d.ts +4 -0
- package/dist/nodes/right-outer-join.js +7 -0
- package/dist/nodes/right-outer-join.js.map +1 -0
- package/dist/nodes/select-core.d.ts +25 -0
- package/dist/nodes/select-core.js +77 -0
- package/dist/nodes/select-core.js.map +1 -0
- package/dist/nodes/select-statement.d.ts +22 -0
- package/dist/nodes/select-statement.js +42 -0
- package/dist/nodes/select-statement.js.map +1 -0
- package/dist/nodes/sql-literal.d.ts +22 -0
- package/dist/nodes/sql-literal.js +36 -0
- package/dist/nodes/sql-literal.js.map +1 -0
- package/dist/nodes/string-join.d.ts +4 -0
- package/dist/nodes/string-join.js +7 -0
- package/dist/nodes/string-join.js.map +1 -0
- package/dist/nodes/table-alias.d.ts +21 -0
- package/dist/nodes/table-alias.js +52 -0
- package/dist/nodes/table-alias.js.map +1 -0
- package/dist/nodes/terminal.d.ts +10 -0
- package/dist/nodes/terminal.js +15 -0
- package/dist/nodes/terminal.js.map +1 -0
- package/dist/nodes/true.d.ts +10 -0
- package/dist/nodes/true.js +15 -0
- package/dist/nodes/true.js.map +1 -0
- package/dist/nodes/unary-operation.d.ts +10 -0
- package/dist/nodes/unary-operation.js +18 -0
- package/dist/nodes/unary-operation.js.map +1 -0
- package/dist/nodes/unary.d.ts +48 -0
- package/dist/nodes/unary.js +72 -0
- package/dist/nodes/unary.js.map +1 -0
- package/dist/nodes/unqualified-column.d.ts +8 -0
- package/dist/nodes/unqualified-column.js +19 -0
- package/dist/nodes/unqualified-column.js.map +1 -0
- package/dist/nodes/update-statement.d.ts +20 -0
- package/dist/nodes/update-statement.js +61 -0
- package/dist/nodes/update-statement.js.map +1 -0
- package/dist/nodes/values-list.d.ts +5 -0
- package/dist/nodes/values-list.js +10 -0
- package/dist/nodes/values-list.js.map +1 -0
- package/dist/nodes/window.d.ts +41 -0
- package/dist/nodes/window.js +111 -0
- package/dist/nodes/window.js.map +1 -0
- package/dist/nodes/with.d.ts +10 -0
- package/dist/nodes/with.js +13 -0
- package/dist/nodes/with.js.map +1 -0
- package/dist/order-predications.d.ts +8 -0
- package/dist/order-predications.js +10 -0
- package/dist/order-predications.js.map +1 -0
- package/dist/predications.d.ts +79 -0
- package/dist/predications.js +237 -0
- package/dist/predications.js.map +1 -0
- package/dist/select-manager.d.ts +68 -0
- package/dist/select-manager.js +260 -0
- package/dist/select-manager.js.map +1 -0
- package/dist/table.d.ts +46 -0
- package/dist/table.js +112 -0
- package/dist/table.js.map +1 -0
- package/dist/tree-manager.d.ts +33 -0
- package/dist/tree-manager.js +57 -0
- package/dist/tree-manager.js.map +1 -0
- package/dist/update-manager.d.ts +21 -0
- package/dist/update-manager.js +51 -0
- package/dist/update-manager.js.map +1 -0
- package/dist/visitors/connection.d.ts +25 -0
- package/dist/visitors/connection.js +2 -0
- package/dist/visitors/connection.js.map +1 -0
- package/dist/visitors/dot.d.ts +100 -0
- package/dist/visitors/dot.js +309 -0
- package/dist/visitors/dot.js.map +1 -0
- package/dist/visitors/index.d.ts +7 -0
- package/dist/visitors/index.js +7 -0
- package/dist/visitors/index.js.map +1 -0
- package/dist/visitors/mysql.d.ts +33 -0
- package/dist/visitors/mysql.js +99 -0
- package/dist/visitors/mysql.js.map +1 -0
- package/dist/visitors/postgresql.d.ts +21 -0
- package/dist/visitors/postgresql.js +93 -0
- package/dist/visitors/postgresql.js.map +1 -0
- package/dist/visitors/sqlite.d.ts +21 -0
- package/dist/visitors/sqlite.js +70 -0
- package/dist/visitors/sqlite.js.map +1 -0
- package/dist/visitors/to-sql.d.ts +189 -0
- package/dist/visitors/to-sql.js +1035 -0
- package/dist/visitors/to-sql.js.map +1 -0
- package/dist/visitors/visitor.d.ts +16 -0
- package/dist/visitors/visitor.js +54 -0
- package/dist/visitors/visitor.js.map +1 -0
- package/dist/window-predications.d.ts +7 -0
- package/dist/window-predications.js +7 -0
- package/dist/window-predications.js.map +1 -0
- package/package.json +111 -3
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { defineConstants } from "@blazetrails/ruby-compat/classpath";
|
|
2
|
+
import * as m0 from "./alias-predication.js";
|
|
3
|
+
import * as m1 from "./attributes/attribute.js";
|
|
4
|
+
import * as m2 from "./collectors/bind.js";
|
|
5
|
+
import * as m3 from "./collectors/composite.js";
|
|
6
|
+
import * as m4 from "./collectors/plain-string.js";
|
|
7
|
+
import * as m5 from "./collectors/sql-string.js";
|
|
8
|
+
import * as m6 from "./collectors/substitute-binds.js";
|
|
9
|
+
import * as m7 from "./crud.js";
|
|
10
|
+
import * as m8 from "./delete-manager.js";
|
|
11
|
+
import * as m9 from "./errors.js";
|
|
12
|
+
import * as m10 from "./expressions.js";
|
|
13
|
+
import * as m11 from "./factory-methods.js";
|
|
14
|
+
import * as m12 from "./filter-predications.js";
|
|
15
|
+
import * as m13 from "./insert-manager.js";
|
|
16
|
+
import * as m14 from "./math.js";
|
|
17
|
+
import * as m15 from "./nodes/ascending.js";
|
|
18
|
+
import * as m16 from "./nodes/binary.js";
|
|
19
|
+
import * as m17 from "./nodes/bind-param.js";
|
|
20
|
+
import * as m18 from "./nodes/bound-sql-literal.js";
|
|
21
|
+
import * as m19 from "./nodes/case.js";
|
|
22
|
+
import * as m20 from "./nodes/casted.js";
|
|
23
|
+
import * as m21 from "./nodes/comment.js";
|
|
24
|
+
import * as m22 from "./nodes/count.js";
|
|
25
|
+
import * as m23 from "./nodes/cte.js";
|
|
26
|
+
import * as m24 from "./nodes/delete-statement.js";
|
|
27
|
+
import * as m25 from "./nodes/descending.js";
|
|
28
|
+
import * as m26 from "./nodes/equality.js";
|
|
29
|
+
import * as m27 from "./nodes/extract.js";
|
|
30
|
+
import * as m28 from "./nodes/false.js";
|
|
31
|
+
import * as m29 from "./nodes/filter.js";
|
|
32
|
+
import * as m30 from "./nodes/fragments.js";
|
|
33
|
+
import * as m31 from "./nodes/full-outer-join.js";
|
|
34
|
+
import * as m32 from "./nodes/function.js";
|
|
35
|
+
import * as m33 from "./nodes/grouping.js";
|
|
36
|
+
import * as m34 from "./nodes/homogeneous-in.js";
|
|
37
|
+
import * as m35 from "./nodes/in.js";
|
|
38
|
+
import * as m36 from "./nodes/infix-operation.js";
|
|
39
|
+
import * as m37 from "./nodes/inner-join.js";
|
|
40
|
+
import * as m38 from "./nodes/insert-statement.js";
|
|
41
|
+
import * as m39 from "./nodes/join-source.js";
|
|
42
|
+
import * as m40 from "./nodes/leading-join.js";
|
|
43
|
+
import * as m41 from "./nodes/matches.js";
|
|
44
|
+
import * as m42 from "./nodes/named-function.js";
|
|
45
|
+
import * as m43 from "./nodes/nary.js";
|
|
46
|
+
import * as m44 from "./nodes/node-expression.js";
|
|
47
|
+
import * as m45 from "./nodes/node.js";
|
|
48
|
+
import * as m46 from "./nodes/ordering.js";
|
|
49
|
+
import * as m47 from "./nodes/outer-join.js";
|
|
50
|
+
import * as m48 from "./nodes/over.js";
|
|
51
|
+
import * as m49 from "./nodes/regexp.js";
|
|
52
|
+
import * as m50 from "./nodes/right-outer-join.js";
|
|
53
|
+
import * as m51 from "./nodes/select-core.js";
|
|
54
|
+
import * as m52 from "./nodes/select-statement.js";
|
|
55
|
+
import * as m53 from "./nodes/sql-literal.js";
|
|
56
|
+
import * as m54 from "./nodes/string-join.js";
|
|
57
|
+
import * as m55 from "./nodes/table-alias.js";
|
|
58
|
+
import * as m56 from "./nodes/terminal.js";
|
|
59
|
+
import * as m57 from "./nodes/true.js";
|
|
60
|
+
import * as m58 from "./nodes/unary-operation.js";
|
|
61
|
+
import * as m59 from "./nodes/unary.js";
|
|
62
|
+
import * as m60 from "./nodes/unqualified-column.js";
|
|
63
|
+
import * as m61 from "./nodes/update-statement.js";
|
|
64
|
+
import * as m62 from "./nodes/values-list.js";
|
|
65
|
+
import * as m63 from "./nodes/window.js";
|
|
66
|
+
import * as m64 from "./nodes/with.js";
|
|
67
|
+
import * as m65 from "./order-predications.js";
|
|
68
|
+
import * as m66 from "./predications.js";
|
|
69
|
+
import * as m67 from "./select-manager.js";
|
|
70
|
+
import * as m68 from "./table.js";
|
|
71
|
+
import * as m69 from "./tree-manager.js";
|
|
72
|
+
import * as m70 from "./update-manager.js";
|
|
73
|
+
import * as m71 from "./visitors/dot.js";
|
|
74
|
+
import * as m72 from "./visitors/mysql.js";
|
|
75
|
+
import * as m73 from "./visitors/postgresql.js";
|
|
76
|
+
import * as m74 from "./visitors/sqlite.js";
|
|
77
|
+
import * as m75 from "./visitors/to-sql.js";
|
|
78
|
+
import * as m76 from "./visitors/visitor.js";
|
|
79
|
+
import * as m77 from "./window-predications.js";
|
|
80
|
+
defineConstants([
|
|
81
|
+
[() => m0, "AliasPredication", "Arel::AliasPredication"],
|
|
82
|
+
[() => m9, "ArelError", "Arel::ArelError"],
|
|
83
|
+
[() => m1, "Attribute", "Arel::Attributes::Attribute"],
|
|
84
|
+
[() => m9, "BindError", "Arel::BindError"],
|
|
85
|
+
[() => m2, "Bind", "Arel::Collectors::Bind"],
|
|
86
|
+
[() => m3, "Composite", "Arel::Collectors::Composite"],
|
|
87
|
+
[() => m4, "PlainString", "Arel::Collectors::PlainString"],
|
|
88
|
+
[() => m5, "SQLString", "Arel::Collectors::SQLString"],
|
|
89
|
+
[() => m6, "SubstituteBinds", "Arel::Collectors::SubstituteBinds"],
|
|
90
|
+
[() => m7, "Crud", "Arel::Crud"],
|
|
91
|
+
[() => m8, "DeleteManager", "Arel::DeleteManager"],
|
|
92
|
+
[() => m9, "EmptyJoinError", "Arel::EmptyJoinError"],
|
|
93
|
+
[() => m10, "Expressions", "Arel::Expressions"],
|
|
94
|
+
[() => m11, "FactoryMethods", "Arel::FactoryMethods"],
|
|
95
|
+
[() => m12, "FilterPredications", "Arel::FilterPredications"],
|
|
96
|
+
[() => m13, "InsertManager", "Arel::InsertManager"],
|
|
97
|
+
[() => m14, "Math", "Arel::Math"],
|
|
98
|
+
[() => m36, "Addition", "Arel::Nodes::Addition"],
|
|
99
|
+
[() => m43, "And", "Arel::Nodes::And"],
|
|
100
|
+
[() => m16, "As", "Arel::Nodes::As"],
|
|
101
|
+
[() => m15, "Ascending", "Arel::Nodes::Ascending"],
|
|
102
|
+
[() => m16, "Assignment", "Arel::Nodes::Assignment"],
|
|
103
|
+
[() => m32, "Avg", "Arel::Nodes::Avg"],
|
|
104
|
+
[() => m16, "Between", "Arel::Nodes::Between"],
|
|
105
|
+
[() => m59, "Bin", "Arel::Nodes::Bin"],
|
|
106
|
+
[() => m16, "Binary", "Arel::Nodes::Binary"],
|
|
107
|
+
[() => m17, "BindParam", "Arel::Nodes::BindParam"],
|
|
108
|
+
[() => m36, "BitwiseAnd", "Arel::Nodes::BitwiseAnd"],
|
|
109
|
+
[() => m58, "BitwiseNot", "Arel::Nodes::BitwiseNot"],
|
|
110
|
+
[() => m36, "BitwiseOr", "Arel::Nodes::BitwiseOr"],
|
|
111
|
+
[() => m36, "BitwiseShiftLeft", "Arel::Nodes::BitwiseShiftLeft"],
|
|
112
|
+
[() => m36, "BitwiseShiftRight", "Arel::Nodes::BitwiseShiftRight"],
|
|
113
|
+
[() => m36, "BitwiseXor", "Arel::Nodes::BitwiseXor"],
|
|
114
|
+
[() => m18, "BoundSqlLiteral", "Arel::Nodes::BoundSqlLiteral"],
|
|
115
|
+
[() => m19, "Case", "Arel::Nodes::Case"],
|
|
116
|
+
[() => m20, "Casted", "Arel::Nodes::Casted"],
|
|
117
|
+
[() => m21, "Comment", "Arel::Nodes::Comment"],
|
|
118
|
+
[() => m36, "Concat", "Arel::Nodes::Concat"],
|
|
119
|
+
[() => m36, "Contains", "Arel::Nodes::Contains"],
|
|
120
|
+
[() => m22, "Count", "Arel::Nodes::Count"],
|
|
121
|
+
[() => m23, "Cte", "Arel::Nodes::Cte"],
|
|
122
|
+
[() => m59, "Cube", "Arel::Nodes::Cube"],
|
|
123
|
+
[() => m63, "CurrentRow", "Arel::Nodes::CurrentRow"],
|
|
124
|
+
[() => m24, "DeleteStatement", "Arel::Nodes::DeleteStatement"],
|
|
125
|
+
[() => m25, "Descending", "Arel::Nodes::Descending"],
|
|
126
|
+
[() => m56, "Distinct", "Arel::Nodes::Distinct"],
|
|
127
|
+
[() => m59, "DistinctOn", "Arel::Nodes::DistinctOn"],
|
|
128
|
+
[() => m36, "Division", "Arel::Nodes::Division"],
|
|
129
|
+
[() => m41, "DoesNotMatch", "Arel::Nodes::DoesNotMatch"],
|
|
130
|
+
[() => m19, "Else", "Arel::Nodes::Else"],
|
|
131
|
+
[() => m26, "Equality", "Arel::Nodes::Equality"],
|
|
132
|
+
[() => m16, "Except", "Arel::Nodes::Except"],
|
|
133
|
+
[() => m32, "Exists", "Arel::Nodes::Exists"],
|
|
134
|
+
[() => m27, "Extract", "Arel::Nodes::Extract"],
|
|
135
|
+
[() => m28, "False", "Arel::Nodes::False"],
|
|
136
|
+
[() => m16, "FetchAttribute", "Arel::Nodes::FetchAttribute"],
|
|
137
|
+
[() => m29, "Filter", "Arel::Nodes::Filter"],
|
|
138
|
+
[() => m63, "Following", "Arel::Nodes::Following"],
|
|
139
|
+
[() => m30, "Fragments", "Arel::Nodes::Fragments"],
|
|
140
|
+
[() => m31, "FullOuterJoin", "Arel::Nodes::FullOuterJoin"],
|
|
141
|
+
[() => m32, "Function", "Arel::Nodes::Function"],
|
|
142
|
+
[() => m16, "GreaterThan", "Arel::Nodes::GreaterThan"],
|
|
143
|
+
[() => m16, "GreaterThanOrEqual", "Arel::Nodes::GreaterThanOrEqual"],
|
|
144
|
+
[() => m59, "Group", "Arel::Nodes::Group"],
|
|
145
|
+
[() => m33, "Grouping", "Arel::Nodes::Grouping"],
|
|
146
|
+
[() => m59, "GroupingElement", "Arel::Nodes::GroupingElement"],
|
|
147
|
+
[() => m59, "GroupingSet", "Arel::Nodes::GroupingSet"],
|
|
148
|
+
[() => m34, "HomogeneousIn", "Arel::Nodes::HomogeneousIn"],
|
|
149
|
+
[() => m35, "In", "Arel::Nodes::In"],
|
|
150
|
+
[() => m36, "InfixOperation", "Arel::Nodes::InfixOperation"],
|
|
151
|
+
[() => m37, "InnerJoin", "Arel::Nodes::InnerJoin"],
|
|
152
|
+
[() => m38, "InsertStatement", "Arel::Nodes::InsertStatement"],
|
|
153
|
+
[() => m16, "Intersect", "Arel::Nodes::Intersect"],
|
|
154
|
+
[() => m16, "IsDistinctFrom", "Arel::Nodes::IsDistinctFrom"],
|
|
155
|
+
[() => m16, "IsNotDistinctFrom", "Arel::Nodes::IsNotDistinctFrom"],
|
|
156
|
+
[() => m16, "Join", "Arel::Nodes::Join"],
|
|
157
|
+
[() => m39, "JoinSource", "Arel::Nodes::JoinSource"],
|
|
158
|
+
[() => m59, "Lateral", "Arel::Nodes::Lateral"],
|
|
159
|
+
[() => m40, "LeadingJoin", "Arel::Nodes::LeadingJoin"],
|
|
160
|
+
[() => m16, "LessThan", "Arel::Nodes::LessThan"],
|
|
161
|
+
[() => m16, "LessThanOrEqual", "Arel::Nodes::LessThanOrEqual"],
|
|
162
|
+
[() => m59, "Limit", "Arel::Nodes::Limit"],
|
|
163
|
+
[() => m59, "Lock", "Arel::Nodes::Lock"],
|
|
164
|
+
[() => m41, "Matches", "Arel::Nodes::Matches"],
|
|
165
|
+
[() => m32, "Max", "Arel::Nodes::Max"],
|
|
166
|
+
[() => m32, "Min", "Arel::Nodes::Min"],
|
|
167
|
+
[() => m36, "Multiplication", "Arel::Nodes::Multiplication"],
|
|
168
|
+
[() => m42, "NamedFunction", "Arel::Nodes::NamedFunction"],
|
|
169
|
+
[() => m63, "NamedWindow", "Arel::Nodes::NamedWindow"],
|
|
170
|
+
[() => m43, "Nary", "Arel::Nodes::Nary"],
|
|
171
|
+
[() => m45, "Node", "Arel::Nodes::Node"],
|
|
172
|
+
[() => m44, "NodeExpression", "Arel::Nodes::NodeExpression"],
|
|
173
|
+
[() => m59, "Not", "Arel::Nodes::Not"],
|
|
174
|
+
[() => m16, "NotEqual", "Arel::Nodes::NotEqual"],
|
|
175
|
+
[() => m16, "NotIn", "Arel::Nodes::NotIn"],
|
|
176
|
+
[() => m49, "NotRegexp", "Arel::Nodes::NotRegexp"],
|
|
177
|
+
[() => m46, "NullsFirst", "Arel::Nodes::NullsFirst"],
|
|
178
|
+
[() => m46, "NullsLast", "Arel::Nodes::NullsLast"],
|
|
179
|
+
[() => m59, "Offset", "Arel::Nodes::Offset"],
|
|
180
|
+
[() => m59, "On", "Arel::Nodes::On"],
|
|
181
|
+
[() => m59, "OptimizerHints", "Arel::Nodes::OptimizerHints"],
|
|
182
|
+
[() => m43, "Or", "Arel::Nodes::Or"],
|
|
183
|
+
[() => m46, "Ordering", "Arel::Nodes::Ordering"],
|
|
184
|
+
[() => m47, "OuterJoin", "Arel::Nodes::OuterJoin"],
|
|
185
|
+
[() => m48, "Over", "Arel::Nodes::Over"],
|
|
186
|
+
[() => m36, "Overlaps", "Arel::Nodes::Overlaps"],
|
|
187
|
+
[() => m63, "Preceding", "Arel::Nodes::Preceding"],
|
|
188
|
+
[() => m20, "Quoted", "Arel::Nodes::Quoted"],
|
|
189
|
+
[() => m63, "Range", "Arel::Nodes::Range"],
|
|
190
|
+
[() => m49, "Regexp", "Arel::Nodes::Regexp"],
|
|
191
|
+
[() => m50, "RightOuterJoin", "Arel::Nodes::RightOuterJoin"],
|
|
192
|
+
[() => m59, "RollUp", "Arel::Nodes::RollUp"],
|
|
193
|
+
[() => m63, "Rows", "Arel::Nodes::Rows"],
|
|
194
|
+
[() => m51, "SelectCore", "Arel::Nodes::SelectCore"],
|
|
195
|
+
[() => m52, "SelectStatement", "Arel::Nodes::SelectStatement"],
|
|
196
|
+
[() => m53, "SqlLiteral", "Arel::Nodes::SqlLiteral"],
|
|
197
|
+
[() => m54, "StringJoin", "Arel::Nodes::StringJoin"],
|
|
198
|
+
[() => m36, "Subtraction", "Arel::Nodes::Subtraction"],
|
|
199
|
+
[() => m32, "Sum", "Arel::Nodes::Sum"],
|
|
200
|
+
[() => m55, "TableAlias", "Arel::Nodes::TableAlias"],
|
|
201
|
+
[() => m57, "True", "Arel::Nodes::True"],
|
|
202
|
+
[() => m59, "Unary", "Arel::Nodes::Unary"],
|
|
203
|
+
[() => m58, "UnaryOperation", "Arel::Nodes::UnaryOperation"],
|
|
204
|
+
[() => m16, "Union", "Arel::Nodes::Union"],
|
|
205
|
+
[() => m16, "UnionAll", "Arel::Nodes::UnionAll"],
|
|
206
|
+
[() => m60, "UnqualifiedColumn", "Arel::Nodes::UnqualifiedColumn"],
|
|
207
|
+
[() => m61, "UpdateStatement", "Arel::Nodes::UpdateStatement"],
|
|
208
|
+
[() => m62, "ValuesList", "Arel::Nodes::ValuesList"],
|
|
209
|
+
[() => m19, "When", "Arel::Nodes::When"],
|
|
210
|
+
[() => m63, "Window", "Arel::Nodes::Window"],
|
|
211
|
+
[() => m64, "With", "Arel::Nodes::With"],
|
|
212
|
+
[() => m64, "WithRecursive", "Arel::Nodes::WithRecursive"],
|
|
213
|
+
[() => m65, "OrderPredications", "Arel::OrderPredications"],
|
|
214
|
+
[() => m66, "Predications", "Arel::Predications"],
|
|
215
|
+
[() => m67, "SelectManager", "Arel::SelectManager"],
|
|
216
|
+
[() => m68, "Table", "Arel::Table"],
|
|
217
|
+
[() => m69, "TreeManager", "Arel::TreeManager"],
|
|
218
|
+
[() => m69, "StatementMethods", "Arel::TreeManager::StatementMethods"],
|
|
219
|
+
[() => m70, "UpdateManager", "Arel::UpdateManager"],
|
|
220
|
+
[() => m71, "Dot", "Arel::Visitors::Dot"],
|
|
221
|
+
[() => m71, "Edge", "Arel::Visitors::Dot::Edge"],
|
|
222
|
+
[() => m71, "Node", "Arel::Visitors::Dot::Node"],
|
|
223
|
+
[() => m72, "MySQL", "Arel::Visitors::MySQL"],
|
|
224
|
+
[() => m73, "PostgreSQL", "Arel::Visitors::PostgreSQL"],
|
|
225
|
+
[() => m74, "SQLite", "Arel::Visitors::SQLite"],
|
|
226
|
+
[() => m75, "ToSql", "Arel::Visitors::ToSql"],
|
|
227
|
+
[() => m75, "UnsupportedVisitError", "Arel::Visitors::UnsupportedVisitError"],
|
|
228
|
+
[() => m76, "Visitor", "Arel::Visitors::Visitor"],
|
|
229
|
+
[() => m77, "WindowPredications", "Arel::WindowPredications"],
|
|
230
|
+
]);
|
|
231
|
+
//# sourceMappingURL=constants.generated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.generated.js","sourceRoot":"","sources":["../lib/constants.generated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC7C,OAAO,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAChD,OAAO,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC3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CAAC,GAAG,EAAE,uBAAuB,EAAE,uCAAuC,CAAC;IAC7E,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,SAAS,EAAE,yBAAyB,CAAC;IACjD,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,oBAAoB,EAAE,0BAA0B,CAAC;CAC9D,CAAC,CAAC"}
|
package/dist/crud.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { SqlLiteral } from "./nodes/sql-literal.js";
|
|
2
|
+
import type { BoundSqlLiteral } from "./nodes/bound-sql-literal.js";
|
|
3
|
+
import { InsertManager } from "./insert-manager.js";
|
|
4
|
+
import { UpdateManager } from "./update-manager.js";
|
|
5
|
+
import { DeleteManager } from "./delete-manager.js";
|
|
6
|
+
import type { ArelNode } from "./arel.js";
|
|
7
|
+
export type UpdateValues = [ArelNode, unknown][] | Map<ArelNode, unknown> | string | SqlLiteral | BoundSqlLiteral;
|
|
8
|
+
export interface Crud {
|
|
9
|
+
compileInsert(values: [ArelNode, unknown][] | Map<ArelNode, unknown>): InsertManager;
|
|
10
|
+
createInsert(): InsertManager;
|
|
11
|
+
compileUpdate(values: UpdateValues, key?: ArelNode | ArelNode[] | null, havingClause?: ArelNode | null, groupValuesColumns?: ArelNode[]): UpdateManager;
|
|
12
|
+
compileDelete(key?: ArelNode | ArelNode[] | null, havingClause?: ArelNode | null, groupValuesColumns?: ArelNode[]): DeleteManager;
|
|
13
|
+
}
|
|
14
|
+
export declare const Crud: Crud;
|
|
15
|
+
//# sourceMappingURL=crud.d.ts.map
|
package/dist/crud.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { InsertManager } from "./insert-manager.js";
|
|
2
|
+
import { UpdateManager } from "./update-manager.js";
|
|
3
|
+
import { DeleteManager } from "./delete-manager.js";
|
|
4
|
+
export const Crud = {
|
|
5
|
+
compileInsert(values) {
|
|
6
|
+
const im = this.createInsert();
|
|
7
|
+
im.insert(values);
|
|
8
|
+
return im;
|
|
9
|
+
},
|
|
10
|
+
createInsert() {
|
|
11
|
+
return new InsertManager();
|
|
12
|
+
},
|
|
13
|
+
compileUpdate(values, key = null, havingClause = null, groupValuesColumns = []) {
|
|
14
|
+
const um = new UpdateManager(this.source);
|
|
15
|
+
um.set(values);
|
|
16
|
+
um.take(this.limit);
|
|
17
|
+
um.offset(this.offset);
|
|
18
|
+
um.order(...this.orders);
|
|
19
|
+
um.wheres = this.constraints;
|
|
20
|
+
um.comment(this.comment());
|
|
21
|
+
um.key = key;
|
|
22
|
+
if (groupValuesColumns.length > 0)
|
|
23
|
+
um.group(groupValuesColumns);
|
|
24
|
+
if (havingClause !== null)
|
|
25
|
+
um.having(havingClause);
|
|
26
|
+
return um;
|
|
27
|
+
},
|
|
28
|
+
compileDelete(key = null, havingClause = null, groupValuesColumns = []) {
|
|
29
|
+
const dm = new DeleteManager(this.source);
|
|
30
|
+
dm.take(this.limit);
|
|
31
|
+
dm.offset(this.offset);
|
|
32
|
+
dm.order(...this.orders);
|
|
33
|
+
dm.wheres = this.constraints;
|
|
34
|
+
dm.comment(this.comment());
|
|
35
|
+
dm.key = key;
|
|
36
|
+
if (groupValuesColumns.length > 0)
|
|
37
|
+
dm.group(groupValuesColumns);
|
|
38
|
+
if (havingClause !== null)
|
|
39
|
+
dm.having(havingClause);
|
|
40
|
+
return dm;
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=crud.js.map
|
package/dist/crud.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crud.js","sourceRoot":"","sources":["../lib/crud.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AA2BpD,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,aAAa,CAEX,MAAsD;QAEtD,MAA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AAC,MAAM,CAAC,CAAC;QACvB,EAAE,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;QACzB,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC;QAC7B,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAC3B,EAAE,CAAC,GAAG,GAAG,GAAG,CAAC;QACb,IAAI,kBAAkB,CAAC,MAAM,GAAG,CAAC;YAAE,EAAE,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;QAChE,IAAI,YAAY,KAAK,IAAI;YAAE,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QACnD,OAAO,EAAE,CAAC;IACZ,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TreeManager } from "./tree-manager.js";
|
|
2
|
+
import { DeleteStatement } from "./nodes/delete-statement.js";
|
|
3
|
+
import { Table } from "./table.js";
|
|
4
|
+
import type { ArelNode } from "./arel.js";
|
|
5
|
+
import type { Node } from "./nodes/node.js";
|
|
6
|
+
export declare class DeleteManager extends TreeManager<DeleteStatement> {
|
|
7
|
+
key: unknown;
|
|
8
|
+
wheres: ArelNode[];
|
|
9
|
+
where: (expr: ArelNode) => this;
|
|
10
|
+
take: (limit: unknown) => this;
|
|
11
|
+
offset: (offset: unknown) => this;
|
|
12
|
+
order: (...expr: ArelNode[]) => this;
|
|
13
|
+
constructor(table?: Table | ArelNode | null);
|
|
14
|
+
from(relation: Table): this;
|
|
15
|
+
group(columns: (ArelNode | string)[]): this;
|
|
16
|
+
having(expr: ArelNode): this;
|
|
17
|
+
comment(value: Node | null): this;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=delete-manager.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { TreeManager, StatementMethods } from "./tree-manager.js";
|
|
2
|
+
import { include } from "@blazetrails/activesupport";
|
|
3
|
+
import { DeleteStatement } from "./nodes/delete-statement.js";
|
|
4
|
+
import { Group } from "./nodes/unary.js";
|
|
5
|
+
import { SqlLiteral } from "./nodes/sql-literal.js";
|
|
6
|
+
import { constSet } from "@blazetrails/ruby-compat/include";
|
|
7
|
+
import { Arel } from "./namespaces.js";
|
|
8
|
+
export class DeleteManager extends TreeManager {
|
|
9
|
+
constructor(table = null) {
|
|
10
|
+
super();
|
|
11
|
+
this.ast = new DeleteStatement(table);
|
|
12
|
+
}
|
|
13
|
+
from(relation) {
|
|
14
|
+
this.ast.relation = relation;
|
|
15
|
+
return this;
|
|
16
|
+
}
|
|
17
|
+
group(columns) {
|
|
18
|
+
for (let column of columns) {
|
|
19
|
+
if (typeof column === "string") {
|
|
20
|
+
column = new SqlLiteral(column.startsWith(":") ? column.slice(1) : column);
|
|
21
|
+
}
|
|
22
|
+
this.ast.groups.push(new Group(column));
|
|
23
|
+
}
|
|
24
|
+
return this;
|
|
25
|
+
}
|
|
26
|
+
having(expr) {
|
|
27
|
+
this.ast.havings.push(expr);
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
comment(value) {
|
|
31
|
+
this.ast.comment = value;
|
|
32
|
+
return this;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
include(DeleteManager, StatementMethods);
|
|
36
|
+
constSet(Arel, "DeleteManager", DeleteManager);
|
|
37
|
+
//# sourceMappingURL=delete-manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-manager.js","sourceRoot":"","sources":["../lib/delete-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,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|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class ArelError extends Error {
|
|
2
|
+
constructor(message?: string);
|
|
3
|
+
}
|
|
4
|
+
export declare class EmptyJoinError extends ArelError {
|
|
5
|
+
constructor(message?: string);
|
|
6
|
+
}
|
|
7
|
+
export declare class BindError extends ArelError {
|
|
8
|
+
constructor(message: string, sql?: string);
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=errors.d.ts.map
|
package/dist/errors.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { constSet } from "@blazetrails/ruby-compat/include";
|
|
2
|
+
import { Arel } from "./namespaces.js";
|
|
3
|
+
export class ArelError extends Error {
|
|
4
|
+
constructor(message) {
|
|
5
|
+
super(message);
|
|
6
|
+
this.name = "ArelError";
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export class EmptyJoinError extends ArelError {
|
|
10
|
+
constructor(message) {
|
|
11
|
+
super(message);
|
|
12
|
+
this.name = "EmptyJoinError";
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export class BindError extends ArelError {
|
|
16
|
+
constructor(message, sql) {
|
|
17
|
+
super(sql !== undefined ? `${message} in: ${JSON.stringify(sql)}` : message);
|
|
18
|
+
this.name = "BindError";
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
constSet(Arel, "ArelError", ArelError);
|
|
22
|
+
constSet(Arel, "EmptyJoinError", EmptyJoinError);
|
|
23
|
+
constSet(Arel, "BindError", BindError);
|
|
24
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../lib/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAEvC,MAAM,OAAO,SAAU,SAAQ,KAAK;IAClC,YAAY,OAAgB;QAC1B,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;IAC1B,CAAC;CACF;AAED,MAAM,OAAO,cAAe,SAAQ,SAAS;IAC3C,YAAY,OAAgB;QAC1B,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC;IAC/B,CAAC;CACF;AAED,MAAM,OAAO,SAAU,SAAQ,SAAS;IACtC,YAAY,OAAe,EAAE,GAAY;QACvC,KAAK,CAAC,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,OAAO,QAAQ,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QAC7E,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;IAC1B,CAAC;CACF;AAED,QAAQ,CAAC,IAAI,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;AACvC,QAAQ,CAAC,IAAI,EAAE,gBAAgB,EAAE,cAAc,CAAC,CAAC;AACjD,QAAQ,CAAC,IAAI,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Count } from "./nodes/count.js";
|
|
2
|
+
import type { Extract } from "./nodes/extract.js";
|
|
3
|
+
import type { Sum, Max, Min, Avg } from "./nodes/function.js";
|
|
4
|
+
export interface ExpressionsModule {
|
|
5
|
+
count(distinct?: boolean | null): Count;
|
|
6
|
+
sum(): Sum;
|
|
7
|
+
maximum(): Max;
|
|
8
|
+
minimum(): Min;
|
|
9
|
+
average(): Avg;
|
|
10
|
+
extract(field: string): Extract;
|
|
11
|
+
}
|
|
12
|
+
export declare const Expressions: ExpressionsModule;
|
|
13
|
+
//# sourceMappingURL=expressions.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Nodes } from "./namespaces.js";
|
|
2
|
+
export const Expressions = {
|
|
3
|
+
count(distinct = false) {
|
|
4
|
+
return new Nodes.Count([this], distinct);
|
|
5
|
+
},
|
|
6
|
+
sum() {
|
|
7
|
+
return new Nodes.Sum([this]);
|
|
8
|
+
},
|
|
9
|
+
maximum() {
|
|
10
|
+
return new Nodes.Max([this]);
|
|
11
|
+
},
|
|
12
|
+
minimum() {
|
|
13
|
+
return new Nodes.Min([this]);
|
|
14
|
+
},
|
|
15
|
+
average() {
|
|
16
|
+
return new Nodes.Avg([this]);
|
|
17
|
+
},
|
|
18
|
+
extract(field) {
|
|
19
|
+
return new Nodes.Extract([this], field);
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=expressions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expressions.js","sourceRoot":"","sources":["../lib/expressions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAWxC,MAAM,CAAC,MAAM,WAAW,GAAsB;IAC5C,KAAK,CAAiB,QAAQ,GAAmB,KAAK;QACpD,OAAO,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,CAAC;IAC3C,CAAC;IACD,GAAG;QACD,OAAO,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IAC/B,CAAC;IACD,OAAO;QACL,OAAO,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IAC/B,CAAC;IACD,OAAO;QACL,OAAO,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IAC/B,CAAC;IACD,OAAO;QACL,OAAO,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IAC/B,CAAC;IACD,OAAO,CAAiB,KAAa;QACnC,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,CAAC;IAC1C,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Node } from "./nodes/node.js";
|
|
2
|
+
import type { Table } from "./table.js";
|
|
3
|
+
import type { And } from "./nodes/nary.js";
|
|
4
|
+
import type { Join, NodeOrValue } from "./nodes/binary.js";
|
|
5
|
+
import type { False } from "./nodes/false.js";
|
|
6
|
+
import type { Grouping } from "./nodes/grouping.js";
|
|
7
|
+
import type { NamedFunction } from "./nodes/named-function.js";
|
|
8
|
+
import type { SqlLiteral } from "./nodes/sql-literal.js";
|
|
9
|
+
import type { StringJoin } from "./nodes/string-join.js";
|
|
10
|
+
import type { TableAlias } from "./nodes/table-alias.js";
|
|
11
|
+
import type { True } from "./nodes/true.js";
|
|
12
|
+
import type { On } from "./nodes/unary.js";
|
|
13
|
+
import type { ArelNode } from "./arel.js";
|
|
14
|
+
export interface FactoryMethodsModule {
|
|
15
|
+
createTrue(): True;
|
|
16
|
+
createFalse(): False;
|
|
17
|
+
createTableAlias(relation: ArelNode | Table, name: string | SqlLiteral): TableAlias;
|
|
18
|
+
createJoin(to: ArelNode | Table | string, constraint?: ArelNode | string | null, klass?: new (left: ArelNode | Table, right: ArelNode | null) => Join): Join;
|
|
19
|
+
createStringJoin(to: string | ArelNode): StringJoin;
|
|
20
|
+
createAnd(clauses: (ArelNode | string)[]): And;
|
|
21
|
+
createOn(expr: ArelNode): On;
|
|
22
|
+
grouping(expr: ArelNode): Grouping;
|
|
23
|
+
lower(column: unknown): NamedFunction;
|
|
24
|
+
coalesce(...exprs: NodeOrValue[]): NamedFunction;
|
|
25
|
+
cast(name: ArelNode & {
|
|
26
|
+
as: (type: string) => Node;
|
|
27
|
+
}, type: string): NamedFunction;
|
|
28
|
+
}
|
|
29
|
+
export declare const FactoryMethods: FactoryMethodsModule;
|
|
30
|
+
//# sourceMappingURL=factory-methods.d.ts.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Nodes } from "./namespaces.js";
|
|
2
|
+
export const FactoryMethods = {
|
|
3
|
+
createTrue() {
|
|
4
|
+
return new Nodes.True();
|
|
5
|
+
},
|
|
6
|
+
createFalse() {
|
|
7
|
+
return new Nodes.False();
|
|
8
|
+
},
|
|
9
|
+
createTableAlias(relation, name) {
|
|
10
|
+
return new Nodes.TableAlias(relation, name);
|
|
11
|
+
},
|
|
12
|
+
createJoin(to, constraint, klass) {
|
|
13
|
+
const JoinKlass = klass ?? Nodes.InnerJoin;
|
|
14
|
+
return new JoinKlass(to, (constraint ?? null));
|
|
15
|
+
},
|
|
16
|
+
createStringJoin(to) {
|
|
17
|
+
return this.createJoin(to, null, Nodes.StringJoin);
|
|
18
|
+
},
|
|
19
|
+
createAnd(clauses) {
|
|
20
|
+
return new Nodes.And(clauses);
|
|
21
|
+
},
|
|
22
|
+
createOn(expr) {
|
|
23
|
+
return new Nodes.On(expr);
|
|
24
|
+
},
|
|
25
|
+
grouping(expr) {
|
|
26
|
+
return new Nodes.Grouping(expr);
|
|
27
|
+
},
|
|
28
|
+
lower(column) {
|
|
29
|
+
return new Nodes.NamedFunction("LOWER", [Nodes.buildQuoted(column)]);
|
|
30
|
+
},
|
|
31
|
+
coalesce(...exprs) {
|
|
32
|
+
return new Nodes.NamedFunction("COALESCE", exprs);
|
|
33
|
+
},
|
|
34
|
+
cast(name, type) {
|
|
35
|
+
return new Nodes.NamedFunction("CAST", [name.as(type)]);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=factory-methods.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"factory-methods.js","sourceRoot":"","sources":["../lib/factory-methods.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAqBxC,MAAM,CAAC,MAAM,cAAc,GAAyB;IAClD,UAAU;QACR,OAAO,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;IAC1B,CAAC;IAED,WAAW;QACT,OAAO,IAAI,KAAK,CAAC,KAAK,EAAE,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 +1,7 @@
|
|
|
1
|
+
import type { Filter } from "./nodes/filter.js";
|
|
2
|
+
import type { ArelNode } from "./arel.js";
|
|
3
|
+
export interface FilterPredicationsModule {
|
|
4
|
+
filter(expr: ArelNode): Filter;
|
|
5
|
+
}
|
|
6
|
+
export declare const FilterPredications: FilterPredicationsModule;
|
|
7
|
+
//# sourceMappingURL=filter-predications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-predications.js","sourceRoot":"","sources":["../lib/filter-predications.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAOxC,MAAM,CAAC,MAAM,kBAAkB,GAA6B;IAC1D,MAAM,CAAa,IAAc;QAC/B,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export { Table } from "./table.js";
|
|
2
|
+
import "./nodes/index.js";
|
|
3
|
+
import "./visitors/index.js";
|
|
4
|
+
import "./collectors/index.js";
|
|
5
|
+
export { Attributes, Collectors, Nodes, Visitors } from "./namespaces.js";
|
|
6
|
+
export { Attribute } from "./attributes/attribute.js";
|
|
7
|
+
export { SelectManager } from "./select-manager.js";
|
|
8
|
+
export { InsertManager } from "./insert-manager.js";
|
|
9
|
+
export { UpdateManager } from "./update-manager.js";
|
|
10
|
+
export { DeleteManager } from "./delete-manager.js";
|
|
11
|
+
export { TreeManager } from "./tree-manager.js";
|
|
12
|
+
export type { ArelEngine } from "./nodes/node.js";
|
|
13
|
+
export { ArelError, EmptyJoinError, BindError } from "./errors.js";
|
|
14
|
+
export { sql, star, arelNode, fetchAttribute } from "./arel.js";
|
|
15
|
+
export type { ArelNode } from "./arel.js";
|
|
16
|
+
export { Predications } from "./predications.js";
|
|
17
|
+
export { Expressions } from "./expressions.js";
|
|
18
|
+
import "./nodes/unary.js";
|
|
19
|
+
import "./nodes/grouping.js";
|
|
20
|
+
import "./nodes/nary.js";
|
|
21
|
+
import "./nodes/equality.js";
|
|
22
|
+
import "./nodes/in.js";
|
|
23
|
+
import "./nodes/casted.js";
|
|
24
|
+
import "./constants.generated.js";
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export { Table } from "./table.js";
|
|
2
|
+
import "./nodes/index.js";
|
|
3
|
+
import "./visitors/index.js";
|
|
4
|
+
import "./collectors/index.js";
|
|
5
|
+
export { Attributes, Collectors, Nodes, Visitors } from "./namespaces.js";
|
|
6
|
+
export { Attribute } from "./attributes/attribute.js";
|
|
7
|
+
export { SelectManager } from "./select-manager.js";
|
|
8
|
+
export { InsertManager } from "./insert-manager.js";
|
|
9
|
+
export { UpdateManager } from "./update-manager.js";
|
|
10
|
+
export { DeleteManager } from "./delete-manager.js";
|
|
11
|
+
export { TreeManager } from "./tree-manager.js";
|
|
12
|
+
export { ArelError, EmptyJoinError, BindError } from "./errors.js";
|
|
13
|
+
export { sql, star, arelNode, fetchAttribute } from "./arel.js";
|
|
14
|
+
export { Predications } from "./predications.js";
|
|
15
|
+
export { Expressions } from "./expressions.js";
|
|
16
|
+
import "./nodes/unary.js";
|
|
17
|
+
import "./nodes/grouping.js";
|
|
18
|
+
import "./nodes/nary.js";
|
|
19
|
+
import "./nodes/equality.js";
|
|
20
|
+
import "./nodes/in.js";
|
|
21
|
+
import "./nodes/casted.js";
|
|
22
|
+
import "./constants.generated.js";
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,kBAAkB,CAAC;AAC1B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,iBAAiB,CAAC;AACzB,OAAO,qBAAqB,CAAC;AAC7B,OAAO,eAAe,CAAC;AACvB,OAAO,mBAAmB,CAAC;AAE3B,OAAO,0BAA0B,CAAC"}
|