Skip to content

Commit cb2b213

Browse files
committed
feat: rename ore directory as well
1 parent b87e438 commit cb2b213

File tree

15 files changed

+50
-44
lines changed

15 files changed

+50
-44
lines changed

src/encrypted/aggregates.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

src/encrypted/functions.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

src/hmac_256/functions.sql

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
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

66
CREATE FUNCTION eql_v2.hmac_256(val jsonb)
77
RETURNS eql_v2.hmac_256
88
IMMUTABLE STRICT PARALLEL SAFE
99
AS $$
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

2121
CREATE FUNCTION eql_v2.hmac_256(val eql_v2_encrypted)
2222
RETURNS eql_v2.hmac_256

src/operators/<.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

src/operators/<=.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

src/operators/<>.sql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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
@@ -14,7 +14,7 @@
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
--

src/operators/=.sql

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
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
@@ -35,7 +35,7 @@ AS $$
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

src/operators/>.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

src/operators/>=.sql

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
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

src/operators/operator_class.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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

0 commit comments

Comments
 (0)