Skip to content

Commit

Permalink
API docs: replace deprecated Cypher procedures (#850)
Browse files Browse the repository at this point in the history
`dbms.listQueries` and `dbms.listTransactions` have been deprecated in favor of
`SHOW TRANSACTIONS YIELD *`
  • Loading branch information
robsdedude authored Nov 4, 2022
1 parent e26111c commit 2e09174
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
9 changes: 7 additions & 2 deletions neo4j/_async/work/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,14 @@ async def begin_transaction(
:param metadata:
a dictionary with metadata.
Specified metadata will be attached to the executing transaction and visible in the output of ``dbms.listQueries`` and ``dbms.listTransactions`` procedures.
Specified metadata will be attached to the executing transaction
and visible in the output of ``SHOW TRANSACTIONS YIELD *``
It will also get logged to the ``query.log``.
This functionality makes it easier to tag transactions and is equivalent to ``dbms.setTXMetaData`` procedure, see https://neo4j.com/docs/operations-manual/current/reference/procedures/ for procedure reference.
This functionality makes it easier to tag transactions and is
equivalent to the ``dbms.setTXMetaData`` procedure, see
https://neo4j.com/docs/cypher-manual/current/clauses/transaction-clauses/#query-listing-transactions
and https://neo4j.com/docs/operations-manual/current/reference/procedures/
for reference.
:param timeout:
the transaction timeout in seconds.
Expand Down
9 changes: 7 additions & 2 deletions neo4j/_sync/work/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,14 @@ def begin_transaction(
:param metadata:
a dictionary with metadata.
Specified metadata will be attached to the executing transaction and visible in the output of ``dbms.listQueries`` and ``dbms.listTransactions`` procedures.
Specified metadata will be attached to the executing transaction
and visible in the output of ``SHOW TRANSACTIONS YIELD *``
It will also get logged to the ``query.log``.
This functionality makes it easier to tag transactions and is equivalent to ``dbms.setTXMetaData`` procedure, see https://neo4j.com/docs/operations-manual/current/reference/procedures/ for procedure reference.
This functionality makes it easier to tag transactions and is
equivalent to the ``dbms.setTXMetaData`` procedure, see
https://neo4j.com/docs/cypher-manual/current/clauses/transaction-clauses/#query-listing-transactions
and https://neo4j.com/docs/operations-manual/current/reference/procedures/
for reference.
:param timeout:
the transaction timeout in seconds.
Expand Down
12 changes: 6 additions & 6 deletions neo4j/work/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ def count_people_tx(tx):
:param metadata:
a dictionary with metadata.
Specified metadata will be attached to the executing transaction and
visible in the output of ``dbms.listQueries`` and
``dbms.listTransactions`` procedures.
Specified metadata will be attached to the executing transaction
and visible in the output of ``SHOW TRANSACTIONS YIELD *``
It will also get logged to the ``query.log``.
This functionality makes it easier to tag transactions and is
equivalent to ``dbms.setTXMetaData`` procedure, see
https://neo4j.com/docs/operations-manual/current/reference/procedures/
for procedure reference.
equivalent to the ``dbms.setTXMetaData`` procedure, see
https://neo4j.com/docs/cypher-manual/current/clauses/transaction-clauses/#query-listing-transactions
and https://neo4j.com/docs/operations-manual/current/reference/procedures/
for reference.
:param timeout:
the transaction timeout in seconds.
Expand Down

0 comments on commit 2e09174

Please sign in to comment.