MCPcopy
hub / github.com/django/django / JSONBPathQuery

Class JSONBPathQuery

tests/annotations/tests.py:1273–1276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1271 @skipUnlessDBFeature("supports_json_field")
1272 def test_set_returning_functions(self):
1273 class JSONBPathQuery(Func):
1274 function = "jsonb_path_query"
1275 output_field = JSONField()
1276 set_returning = True
1277
1278 test_model = JsonModel.objects.create(
1279 data={"key": [{"id": 1, "name": "test1"}, {"id": 2, "name": "test2"}]}, id=1

Callers 1

Calls 1

JSONFieldClass · 0.90

Tested by 1