MySQL Connector#

MySQL Connection by connection#

Important

There is use @staticmethod for the class Connection.

Module of the connection to MySQL Server for get CONNECTION-object for manage DataBase (DB).

class mysql_connection.Connection[source]#

Class for the connection to database (MySQL).

async static get_connection(mysql_data)[source]#

Get connection for manage the DB.

Parameters:

mysql_data (Dict.) – MySQL Data.

Returns:

Connection to DB (otherwise: str about error).

Return type:

pymysql.connections.Connection | str