Skip to content

Add projection interfaces for query rows#110

Open
meoyawn wants to merge 27 commits into
jschaf:mainfrom
meoyawn:main
Open

Add projection interfaces for query rows#110
meoyawn wants to merge 27 commits into
jschaf:mainfrom
meoyawn:main

Conversation

@meoyawn

@meoyawn meoyawn commented Jun 2, 2026

Copy link
Copy Markdown

Depends on #109

  • generate projection interfaces for multi-column query results
  • add getter methods on generated row structs
  • regenerate examples and internal query output

Closes #44

jschaf and others added 24 commits January 4, 2024 22:24
- For pggen row structs, implement pgx.RowScanner.
- Remove the typeResolver, since we're punting type resolution to the pgx.Conn
  type map for now.

jschaf#74
# Conflicts:
#	example/composite/query.sql_test.go
#	example/custom_types/query.sql_test.go
#	example/device/query.sql_test.go
#	example/enums/query.sql_test.go
#	example/erp/order/customer.sql_test.go
#	example/inline_param_count/inline0/query.sql_test.go
#	example/inline_param_count/inline1/query.sql_test.go
#	example/inline_param_count/inline2/query.sql_test.go
#	example/inline_param_count/inline3/query.sql_test.go
#	example/ltree/query.sql_test.go
#	generate.go
#	go.mod
#	go.sum
#	internal/codegen/golang/gotype/known_types.go
#	internal/codegen/golang/templater.go
#	internal/pg/column.go
#	internal/pg/column_test.go
#	internal/pg/known_types.go
#	internal/pg/type_cache.go
#	internal/pg/type_fetcher.go
#	internal/pg/types.go
#	internal/pgdocker/pgdocker.go
#	internal/pginfer/pginfer.go
#	internal/pgplan/pgplan.go
#	internal/pgtest/pg_test_db.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generate the same type for queries with the same SELECT ... FROM

2 participants