File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,41 @@ type EncryptedColumn struct {
32
32
}
33
33
34
34
// 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.
35
70
type EncryptedText string
36
71
37
72
// EncryptedJsonb is a jsonb value to be encrypted
You can’t perform that action at this time.
0 commit comments