@@ -8,7 +8,7 @@ A set of extensions to Doctrine 2 that add support for json query functions.
8
8
9
9
| DB | Functions |
10
10
| :--:| :---------:|
11
- | MySQL | ` JSON_APPEND, JSON_ARRAY, JSON_ARRAY_APPEND, JSON_ARRAY_INSERT, JSON_CONTAINS, JSON_CONTAINS_PATH, JSON_DEPTH, JSON_EXTRACT, JSON_OVERLAPS, JSON_INSERT, JSON_KEYS, JSON_LENGTH, JSON_MERGE, JSON_MERGE_PRESERVE, JSON_MERGE_PATCH, JSON_OBJECT, JSON_PRETTY, JSON_QUOTE, JSON_REMOVE, JSON_REPLACE, JSON_SEARCH, JSON_SET, JSON_TYPE, JSON_UNQUOTE, JSON_VALID ` |
11
+ | MySQL | ` JSON_APPEND, JSON_ARRAY, JSON_ARRAYAGG, JSON_ARRAY_APPEND, JSON_ARRAY_INSERT, JSON_CONTAINS, JSON_CONTAINS_PATH, JSON_DEPTH, JSON_EXTRACT, JSON_OVERLAPS, JSON_INSERT, JSON_KEYS, JSON_LENGTH, JSON_MERGE, JSON_MERGE_PRESERVE, JSON_MERGE_PATCH, JSON_OBJECT, JSON_OBJECTAGG , JSON_PRETTY, JSON_QUOTE, JSON_REMOVE, JSON_REPLACE, JSON_SEARCH, JSON_SET, JSON_TYPE, JSON_UNQUOTE, JSON_VALID ` |
12
12
| PostgreSQL | ` JSON_EXTRACT_PATH, GT, GT_GT, SHARP_GT, SHARP_GT_GT ` |
13
13
| MariaDb | ` JSON_VALUE, JSON_EXISTS, JSON_QUERY, JSON_COMPACT, JSON_DETAILED, JSON_LOOSE, JSON_EQUALS, JSON_NORMALIZE ` |
14
14
| SQLite | ` JSON, JSON_ARRAY, JSON_ARRAY_LENGTH, JSON_EXTRACT, JSON_GROUP_ARRAY, JSON_GROUP_OBJECT, JSON_INSERT, JSON_OBJECT, JSON_PATCH, JSON_QUOTE, JSON_REMOVE, JSON_REPLACE, JSON_SET, JSON_TYPE, JSON_VALID ` |
@@ -171,6 +171,8 @@ The library provides this set of DQL functions.
171
171
### Mysql 5.7+ JSON operators
172
172
* [ JSON_ARRAY_APPEND(json_doc, path, val[ , path, val] ...)] ( https://dev.mysql.com/doc/refman/5.7/en/json-modification-functions.html#function_json-array-append )
173
173
- Appends values to the end of the indicated arrays within a JSON document and returns the result.
174
+ * [ JSON_ARRAYAGG(value)] ( https://dev.mysql.com/doc/refman/5.7/en/aggregate-functions.html#function_json-arrayagg )
175
+ - Aggregates a result set as a single JSON array whose elements consist of the rows.
174
176
* [ JSON_ARRAY_INSERT(json_doc, path, val[ , path, val] ...)] ( https://dev.mysql.com/doc/refman/5.7/en/json-modification-functions.html#function_json-array-insert )
175
177
- Updates a JSON document, inserting into an array within the document and returning the modified document.
176
178
* [ JSON_ARRAY([ val[ , val] ...] )] ( https://dev.mysql.com/doc/refman/5.7/en/json-creation-functions.html#function_json-array )
@@ -199,6 +201,8 @@ The library provides this set of DQL functions.
199
201
- Performs an RFC 7396 compliant merge of two or more JSON documents and returns the merged result.
200
202
* [ JSON_OBJECT([ key, val[ , key, val] ...] )] ( https://dev.mysql.com/doc/refman/5.7/en/json-creation-functions.html#function_json-object )
201
203
- Evaluates a (possibly empty) list of key/value pairs and returns a JSON object containing those pairs.
204
+ * [ JSON_OBJECTAGG(key, val)] ( https://dev.mysql.com/doc/refman/5.7/en/json-creation-functions.html#function_json-object )
205
+ - Takes two column names or expressions as arguments, the first of these being used as a key and the second as a value, and returns a JSON object containing key-value pairs.
202
206
* [ JSON_PRETTY(json_val)] ( https://dev.mysql.com/doc/refman/5.7/en/json-utility-functions.html#function_json-pretty )
203
207
- Provides pretty-printing of JSON values similar to that implemented in PHP and by other languages and database systems
204
208
* [ JSON_QUOTE(json_val)] ( https://dev.mysql.com/doc/refman/5.7/en/json-creation-functions.html#function_json-quote )
0 commit comments