File tree Expand file tree Collapse file tree 15 files changed +50
-44
lines changed
Expand file tree Collapse file tree 15 files changed +50
-44
lines changed Original file line number Diff line number Diff line change 11-- REQUIRE: src/encrypted/types.sql
2- -- REQUIRE: src/ore/types .sql
3- -- REQUIRE: src/ore/functions .sql
2+ -- REQUIRE: ore_block_u64_8_256types .sql
3+ -- REQUIRE: ore_block_u64_8_256functions .sql
44
55-- Aggregate functions for ORE
66
Original file line number Diff line number Diff line change 11-- REQUIRE: src/encrypted/types.sql
22-- REQUIRE: src/bloom_filter/types.sql
3- -- REQUIRE: src/ore/types .sql
4- -- REQUIRE: src/unique /types.sql
3+ -- REQUIRE: ore_block_u64_8_256types .sql
4+ -- REQUIRE: src/hmac_256 /types.sql
55
66
77
Original file line number Diff line number Diff line change 11-- REQUIRE: src/schema.sql
2- -- REQUIRE: src/unique /types.sql
2+ -- REQUIRE: src/hmac_256 /types.sql
33
4- -- extracts unique index from an encrypted column
4+ -- extracts hmac_256 index from an encrypted column
55
66CREATE FUNCTION eql_v2 .hmac_256(val jsonb)
77 RETURNS eql_v2 .hmac_256
88 IMMUTABLE STRICT PARALLEL SAFE
99AS $$
1010 BEGIN
11- IF val ? ' u ' THEN
12- RETURN val- >> ' u ' ;
11+ IF val ? ' hm ' THEN
12+ RETURN val- >> ' hm ' ;
1313 END IF;
14- RAISE ' Expected a unique index (u ) value in json: %' , val;
14+ RAISE ' Expected a hmac_256 index (hm ) value in json: %' , val;
1515 END;
1616$$ LANGUAGE plpgsql;
1717
1818
19- -- extracts unique index from an encrypted column
19+ -- extracts hmac_256 index from an encrypted column
2020
2121CREATE FUNCTION eql_v2 .hmac_256(val eql_v2_encrypted)
2222 RETURNS eql_v2 .hmac_256
Original file line number Diff line number Diff line change 11-- REQUIRE: src/schema.sql
2- -- REQUIRE: src/ore/types .sql
3- -- REQUIRE: src/ore/functions .sql
4- -- REQUIRE: src/ore/operators .sql
2+ -- REQUIRE: ore_block_u64_8_256types .sql
3+ -- REQUIRE: ore_block_u64_8_256functions .sql
4+ -- REQUIRE: ore_block_u64_8_256operators .sql
55
66
77-- Operators for < less than comparisons of eql_v2_encrypted types
Original file line number Diff line number Diff line change 11-- REQUIRE: src/encrypted/types.sql
2- -- REQUIRE: src/ore/types .sql
3- -- REQUIRE: src/ore/functions .sql
4- -- REQUIRE: src/ore/operators .sql
2+ -- REQUIRE: ore_block_u64_8_256types .sql
3+ -- REQUIRE: ore_block_u64_8_256functions .sql
4+ -- REQUIRE: ore_block_u64_8_256operators .sql
55
66
77-- Operators for < less than comparisons of eql_v2_encrypted types
Original file line number Diff line number Diff line change 11-- REQUIRE: src/encrypted/types.sql
2- -- REQUIRE: src/unique /types.sql
3- -- REQUIRE: src/unique /functions.sql
4- -- REQUIRE: src/ore/types .sql
5- -- REQUIRE: src/ore/functions .sql
2+ -- REQUIRE: src/hmac_256 /types.sql
3+ -- REQUIRE: src/hmac_256 /functions.sql
4+ -- REQUIRE: ore_block_u64_8_256types .sql
5+ -- REQUIRE: ore_block_u64_8_256functions .sql
66-- REQUIRE: src/operators/=.sql
77
88-- Operators for equality comparisons of eql_v2_encrypted types
1414-- jsonb <> eql_v2_encrypted
1515--
1616-- There are multiple index terms that provide equality comparisons
17- -- - unique
17+ -- - hmac_256
1818-- - ore_64_8_v2
1919-- - ore_cllw_8_v2
2020--
Original file line number Diff line number Diff line change 11-- REQUIRE: src/encrypted/types.sql
2- -- REQUIRE: src/unique /types.sql
3- -- REQUIRE: src/unique /functions.sql
4- -- REQUIRE: src/ore/types .sql
5- -- REQUIRE: src/ore/functions .sql
6- -- REQUIRE: src/ore/operators .sql
2+ -- REQUIRE: src/hmac_256 /types.sql
3+ -- REQUIRE: src/hmac_256 /functions.sql
4+ -- REQUIRE: ore_block_u64_8_256types .sql
5+ -- REQUIRE: ore_block_u64_8_256functions .sql
6+ -- REQUIRE: ore_block_u64_8_256operators .sql
77-- REQUIRE: src/blake3/types.sql
88-- REQUIRE: src/blake3/functions.sql
99-- REQUIRE: src/ore_cllw_u64_8/types.sql
3535 BEGIN
3636 RETURN eql_v2 .hmac_256 (a) = eql_v2 .hmac_256 (b);
3737 EXCEPTION WHEN OTHERS THEN
38- -- PERFORM eql_v2.log('No unique index');
38+ -- PERFORM eql_v2.log('No hmac_256 index');
3939 END;
4040
4141 BEGIN
Original file line number Diff line number Diff line change 11-- REQUIRE: src/encrypted/types.sql
2- -- REQUIRE: src/ore/types .sql
3- -- REQUIRE: src/ore/functions .sql
4- -- REQUIRE: src/ore/operators .sql
2+ -- REQUIRE: ore_block_u64_8_256types .sql
3+ -- REQUIRE: ore_block_u64_8_256functions .sql
4+ -- REQUIRE: ore_block_u64_8_256operators .sql
55
66
77-- Operators for < less than comparisons of eql_v2_encrypted types
Original file line number Diff line number Diff line change 11-- REQUIRE: src/encrypted/types.sql
2- -- REQUIRE: src/ore/types.sql
3- -- REQUIRE: src/ore/functions.sql
4- -- REQUIRE: src/ore/operators.sql
2+
3+
4+
5+
6+
7+
8+ -- REQUIRE: ore_block_u64_8_256types.sql
9+ -- REQUIRE: ore_block_u64_8_256functions.sql
10+ -- REQUIRE: ore_block_u64_8_256operators.sql
511
612
713-- Operators for < less than comparisons of eql_v2_encrypted types
Original file line number Diff line number Diff line change 11-- REQUIRE: src/schema.sql
22-- REQUIRE: src/encrypted/types.sql
33-- REQUIRE: src/encrypted/functions.sql
4- -- REQUIRE: src/ore/types .sql
5- -- REQUIRE: src/ore/functions .sql
4+ -- REQUIRE: ore_block_u64_8_256types .sql
5+ -- REQUIRE: ore_block_u64_8_256functions .sql
66-- REQUIRE: src/operators/<.sql
77-- REQUIRE: src/operators/<=.sql
88-- REQUIRE: src/operators/=.sql
You can’t perform that action at this time.
0 commit comments