Skip to content

encrypt/doc.go: remove the claim that ORE and OPE indexes apply to bytes #1857

In review

Description

@auxesis

Background

The Go SDK is in languages/golang in this repository. Its user docs are the READMEs of encrypt and cmd/stashgen, the package doc comments, and the testable examples. pkg.go.dev shows all of them. In November 2026 we audited the docs of version v0.1.0-rc.7. AI agents built programs from the published docs alone, against a dev workspace and PostgreSQL 17 with EQL (Encrypt Query Language) v4. EQL is the SQL extension that stores and queries encrypted values.

Problem

encrypt/doc.go says ORE (order-revealing encryption) and OPE (order-preserving encryption) apply to bytes. stashgen refuses both index types on a bytes field.

Proposal

  1. Remove bytes from the list of types that take ORE or OPE.

Evidence

Verified by generating code.

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