@@ -101,7 +101,7 @@ simple query:
103 query :: Query
103 query :: Query
104− '["tab" ::: '[] :=> '["col" ::: 'NoDef :=> 'Null 'PGint4]]
104+ '["tab" ::: 'Table ('[] :=> '["col" ::: 'NoDef :=> 'Null 'PGint4])]
106 '["col" ::: 'Null 'PGint4]
106 '["col" ::: 'Null 'PGint4]
107 query = selectStar (from (table (#tab `As` #t)))
107 query = selectStar (from (table (#tab `As` #t)))
@@ -114,9 +114,9 @@ restricted query:
116 query :: Query
116 query :: Query
117− '[ "tab" ::: '[] :=>
117+ '[ "tab" ::: 'Table ('[] :=>
118 '[ "col1" ::: 'NoDef :=> 'NotNull 'PGint4
118 '[ "col1" ::: 'NoDef :=> 'NotNull 'PGint4
119− , "col2" ::: 'NoDef :=> 'NotNull 'PGint4 ]]
119+ , "col2" ::: 'NoDef :=> 'NotNull 'PGint4 ])]
121 '[ "sum" ::: 'NotNull 'PGint4
121 '[ "sum" ::: 'NotNull 'PGint4
122 , "col1" ::: 'NotNull 'PGint4 ]
122 , "col1" ::: 'NotNull 'PGint4 ]
@@ -135,7 +135,7 @@ subquery:
137 query :: Query
137 query :: Query
138− '["tab" ::: '[] :=> '["col" ::: 'NoDef :=> 'Null 'PGint4]]
138+ '["tab" ::: 'Table ('[] :=> '["col" ::: 'NoDef :=> 'Null 'PGint4])]
140 '["col" ::: 'Null 'PGint4]
140 '["col" ::: 'Null 'PGint4]
@@ -150,7 +150,7 @@ limits and offsets:
152 query :: Query
152 query :: Query
153− '["tab" ::: '[] :=> '["col" ::: 'NoDef :=> 'Null 'PGint4]]
153+ '["tab" ::: 'Table ('[] :=> '["col" ::: 'NoDef :=> 'Null 'PGint4])]
155 '["col" ::: 'Null 'PGint4]
155 '["col" ::: 'Null 'PGint4]
156 query = selectStar
156 query = selectStar
@@ -164,7 +164,7 @@ parameterized query:
166 query :: Query
166 query :: Query
167− '["tab" ::: '[] :=> '["col" ::: 'NoDef :=> 'NotNull 'PGfloat8]]
167+ '["tab" ::: 'Table ('[] :=> '["col" ::: 'NoDef :=> 'NotNull 'PGfloat8])]
168 '[ 'NotNull 'PGfloat8]
168 '[ 'NotNull 'PGfloat8]
169 '["col" ::: 'NotNull 'PGfloat8]
169 '["col" ::: 'NotNull 'PGfloat8]
170 query = selectStar
170 query = selectStar
@@ -178,9 +178,9 @@ aggregation query:
180 query :: Query
180 query :: Query
181− '[ "tab" ::: '[] :=>
181+ '[ "tab" ::: 'Table ('[] :=>
182 '[ "col1" ::: 'NoDef :=> 'NotNull 'PGint4
182 '[ "col1" ::: 'NoDef :=> 'NotNull 'PGint4
183− , "col2" ::: 'NoDef :=> 'NotNull 'PGint4 ]]
183+ , "col2" ::: 'NoDef :=> 'NotNull 'PGint4 ])]
185 '[ "sum" ::: 'NotNull 'PGint4
185 '[ "sum" ::: 'NotNull 'PGint4
186 , "col1" ::: 'NotNull 'PGint4 ]
186 , "col1" ::: 'NotNull 'PGint4 ]
@@ -198,7 +198,7 @@ sorted query:
200 query :: Query
200 query :: Query
201− '["tab" ::: '[] :=> '["col" ::: 'NoDef :=> 'Null 'PGint4]]
201+ '["tab" ::: 'Table ('[] :=> '["col" ::: 'NoDef :=> 'Null 'PGint4])]
203 '["col" ::: 'Null 'PGint4]
203 '["col" ::: 'Null 'PGint4]
204 query = selectStar
204 query = selectStar
@@ -213,7 +213,7 @@ joins:
215 query :: Query
215 query :: Query
216− '[ "orders" :::
216+ '[ "orders" ::: 'Table (
217 '["pk_orders" ::: PrimaryKey '["id"]
217 '["pk_orders" ::: PrimaryKey '["id"]
218 ,"fk_customers" ::: ForeignKey '["customer_id"] "customers" '["id"]
218 ,"fk_customers" ::: ForeignKey '["customer_id"] "customers" '["id"]
219 ,"fk_shippers" ::: ForeignKey '["shipper_id"] "shippers" '["id"]] :=>
219 ,"fk_shippers" ::: ForeignKey '["shipper_id"] "shippers" '["id"]] :=>
@@ -221,17 +221,17 @@ let
221 , "price" ::: 'NoDef :=> 'NotNull 'PGfloat4
221 , "price" ::: 'NoDef :=> 'NotNull 'PGfloat4
222 , "customer_id" ::: 'NoDef :=> 'NotNull 'PGint4
222 , "customer_id" ::: 'NoDef :=> 'NotNull 'PGint4
223 , "shipper_id" ::: 'NoDef :=> 'NotNull 'PGint4
223 , "shipper_id" ::: 'NoDef :=> 'NotNull 'PGint4
225− , "customers" :::
225+ , "customers" ::: 'Table (
226 '["pk_customers" ::: PrimaryKey '["id"]] :=>
226 '["pk_customers" ::: PrimaryKey '["id"]] :=>
227 '[ "id" ::: 'NoDef :=> 'NotNull 'PGint4
227 '[ "id" ::: 'NoDef :=> 'NotNull 'PGint4
228 , "name" ::: 'NoDef :=> 'NotNull 'PGtext
228 , "name" ::: 'NoDef :=> 'NotNull 'PGtext
230− , "shippers" :::
230+ , "shippers" ::: 'Table (
231 '["pk_shippers" ::: PrimaryKey '["id"]] :=>
231 '["pk_shippers" ::: PrimaryKey '["id"]] :=>
232 '[ "id" ::: 'NoDef :=> 'NotNull 'PGint4
232 '[ "id" ::: 'NoDef :=> 'NotNull 'PGint4
233 , "name" ::: 'NoDef :=> 'NotNull 'PGtext
233 , "name" ::: 'NoDef :=> 'NotNull 'PGtext
237 '[ "order_price" ::: 'NotNull 'PGfloat4
237 '[ "order_price" ::: 'NotNull 'PGfloat4
@@ -256,7 +256,7 @@ self-join:
258 query :: Query
258 query :: Query
259− '["tab" ::: '[] :=> '["col" ::: 'NoDef :=> 'Null 'PGint4]]
259+ '["tab" ::: 'Table ('[] :=> '["col" ::: 'NoDef :=> 'Null 'PGint4])]
261 '["col" ::: 'Null 'PGint4]
261 '["col" ::: 'Null 'PGint4]
262 query = selectDotStar #t1
262 query = selectDotStar #t1
@@ -270,7 +270,7 @@ set operations:
272 query :: Query
272 query :: Query
273− '["tab" ::: '[] :=> '["col" ::: 'NoDef :=> 'Null 'PGint4]]
273+ '["tab" ::: 'Table ('[] :=> '["col" ::: 'NoDef :=> 'Null 'PGint4])]
275 '["col" ::: 'Null 'PGint4]
275 '["col" ::: 'Null 'PGint4]