Skip to content

Commit 87753a3

Browse files
committed
wip
1 parent b89c198 commit 87753a3

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

languages/go/goeql/goeql.go

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,41 @@ type EncryptedColumn struct {
3232
}
3333

3434
// EncryptedText is a string value to be encrypted
35+
// def for_match(value)
36+
// for_query(value, "match")
37+
// end
38+
39+
// def for_ore(value)
40+
// for_query(value, "ore")
41+
// end
42+
43+
// def for_unique(value)
44+
// for_query(value, "unique")
45+
// end
46+
47+
// def for_ste_vec(value)
48+
// for_query(value, "ste_vec")
49+
// end
50+
51+
// def for_query(value, for_query)
52+
// eql_payload(value, for_query).to_json()
53+
// end
54+
55+
// def eql_payload(value, for_query)
56+
// {
57+
// k: "pt",
58+
// p: serialize_plaintext_value(value),
59+
// i: {
60+
// t: table,
61+
// c: column
62+
// },
63+
// v: 1,
64+
// q: for_query,
65+
// }
66+
// end
67+
//
68+
// Creating custom types for encrypted fields to enable creating methods for
69+
// serialization/deserialization of these types.
3570
type EncryptedText string
3671

3772
// EncryptedJsonb is a jsonb value to be encrypted

0 commit comments

Comments
 (0)