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 5887218
Browse filesBrowse the repository at this point in the historyBrowse files
**Stack Encrypt produces the EQL v4 types `Smallint` and `SmallintEq`** (`eql-bindings`, `stack-encrypt` feature), from `i16`. `SmallintEq`'s equality term is the integer one, so a smallint and an integer of the same value under one column share it. The `date`, `timestamp` and `numeric` types now say they wait for a choice of Rust plaintext type, not for an engine kind.
Copy file name to clipboardExpand all lines: languages/golang/cmd/stashgen/README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -159,13 +159,14 @@ The engine produces these EQL types today, each from one Go field type:
159
159
|`encrypt_into`| Go field |
160
160
|---|---|
161
161
|`TextEq`, `Text`, `TextMatch`|`string`|
162
+
|`Smallint`, `SmallintEq`|`int16`, or any Go integer type |
162
163
|`Integer`, `IntegerEq`|`int32`, or any Go integer type |
163
164
|`Bigint`, `BigintEq`|`int64`, or any Go integer type |
164
165
|`Boolean`|`bool`|
165
166
|`Real`, `RealEq`|`float32`|
166
167
|`Double`, `DoubleEq`|`float64`|
167
168
168
-
The `Eq` types answer `Eq`; `Text`, `Integer`, `Bigint`, `Boolean`, `Real` and `Double` are stored and read only, with no query method.
169
+
The `Eq` types answer `Eq`; `Text`, `Smallint`, `Integer`, `Bigint`, `Boolean`, `Real` and `Double` are stored and read only, with no query method.
169
170
170
171
Any built-in Go integer field takes an integer type (ADR-0002) and seals at the type's width: an `int16` field always fits an `Integer`, and an `int64` field is range checked value by value, `Encrypt` refusing a value that does not fit with `encrypt.ErrEncoding`. `encrypt.Int128` and `encrypt.Uint128` are not converted. A float's width must match: a `float64` field is not a `Real`.
171
172
A `TextMatch` field refuses text shorter than three characters, such as an empty string or a two-letter code, because it has no 3-grams to index; its query refuses such text too.
0 commit comments