Skip to content

Commit

Permalink
Add method doc to for JSONField.extract()
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
coleifer committed Jul 13, 2023
1 parent 317f606 commit 16901b0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/peewee/playhouse.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1646,6 +1646,12 @@ Additional MySQL-specific helpers:
Extends :py:class:`TextField` and implements transparent JSON encoding and
decoding in Python.

.. py:method:: extract(path)
:param str path: a JSON path, e.g. ``$.key1``

Extract a value from a JSON document at the given path.

.. py:function:: Match(columns, expr[, modifier=None])
:param columns: a single :py:class:`Field` or a tuple of multiple fields.
Expand Down

0 comments on commit 16901b0

Please sign in to comment.