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 1
1
-- 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
4
4
5
5
-- Aggregate functions for ORE
6
6
Original file line number Diff line number Diff line change 1
1
-- REQUIRE: src/encrypted/types.sql
2
2
-- 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
5
5
6
6
7
7
Original file line number Diff line number Diff line change 1
1
-- REQUIRE: src/schema.sql
2
- -- REQUIRE: src/unique /types.sql
2
+ -- REQUIRE: src/hmac_256 /types.sql
3
3
4
- -- extracts unique index from an encrypted column
4
+ -- extracts hmac_256 index from an encrypted column
5
5
6
6
CREATE FUNCTION eql_v2 .hmac_256(val jsonb)
7
7
RETURNS eql_v2 .hmac_256
8
8
IMMUTABLE STRICT PARALLEL SAFE
9
9
AS $$
10
10
BEGIN
11
- IF val ? ' u ' THEN
12
- RETURN val- >> ' u ' ;
11
+ IF val ? ' hm ' THEN
12
+ RETURN val- >> ' hm ' ;
13
13
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;
15
15
END;
16
16
$$ LANGUAGE plpgsql;
17
17
18
18
19
- -- extracts unique index from an encrypted column
19
+ -- extracts hmac_256 index from an encrypted column
20
20
21
21
CREATE FUNCTION eql_v2 .hmac_256(val eql_v2_encrypted)
22
22
RETURNS eql_v2 .hmac_256
Original file line number Diff line number Diff line change 1
1
-- 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
5
5
6
6
7
7
-- Operators for < less than comparisons of eql_v2_encrypted types
Original file line number Diff line number Diff line change 1
1
-- 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
5
5
6
6
7
7
-- Operators for < less than comparisons of eql_v2_encrypted types
Original file line number Diff line number Diff line change 1
1
-- 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
6
6
-- REQUIRE: src/operators/=.sql
7
7
8
8
-- Operators for equality comparisons of eql_v2_encrypted types
14
14
-- jsonb <> eql_v2_encrypted
15
15
--
16
16
-- There are multiple index terms that provide equality comparisons
17
- -- - unique
17
+ -- - hmac_256
18
18
-- - ore_64_8_v2
19
19
-- - ore_cllw_8_v2
20
20
--
Original file line number Diff line number Diff line change 1
1
-- 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
7
7
-- REQUIRE: src/blake3/types.sql
8
8
-- REQUIRE: src/blake3/functions.sql
9
9
-- REQUIRE: src/ore_cllw_u64_8/types.sql
35
35
BEGIN
36
36
RETURN eql_v2 .hmac_256 (a) = eql_v2 .hmac_256 (b);
37
37
EXCEPTION WHEN OTHERS THEN
38
- -- PERFORM eql_v2.log('No unique index');
38
+ -- PERFORM eql_v2.log('No hmac_256 index');
39
39
END;
40
40
41
41
BEGIN
Original file line number Diff line number Diff line change 1
1
-- 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
5
5
6
6
7
7
-- Operators for < less than comparisons of eql_v2_encrypted types
Original file line number Diff line number Diff line change 1
1
-- 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
5
11
6
12
7
13
-- Operators for < less than comparisons of eql_v2_encrypted types
Original file line number Diff line number Diff line change 1
1
-- REQUIRE: src/schema.sql
2
2
-- REQUIRE: src/encrypted/types.sql
3
3
-- 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
6
6
-- REQUIRE: src/operators/<.sql
7
7
-- REQUIRE: src/operators/<=.sql
8
8
-- REQUIRE: src/operators/=.sql
You can’t perform that action at this time.
0 commit comments