Skip to content

Commit 8a19a48

Browse files
committed
test: add complex calculation tests with filtered aggregates
1 parent e7530aa commit 8a19a48

File tree

10 files changed

+1318
-1
lines changed

10 files changed

+1318
-1
lines changed
Lines changed: 201 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,201 @@
1+
{
2+
"attributes": [
3+
{
4+
"allow_nil?": false,
5+
"default": "fragment(\"gen_random_uuid()\")",
6+
"generated?": false,
7+
"precision": null,
8+
"primary_key?": true,
9+
"references": null,
10+
"scale": null,
11+
"size": null,
12+
"source": "id",
13+
"type": "uuid"
14+
},
15+
{
16+
"allow_nil?": true,
17+
"default": "nil",
18+
"generated?": false,
19+
"precision": null,
20+
"primary_key?": false,
21+
"references": null,
22+
"scale": null,
23+
"size": null,
24+
"source": "title",
25+
"type": "text"
26+
},
27+
{
28+
"allow_nil?": true,
29+
"default": "nil",
30+
"generated?": false,
31+
"precision": null,
32+
"primary_key?": false,
33+
"references": null,
34+
"scale": null,
35+
"size": null,
36+
"source": "likes",
37+
"type": "bigint"
38+
},
39+
{
40+
"allow_nil?": true,
41+
"default": "nil",
42+
"generated?": false,
43+
"precision": null,
44+
"primary_key?": false,
45+
"references": null,
46+
"scale": null,
47+
"size": null,
48+
"source": "arbitrary_timestamp",
49+
"type": "utc_datetime_usec"
50+
},
51+
{
52+
"allow_nil?": true,
53+
"default": "nil",
54+
"generated?": false,
55+
"precision": null,
56+
"primary_key?": false,
57+
"references": null,
58+
"scale": null,
59+
"size": null,
60+
"source": "edited_duration",
61+
"type": "bigint"
62+
},
63+
{
64+
"allow_nil?": true,
65+
"default": "nil",
66+
"generated?": false,
67+
"precision": null,
68+
"primary_key?": false,
69+
"references": null,
70+
"scale": null,
71+
"size": null,
72+
"source": "planned_duration",
73+
"type": "bigint"
74+
},
75+
{
76+
"allow_nil?": true,
77+
"default": "nil",
78+
"generated?": false,
79+
"precision": null,
80+
"primary_key?": false,
81+
"references": null,
82+
"scale": null,
83+
"size": null,
84+
"source": "reading_time",
85+
"type": "bigint"
86+
},
87+
{
88+
"allow_nil?": true,
89+
"default": "nil",
90+
"generated?": false,
91+
"precision": null,
92+
"primary_key?": false,
93+
"references": null,
94+
"scale": null,
95+
"size": null,
96+
"source": "version",
97+
"type": "text"
98+
},
99+
{
100+
"allow_nil?": true,
101+
"default": "nil",
102+
"generated?": false,
103+
"precision": null,
104+
"primary_key?": false,
105+
"references": null,
106+
"scale": null,
107+
"size": null,
108+
"source": "status",
109+
"type": "text"
110+
},
111+
{
112+
"allow_nil?": false,
113+
"default": "fragment(\"(now() AT TIME ZONE 'utc')\")",
114+
"generated?": false,
115+
"precision": null,
116+
"primary_key?": false,
117+
"references": null,
118+
"scale": null,
119+
"size": null,
120+
"source": "created_at",
121+
"type": "utc_datetime_usec"
122+
},
123+
{
124+
"allow_nil?": true,
125+
"default": "nil",
126+
"generated?": false,
127+
"precision": null,
128+
"primary_key?": false,
129+
"references": {
130+
"deferrable": false,
131+
"destination_attribute": "id",
132+
"destination_attribute_default": null,
133+
"destination_attribute_generated": null,
134+
"index?": false,
135+
"match_type": null,
136+
"match_with": null,
137+
"multitenancy": {
138+
"attribute": null,
139+
"global": null,
140+
"strategy": null
141+
},
142+
"name": "special_name_fkey",
143+
"on_delete": "delete",
144+
"on_update": "update",
145+
"primary_key?": true,
146+
"schema": "public",
147+
"table": "posts"
148+
},
149+
"scale": null,
150+
"size": null,
151+
"source": "post_id",
152+
"type": "uuid"
153+
},
154+
{
155+
"allow_nil?": true,
156+
"default": "nil",
157+
"generated?": false,
158+
"precision": null,
159+
"primary_key?": false,
160+
"references": {
161+
"deferrable": false,
162+
"destination_attribute": "id",
163+
"destination_attribute_default": null,
164+
"destination_attribute_generated": null,
165+
"index?": false,
166+
"match_type": null,
167+
"match_with": null,
168+
"multitenancy": {
169+
"attribute": null,
170+
"global": null,
171+
"strategy": null
172+
},
173+
"name": "comments_author_id_fkey",
174+
"on_delete": null,
175+
"on_update": null,
176+
"primary_key?": true,
177+
"schema": "public",
178+
"table": "authors"
179+
},
180+
"scale": null,
181+
"size": null,
182+
"source": "author_id",
183+
"type": "uuid"
184+
}
185+
],
186+
"base_filter": null,
187+
"check_constraints": [],
188+
"custom_indexes": [],
189+
"custom_statements": [],
190+
"has_create_action": true,
191+
"hash": "41FCB2B9D2A9E426EB0439AFF6F3A9208865A18F0598F271C41CCD4637C417D3",
192+
"identities": [],
193+
"multitenancy": {
194+
"attribute": null,
195+
"global": null,
196+
"strategy": null
197+
},
198+
"repo": "Elixir.AshPostgres.TestRepo",
199+
"schema": null,
200+
"table": "comments"
201+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SPDX-FileCopyrightText: 2019 ash_postgres contributors <https://github.com/ash-project/ash_postgres/graphs.contributors>
2+
3+
SPDX-License-Identifier: MIT

0 commit comments

Comments
 (0)