@@ -147,7 +147,7 @@ simple query:
149 query :: Query
149 query :: Query
150− '["tab" ::: 'Table ('[] :=> '["col" ::: 'NoDef :=> 'Null 'PGint4])]
150+ '["public" ::: '["tab" ::: 'Table ('[] :=> '["col" ::: 'NoDef :=> 'Null 'PGint4])]]
152 '["col" ::: 'Null 'PGint4]
152 '["col" ::: 'Null 'PGint4]
153 query = selectStar (from (table #tab))
153 query = selectStar (from (table #tab))
@@ -160,9 +160,9 @@ restricted query:
162 query :: Query
162 query :: Query
163− '[ "tab" ::: 'Table ('[] :=>
163+ '[ "public" ::: '[ "tab" ::: 'Table ('[] :=>
164 '[ "col1" ::: 'NoDef :=> 'NotNull 'PGint4
164 '[ "col1" ::: 'NoDef :=> 'NotNull 'PGint4
165− , "col2" ::: 'NoDef :=> 'NotNull 'PGint4 ])]
165+ , "col2" ::: 'NoDef :=> 'NotNull 'PGint4 ])]]
167 '[ "sum" ::: 'NotNull 'PGint4
167 '[ "sum" ::: 'NotNull 'PGint4
168 , "col1" ::: 'NotNull 'PGint4 ]
168 , "col1" ::: 'NotNull 'PGint4 ]
@@ -181,7 +181,7 @@ subquery:
183 query :: Query
183 query :: Query
184− '["tab" ::: 'Table ('[] :=> '["col" ::: 'NoDef :=> 'Null 'PGint4])]
184+ '["public" ::: '["tab" ::: 'Table ('[] :=> '["col" ::: 'NoDef :=> 'Null 'PGint4])]]
186 '["col" ::: 'Null 'PGint4]
186 '["col" ::: 'Null 'PGint4]
@@ -196,7 +196,7 @@ limits and offsets:
198 query :: Query
198 query :: Query
199− '["tab" ::: 'Table ('[] :=> '["col" ::: 'NoDef :=> 'Null 'PGint4])]
199+ '["public" ::: '["tab" ::: 'Table ('[] :=> '["col" ::: 'NoDef :=> 'Null 'PGint4])]]
201 '["col" ::: 'Null 'PGint4]
201 '["col" ::: 'Null 'PGint4]
202 query = selectStar
202 query = selectStar
@@ -210,7 +210,7 @@ parameterized query:
212 query :: Query
212 query :: Query
213− '["tab" ::: 'Table ('[] :=> '["col" ::: 'NoDef :=> 'NotNull 'PGfloat8])]
213+ '["public" ::: '["tab" ::: 'Table ('[] :=> '["col" ::: 'NoDef :=> 'NotNull 'PGfloat8])]]
214 '[ 'NotNull 'PGfloat8]
214 '[ 'NotNull 'PGfloat8]
215 '["col" ::: 'NotNull 'PGfloat8]
215 '["col" ::: 'NotNull 'PGfloat8]
216 query = selectStar
216 query = selectStar
@@ -224,9 +224,9 @@ aggregation query:
226 query :: Query
226 query :: Query
227− '[ "tab" ::: 'Table ('[] :=>
227+ '["public" ::: '[ "tab" ::: 'Table ('[] :=>
228 '[ "col1" ::: 'NoDef :=> 'NotNull 'PGint4
228 '[ "col1" ::: 'NoDef :=> 'NotNull 'PGint4
229− , "col2" ::: 'NoDef :=> 'NotNull 'PGint4 ])]
229+ , "col2" ::: 'NoDef :=> 'NotNull 'PGint4 ])]]
231 '[ "sum" ::: 'NotNull 'PGint4
231 '[ "sum" ::: 'NotNull 'PGint4
232 , "col1" ::: 'NotNull 'PGint4 ]
232 , "col1" ::: 'NotNull 'PGint4 ]
@@ -244,7 +244,7 @@ sorted query:
246 query :: Query
246 query :: Query
247− '["tab" ::: 'Table ('[] :=> '["col" ::: 'NoDef :=> 'Null 'PGint4])]
247+ '["public" ::: '["tab" ::: 'Table ('[] :=> '["col" ::: 'NoDef :=> 'Null 'PGint4])]]
249 '["col" ::: 'Null 'PGint4]
249 '["col" ::: 'Null 'PGint4]
250 query = selectStar
250 query = selectStar
@@ -259,7 +259,7 @@ joins:
261 query :: Query
261 query :: Query
262− '[ "orders" ::: 'Table (
262+ '["public" ::: '[ "orders" ::: 'Table (
263 '["pk_orders" ::: PrimaryKey '["id"]
263 '["pk_orders" ::: PrimaryKey '["id"]
264 ,"fk_customers" ::: ForeignKey '["customer_id"] "customers" '["id"]
264 ,"fk_customers" ::: ForeignKey '["customer_id"] "customers" '["id"]
265 ,"fk_shippers" ::: ForeignKey '["shipper_id"] "shippers" '["id"]] :=>
265 ,"fk_shippers" ::: ForeignKey '["shipper_id"] "shippers" '["id"]] :=>
@@ -278,7 +278,7 @@ let
278 '[ "id" ::: 'NoDef :=> 'NotNull 'PGint4
278 '[ "id" ::: 'NoDef :=> 'NotNull 'PGint4
279 , "name" ::: 'NoDef :=> 'NotNull 'PGtext
279 , "name" ::: 'NoDef :=> 'NotNull 'PGtext
283 '[ "order_price" ::: 'NotNull 'PGfloat4
283 '[ "order_price" ::: 'NotNull 'PGfloat4
284 , "customer_name" ::: 'NotNull 'PGtext
284 , "customer_name" ::: 'NotNull 'PGtext
@@ -302,7 +302,7 @@ self-join:
304 query :: Query
304 query :: Query
305− '["tab" ::: 'Table ('[] :=> '["col" ::: 'NoDef :=> 'Null 'PGint4])]
305+ '["public" ::: '["tab" ::: 'Table ('[] :=> '["col" ::: 'NoDef :=> 'Null 'PGint4])]]
307 '["col" ::: 'Null 'PGint4]
307 '["col" ::: 'Null 'PGint4]
308 query = selectDotStar #t1
308 query = selectDotStar #t1
@@ -315,7 +315,7 @@ value queries:
318− query :: Query '[] '[] '["foo" ::: 'NotNull 'PGint2, "bar" ::: 'NotNull 'PGbool]
318+ query :: Query db '[] '["foo" ::: 'NotNull 'PGint2, "bar" ::: 'NotNull 'PGbool]
319 query = values (1 `as` #foo :* true `as` #bar) [2 `as` #foo :* false `as` #bar]
319 query = values (1 `as` #foo :* true `as` #bar) [2 `as` #foo :* false `as` #bar]
320in printSQL query
320in printSQL query
@@ -326,7 +326,7 @@ set operations:
328 query :: Query
328 query :: Query
329− '["tab" ::: 'Table ('[] :=> '["col" ::: 'NoDef :=> 'Null 'PGint4])]
329+ '["public" ::: '["tab" ::: 'Table ('[] :=> '["col" ::: 'NoDef :=> 'Null 'PGint4])]]
331 '["col" ::: 'Null 'PGint4]
331 '["col" ::: 'Null 'PGint4]
@@ -342,9 +342,9 @@ with queries:
344 query :: Query
344 query :: Query
345− '[ "t1" ::: 'View
345+ '["public" ::: '[ "t1" ::: 'View
346 '[ "c1" ::: 'NotNull 'PGtext
346 '[ "c1" ::: 'NotNull 'PGtext
347− , "c2" ::: 'NotNull 'PGtext] ]
347+ , "c2" ::: 'NotNull 'PGtext] ]]
349 '[ "c1" ::: 'NotNull 'PGtext
349 '[ "c1" ::: 'NotNull 'PGtext
350 , "c2" ::: 'NotNull 'PGtext ]
350 , "c2" ::: 'NotNull 'PGtext ]