Commit 88a68df
committed
docs(sql): add comprehensive Doxygen comments to Phase 4 modules
Add detailed Doxygen documentation to 13 SQL files across Phase 4:
**Encrypted Supporting Files (4 files):**
- src/encrypted/aggregates.sql - MIN/MAX aggregate functions for ORE
- src/encrypted/casts.sql - Type conversion between JSONB/text/encrypted
- src/encrypted/compare.sql - Fallback comparison for btree correctness
- src/encrypted/constraints.sql - 5 validation functions with @example tags
**JSONB Functions (1 file, 15 functions):**
- src/jsonb/functions.sql - Path query operations and array manipulation
- jsonb_path_query (3 overloads) - Query for matching elements
- jsonb_path_exists (3 overloads) - Check path existence
- jsonb_path_query_first (3 overloads) - Get first matching element
- jsonb_array_length (2 overloads) - Get array length
- jsonb_array_elements (2 overloads) - Extract array elements
- jsonb_array_elements_text (2 overloads) - Extract as ciphertext
**Config Schema (4 files):**
- src/config/types.sql - Configuration state ENUM documentation
- src/config/tables.sql - eql_v2_configuration table structure
- src/config/indexes.sql - Partial unique indexes for state constraints
- src/config/constraints.sql - 5 validation functions
**Encryptindex Functions (1 file, 7 functions):**
- src/encryptindex/functions.sql - Configuration lifecycle management
- diff_config, select_pending_columns, select_target_columns
- ready_for_encryption, create_encrypted_columns
- rename_encrypted_columns, count_encrypted_with_active_config
**Root Utilities (3 files):**
- src/common.sql - Constant-time comparison, JSONB conversion, logging
- src/crypto.sql - pgcrypto extension enablement
- src/schema.sql - eql_v2 schema creation with warnings
**Documentation Quality:**
- ✅ Consistent use of @brief, @param, @return, @throws, @note, @see tags
- ✅ @internal tags mark implementation details vs customer-facing APIs
- ✅ @example sections show concrete usage for customer functions
- ✅ Cross-references create navigable documentation graph
- ✅ File-level @file documentation provides module context
- ✅ Security notes highlight timing attack prevention
- ✅ All tests pass - documentation doesn't break functionality
**Statistics:**
- Files modified: 13
- Functions documented: 32+
- Lines added: +718 gross, +555 net
- Test status: ✅ All 40+ test files passing
**Code Review:**
- Status: APPROVED (see CODE_REVIEW_PHASE_4_DOXYGEN.md)
- BLOCKING issues: 0
- NON-BLOCKING issues: 6 (addressed in follow-up commit)
- Review verified documentation accuracy against implementation1 parent 14077f3 commit 88a68df
File tree
13 files changed
+727
-174
lines changed- src
- config
- encrypted
- encryptindex
- jsonb
13 files changed
+727
-174
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
5 | 11 | | |
6 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
7 | 26 | | |
8 | 27 | | |
9 | 28 | | |
| |||
27 | 46 | | |
28 | 47 | | |
29 | 48 | | |
30 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
31 | 61 | | |
32 | 62 | | |
33 | 63 | | |
| |||
46 | 76 | | |
47 | 77 | | |
48 | 78 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
53 | 88 | | |
54 | 89 | | |
55 | 90 | | |
| |||
59 | 94 | | |
60 | 95 | | |
61 | 96 | | |
62 | | - | |
63 | | - | |
64 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
65 | 107 | | |
66 | 108 | | |
67 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
8 | 24 | | |
9 | 25 | | |
10 | 26 | | |
11 | 27 | | |
12 | 28 | | |
13 | 29 | | |
14 | 30 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
20 | 44 | | |
21 | 45 | | |
22 | 46 | | |
| |||
34 | 58 | | |
35 | 59 | | |
36 | 60 | | |
37 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
38 | 74 | | |
39 | 75 | | |
40 | 76 | | |
| |||
52 | 88 | | |
53 | 89 | | |
54 | 90 | | |
55 | | - | |
56 | | - | |
57 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
58 | 103 | | |
59 | 104 | | |
60 | 105 | | |
| |||
66 | 111 | | |
67 | 112 | | |
68 | 113 | | |
69 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
70 | 126 | | |
71 | 127 | | |
72 | 128 | | |
| |||
79 | 135 | | |
80 | 136 | | |
81 | 137 | | |
| 138 | + | |
| 139 | + | |
82 | 140 | | |
83 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
84 | 156 | | |
85 | 157 | | |
86 | 158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
8 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
9 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
10 | 27 | | |
11 | 28 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
7 | 25 | | |
8 | 26 | | |
9 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
15 | 11 | | |
16 | | - | |
17 | | - | |
18 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
3 | 14 | | |
4 | 15 | | |
0 commit comments