[CONPY-184] Display status of connection, cursor and pool class in string representation Created: 2021-12-06  Updated: 2022-02-17  Resolved: 2021-12-13

Status: Closed
Project: MariaDB Connector/Python
Component/s: Generic
Affects Version/s: None
Fix Version/s: 1.0.9, 1.1.0rc1

Type: Task Priority: Major
Reporter: Georg Richter Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None


 Description   

Make the string representation of built-in objects more verbose (displaying status)

1. connection
active: <mariadb.connection object connected to 'hostname' at 0x... >
closed: <mariadb.connection object (closed) at 0x...>

2. cursor
active: <mariadb.connection.cursor object at 0x....>
closed: <mariadb.connection.cursor object (closed) at 0x....>

3. connection pool
active: <mariadb.ConnectionPool object 'poolname' at 0x.... >
closed: <mariadb.ConnectionPool object (closed) at 0x.... >


Generated at Thu Feb 08 03:30:53 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.