Skip to content

Implement setClientInfo #691

@piotrp

Description

@piotrp

Feature request: implement java.sql.Connection#setClientInfo (and ClickHouseDatabaseMetaData#getClientInfoProperties)

That would allow to pass some useful metadata to database, eg. frontend user that initiated current query, which would be then accessible in query_log. Or customized User-Agent from various parts of backend application without the need to create separate connection pools.

From a quick glance these properties would be useful:

  • http_referer
  • http_forwarded_for
  • client_name (i.e. HTTP User Agent)
  • log_comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions