demos
demos copied to clipboard
Connection Examples: Include `application_name` and `options` in connections
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