Skip to content

stashgen README: binding Selector(ctx, c) as a query parameter matches no rows — bind .Selector() #1852

Backlog

Description

@auxesis

Background

stashgen is the generator in languages/golang/cmd/stashgen. It reads a Go struct with stash tags, and writes the code that encrypts, decrypts, and queries it. Users commit the generated *_stash.go file into their own package. In November 2026 we audited the Go SDK docs and generated code of version v0.1.0-rc.7.

Problem

The stashgen README says to bind At.Age.Selector(ctx, c) as a query parameter. pgx sends the value's redacted text. The query returns no rows and no error. Binding .Selector() works.

Proposal

  1. Change the README sample to bind .Selector().
  2. Once the SDK fix for JSONSelection lands, check the sample still matches it.

Evidence

Verified with EXPLAIN and by query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GolangSDKdocumentation

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions