Tags: opendoor/pggen
Tags
Bump golang.org/x/crypto from 0.0.0-20210322153248-0c34fe9e7dc2 to 0.… …1.0 (#196) Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.0.0-20210322153248-0c34fe9e7dc2 to 0.1.0. - [Release notes](https://github.com/golang/crypto/releases) - [Commits](https://github.com/golang/crypto/commits/v0.1.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
release version v0.3.4 This version adds support for a new `box_result` config option on tables and queries that causes pggen generated code to return slices of pointers to structs rather than slices of structs. Many thanks to @miniscruff for raising this issue and implementing the feature!
release v0.3.3 This version brings two new features: - The ability to add comments to statements - The ability to ask pggen to generate a statement wrapper with nullable arguments. Both of these features already existed for queries. They have just been ported over to statements.
middleware: add support for error converter func (#173) This patch adds support for injecting a routine for converting pggen errors to errors of a different sort. It is already possible to intercept errors systemically at the level of interactions with the database driver, but pggen itself creates a few errors that cannot be intercepted in this way (including the NotFoundError, which is probably the most interesting sort of error that pggen returns).
IsNotFoundError: check causal chain as well (#172) This is a breaking change, but it shouldn't impact any current existing usage. This will be nice because it means you can intercept not-found errors in middleware and wrap them with your own error tagging system and calls to IsNotFoundError in your existing codebase should continue to work. This also makes us match the behavior of errors.Is from the standard library better, which ought to be less confusing given the name of the function.