Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions docs/src/main/sphinx/admin/resource-groups.rst
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,25 @@ The source name can be set as follows:

* CLI: use the ``--source`` option.

* JDBC: set the ``ApplicationName`` client info property on the ``Connection`` instance.
* JDBC driver when used in client apps: add the ``source`` property to the
connection configuration and set the value when using a Java application that
uses the JDBC Driver.

* JDBC driver used with Java programs: add a property with the key ``source``
and the value on the ``Connection`` instance as shown in :ref:`the example
<jdbc-java-connection>`.

Client tags can be set as follows:

* CLI: use the ``--client-tags`` option.

* JDBC: set the ``ClientTags`` client info property on the ``Connection`` instance.
* JDBC driver when used in client apps: add the ``clientTags`` property to the
connection configuration and set the value when using a Java application that
uses the JDBC Driver.

* JDBC driver used with Java programs: add a property with the key
``clientTags`` and the value on the ``Connection`` instance as shown in
:ref:`the example <jdbc-parameter-reference>`.

Example
-------
Expand Down
2 changes: 2 additions & 0 deletions docs/src/main/sphinx/installation/jdbc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ This example JDBC URL locates a Trino instance running on port ``8080`` on
client. If it is not, use ``io.trino.jdbc.TrinoDriver`` wherever a driver
classname is required.

.. _jdbc-java-connection:

Connection parameters
---------------------

Expand Down