You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a629897
Browse filesBrowse the repository at this point in the historyBrowse files
fix(eql-bindings): give v4 inventory entries v4 schema ids, and pin the version boundary
The inventory boxes PhantomData<T> handles, and their DomainType impl did
not forward schema_id, so every v4 entry reported an /eql/v3/ $id. A
type-level schema_id_base_static() now carries each type's base through
the handle, and the generated v4 types override it.
That surfaced in a new v4 parity test, the counterpart of
catalog_parity.rs: v4::all() is the scalar catalog under eql_v4 names in
catalog order, each query twin lives in eql_v4, term keys match the
catalog, and each generation's TextEq refuses the other's version, both
directly and through the inventory. The encryption suite refuses a real
v4 payload whose version alone was set back to 3.
types:generate snapshots and restores src/v4 as well as src/v3,
types:check diffs it, and the pre-commit hook triggers on it. The v4
module doc no longer links a feature-gated module, and the Go READMEs
name the eql_v4 column and query operand the guest now writes.
Copy file name to clipboardExpand all lines: languages/golang/cmd/stashgen/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ Your program calls those functions, and it never builds or names a plan.
44
44
```
45
45
46
46
6. Store the encrypted type.
47
-
Each `encrypt_into` field is one EQL column: `eql.TextEq` implements `driver.Valuer` and `sql.Scanner`, so a database library binds and scans it as the JSON a `public.eql_v3_text_eq` column holds.
47
+
Each `encrypt_into` field is one EQL column: `eql.TextEq` implements `driver.Valuer` and `sql.Scanner`, so a database library binds and scans it as the JSON a `public.eql_v4_text_eq` column holds. Stack Encrypt writes EQL v4; see the `encrypt` package README.
48
48
49
49
7. Run the generator again after each change to the struct or to a tag.
50
50
A change to the fields of the struct stops the build until you do.
0 commit comments