Skip to content

Commit

Permalink
Rename declarers for input types to Raw and Init
Browse files Browse the repository at this point in the history
For a type SomeTable:

- newSomeTable creates an uninitialized pgtype.ValueTranscoder that can decode
  the type.
- newSomeTableInit creates an initialized pgtype.ValueTranscoder that can decode
  that's initialized using the raw variants through the Set method.
- newSomeTableRaw creates the raw form of the type so that we can pass it to the
  pgtype.ValueTranscoder Set method.
  • Loading branch information
jschaf committed Apr 23, 2021
1 parent 513d781 commit 6a70703
Show file tree
Hide file tree
Showing 23 changed files with 733 additions and 654 deletions.
244 changes: 123 additions & 121 deletions example/complex_params/query.sql.go

Large diffs are not rendered by default.

42 changes: 22 additions & 20 deletions example/composite/query.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 19 additions & 18 deletions example/device/query.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 28 additions & 25 deletions example/enums/query.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6a70703

Please sign in to comment.