Skip to content

Commit

Permalink
Update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
tammy-baylis-swi committed Oct 17, 2024
1 parent 4283005 commit 75a23d5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
You can optionally configure mysql-connector instrumentation to enable sqlcommenter which enriches
the query with contextual information.
Usage
-----
.. code:: python
import mysql.connector
Expand All @@ -52,11 +55,13 @@
cursor.close()
cnx.close()
For example,
::
Invoking cursor.execute("INSERT INTO test (testField) VALUES (123)") will lead to sql query "INSERT INTO test (testField) VALUES (123)" but when SQLCommenter is enabled
the query will get appended with some configurable tags like "INSERT INTO test (testField) VALUES (123) /*tag=value*/;"
SQLCommenter Configurations
***************************
We can configure the tags to be appended to the sqlquery log by adding configuration inside commenter_options(default:{}) keyword
Expand Down

0 comments on commit 75a23d5

Please sign in to comment.