[CONPY-3] Support for additional Connector/C API functions Created: 2018-07-20  Updated: 2019-12-19  Resolved: 2019-12-19

Status: Closed
Project: MariaDB Connector/Python
Component/s: DBAPI 2.0, Generic
Affects Version/s: None
Fix Version/s: 0.9.52, N/A

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


 Description   

With PEP-249 DB API only it's not possible to use all of the MariaDB API features, so
we need to provide additional methods which will be mapped to the corresponding Connector/C API functions:

Driver methods

Functions which doen't need a valid connection are methods of the driver.

  • mysql_client_info
  • mysql_client_version

Connection methods

Functions which require a (valid) connection are methods, stters or getters of Connection class

  • mysql_autocommit: connection->autocommit()
  • mysql_change_user: connection->user
  • mysql_change_db > connection>database
  • mariadb_cancel
  • mariadb_reconnect: connection->reconnect()
  • mysql_real_escape: connection->escape_string
  • mysql_get_server_info: connection->server_name
  • mysql_get_server_version: connection->server_version
  • mysql_get_socket
  • mysql_kill: connection->kill()
  • mysql_ping: connection->ping()
  • mysql_reset_connection: connection->reset()
  • mariadb_get_optionv
  • mysql_thread_id: connection->connection_id
  • mysql_warning_count: connection->warnings

Cursor methods

Functions which require a (valid) connection are methods, stters or getters of Cursor class

  • mysql_stmt_warning_count: cursor->warnings

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