You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: clarify list query comment markers and add stability notes
Update documentation and placeholder comments to reflect current query
rewriter behavior: rename query.cursor and query.filter to query.where,
rename query.order to query.order_by, and add notes about primary key
tie-breaker stability for keyset pagination.
-- List{{table_name $.Table.Name"many"}}{{query_index $key}} retrieves a paginated list of rows from '{{$.Table.Name}}'{{if$key.Name}} filtered by {{$key.Name}}{{end}}.
299
299
--
300
-
-- Filtering, cursor,and ordering:
300
+
-- Filtering and ordering:
301
301
-- The commented markers in WHERE and ORDER BY are placeholders for a runtime
302
-
-- query rewriter (e.g. sqlc-gen-template) to substitute cursor, filter,and
303
-
-- order expressions. When left unreplaced they remain SQL comments, so the
302
+
-- query rewriter (e.g. sqlc-gen-template) to substitute filter and order
303
+
-- expressions. When left unreplaced they remain SQL comments, so the
304
304
-- query returns all matching rows ordered by primary key.
305
305
--
306
306
-- Offset pagination:
@@ -312,11 +312,11 @@ FROM
312
312
{{$.Table.Name}}
313
313
{{- $condition:= query_condition $.Table$key}}
314
314
WHERE
315
-
/* query.cursor AND *//* query.filter AND */ {{if$condition}}{{$condition}}{{else}}TRUE{{end}}
315
+
/* query.where AND */ {{if$condition}}{{$condition}}{{else}}TRUE{{end}}
0 commit comments