Skip to content

Commit c3ae969

Browse files
CDThomasauxesis
andauthored
Refer to PostgreSQL consistently
Co-authored-by: Lindsay Holmwood <[email protected]>
1 parent a323bba commit c3ae969

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

NATIVE_POSTGRES_JSON_COMPARED_TO_EQL.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Native Postgres JSON(B) Compared to EQL
1+
# Native PostgreSQL JSON(B) Compared to EQL
22

33
EQL supports a subset of functionality supported by the native Postgres JSON(B) functions and operators. The following examples compare native Postres JSON(B) functions and operators to the related functionality in EQL.
44

55
## `json ->> text``text` and `json -> text``jsonb`/`json`
66

7-
### Native Postgres JSON(B)
7+
### Native PostgreSQL JSON(B)
88

99
```sql
1010
-- `->` (returns JSON(B))
@@ -87,7 +87,7 @@ WHERE cs_ste_vec_term_v1(examples.encrypted_jsonb, $1) > cs_ste_vec_term_v1($2)
8787

8888
## `json ->> int``text` and `json -> int``jsonb`/`json`
8989

90-
### Native Postgres JSON(B)
90+
### Native PostgreSQL JSON(B)
9191

9292
```sql
9393
-- `->` (returns JSON(B))
@@ -150,7 +150,7 @@ Would return the EQL plaintext payload with an array (`[1, 2, 3]` for example):
150150

151151
#### Comparison example
152152

153-
`cs_ste_vec_terms_v1` can be used with the native Postgres array access operator to get a term for comparison by array index.
153+
`cs_ste_vec_terms_v1` can be used with the native PostgreSQL array access operator to get a term for comparison by array index.
154154

155155
The eJSONPath used with `cs_ste_vec_terms_v1` needs to end with `[*]` (`$.some_array_field[*]` for example).
156156

@@ -198,7 +198,7 @@ WHERE (cs_ste_vec_terms_v1(examples.encrypted_jsonb, $1))[1] > cs_ste_vec_term_v
198198

199199
## `json #>> text[]``text` and `json #> text[]``jsonb`/`json`
200200

201-
### Native Postgres JSON(B)
201+
### Native PostgreSQL JSON(B)
202202

203203
```sql
204204
-- `#>` (returns JSON(B))
@@ -287,7 +287,7 @@ WHERE cs_ste_vec_term_v1(examples.encrypted_jsonb, $1) > cs_ste_vec_term_v1($2)
287287

288288
## `@>` and `<@`
289289

290-
### Native Postgres JSON(B)
290+
### Native PostgreSQL JSON(B)
291291

292292
```sql
293293
-- Checks if the left arg contains the right arg (returns `true` in this example).
@@ -338,7 +338,7 @@ Example params:
338338

339339
## `json_array_elements`, `jsonb_array_elements`, `json_array_elements_text`, and `jsonb_array_elements_text`
340340

341-
### Native Postgres JSON(B)
341+
### Native PostgreSQL JSON(B)
342342

343343
```sql
344344
-- Each returns the results...
@@ -457,7 +457,7 @@ WHERE EXISTS (
457457

458458
## `json_array_length` and `jsonb_array_length`
459459

460-
### Native Postgres JSON(B)
460+
### Native PostgreSQL JSON(B)
461461

462462
```sql
463463
-- Both of these examples return the int `3`.
@@ -468,7 +468,7 @@ SELECT jsonb_array_length('[1, 2, 3]');
468468

469469
### EQL
470470

471-
The Postgres `array_length` function can be used with `cs_ste_vec_terms_v1` to find the length of an array.
471+
The PostgreSQL `array_length` function can be used with `cs_ste_vec_terms_v1` to find the length of an array.
472472

473473
The eJSONPath used with `cs_ste_vec_terms_v1` needs to end with `[*]` (`$.some_array_field[*]` for example).
474474

0 commit comments

Comments
 (0)