demos icon indicating copy to clipboard operation
demos copied to clipboard

Connection Examples: Include `application_name` and `options` in connections

Open chuck-alt-delete opened this issue 11 months ago • 0 comments

Our connection examples should show comprehensive connection options, like cluster, schema, transaction isolation, and application name. Application name is especially helpful in tandem with the new Query History feature in the Console -- monitoring and debugging queries becomes easier when you can group by application name.

Here are some examples in Python that include comprehensive connection options (will be similar for other language drivers):

  • https://github.com/chuck-alt-delete/mz-sqlalchemy-example/blob/main/config.py#L34
  • https://github.com/chuck-alt-delete/fastapi_psycopg3_example/blob/main/main.py#L22

chuck-alt-delete avatar Mar 04 '24 17:03 chuck-alt-delete