@@ -147,7 +147,7 @@ simple query:
147147>>> type Schema = '["tab" ::: 'Table ('[] :=> Columns)]
148148>>> :{
149149let
150− query :: Query (DBof (Public Schema)) '[] '["col1" ::: 'NotNull 'PGint4, "col2" ::: 'NotNull 'PGint4]
150+ query :: Query '[] (Public Schema) '[] '["col1" ::: 'NotNull 'PGint4, "col2" ::: 'NotNull 'PGint4]
151151 query = select Star (from (table #tab))
152152in printSQL query
153153:}
@@ -157,7 +157,7 @@ restricted query:
157157
158158>>> :{
159159let
160− query :: Query (DBof (Public Schema)) '[] '["sum" ::: 'NotNull 'PGint4, "col1" ::: 'NotNull 'PGint4]
160+ query :: Query '[] (Public Schema) '[] '["sum" ::: 'NotNull 'PGint4, "col1" ::: 'NotNull 'PGint4]
161161 query =
162162 select_ ((#col1 + #col2) `as` #sum :* #col1)
163163 ( from (table #tab)
@@ -171,7 +171,7 @@ subquery:
171171
172172>>> :{
173173let
174− query :: Query (DBof (Public Schema)) '[] '["col1" ::: 'NotNull 'PGint4, "col2" ::: 'NotNull 'PGint4]
174+ query :: Query '[] (Public Schema) '[] '["col1" ::: 'NotNull 'PGint4, "col2" ::: 'NotNull 'PGint4]
175175 query = select Star (from (subquery (select Star (from (table #tab)) `as` #sub)))
176176in printSQL query
177177:}
@@ -181,7 +181,7 @@ limits and offsets:
181181
182182>>> :{
183183let
184− query :: Query (DBof (Public Schema)) '[] '["col1" ::: 'NotNull 'PGint4, "col2" ::: 'NotNull 'PGint4]
184+ query :: Query '[] (Public Schema) '[] '["col1" ::: 'NotNull 'PGint4, "col2" ::: 'NotNull 'PGint4]
185185 query = select Star (from (table #tab) & limit 100 & offset 2 & limit 50 & offset 2)
186186in printSQL query
187187:}
@@ -191,7 +191,7 @@ parameterized query:
191191
192192>>> :{
193193let
194− query :: Query (DBof (Public Schema)) '[ 'NotNull 'PGint4] '["col1" ::: 'NotNull 'PGint4, "col2" ::: 'NotNull 'PGint4]
194+ query :: Query '[] (Public Schema) '[ 'NotNull 'PGint4] '["col1" ::: 'NotNull 'PGint4, "col2" ::: 'NotNull 'PGint4]
195195 query = select Star (from (table #tab) & where_ (#col1 .> param @1))
196196in printSQL query
197197:}
@@ -201,7 +201,7 @@ aggregation query:
201201
202202>>> :{
203203let
204− query :: Query (DBof (Public Schema)) '[] '["sum" ::: 'NotNull 'PGint4, "col1" ::: 'NotNull 'PGint4 ]
204+ query :: Query '[] (Public Schema) '[] '["sum" ::: 'NotNull 'PGint4, "col1" ::: 'NotNull 'PGint4 ]
205205 query =
206206 select_ (sum_ #col2 `as` #sum :* #col1)
207207 ( from (table (#tab `as` #table1))
@@ -215,7 +215,7 @@ sorted query:
215215
216216>>> :{
217217let
218− query :: Query (DBof (Public Schema)) '[] '["col1" ::: 'NotNull 'PGint4, "col2" ::: 'NotNull 'PGint4]
218+ query :: Query '[] (Public Schema) '[] '["col1" ::: 'NotNull 'PGint4, "col2" ::: 'NotNull 'PGint4]
219219 query = select Star (from (table #tab) & orderBy [#col1 & Asc])
220220in printSQL query
221221:}
@@ -252,7 +252,7 @@ type OrdersSchema =
252252
253253>>> :{
254254let
255− query :: Query (DBof (Public OrdersSchema))
255+ query :: Query '[] (Public OrdersSchema)
256256 '[]
257257 '[ "order_price" ::: 'NotNull 'PGfloat4
258258 , "customer_name" ::: 'NotNull 'PGtext
@@ -275,7 +275,7 @@ self-join:
275275
276276>>> :{
277277let
278− query :: Query (DBof (Public Schema)) '[] '["col1" ::: 'NotNull 'PGint4, "col2" ::: 'NotNull 'PGint4]
278+ query :: Query '[] (Public Schema) '[] '["col1" ::: 'NotNull 'PGint4, "col2" ::: 'NotNull 'PGint4]
279279 query = select (#t1 & DotStar) (from (table (#tab `as` #t1) & crossJoin (table (#tab `as` #t2))))
280280in printSQL query
281281:}
@@ -295,7 +295,7 @@ set operations:
295295
296296>>> :{
297297let
298− query :: Query (DBof (Public Schema)) '[] '["col1" ::: 'NotNull 'PGint4, "col2" ::: 'NotNull 'PGint4]
298+ query :: Query '[] (Public Schema) '[] '["col1" ::: 'NotNull 'PGint4, "col2" ::: 'NotNull 'PGint4]
299299 query = select Star (from (table #tab)) `unionAll` select Star (from (table #tab))
300300in printSQL query
301301:}
@@ -305,7 +305,7 @@ with queries:
305305
306306>>> :{
307307let
308− query :: Query (DBof (Public Schema)) '[] '["col1" ::: 'NotNull 'PGint4, "col2" ::: 'NotNull 'PGint4]
308+ query :: Query '[] (Public Schema) '[] '["col1" ::: 'NotNull 'PGint4, "col2" ::: 'NotNull 'PGint4]
309309 query = with (
310310 select Star (from (table #tab)) `as` #cte1 :>>
311311 select Star (from (common #cte1)) `as` #cte2