|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /opt/cppython/lib/python3.8/site-packages/MySQLdb/__pycache__/ |
U
O��g`, � @ s� d Z ddlZddlmZmZ ddlmZmZmZm Z m
Z
mZmZm
Z
mZmZ ddddd d
�Ze�d�Zdd
� ZG dd� dej�ZdS )a
This module implements connections for MySQLdb. Presently there is
only one class: Connection. Others are unlikely. However, you might
want to make your own subclasses. In most cases, you will probably
override Connection.default_cursor with a non-standard Cursor class.
� N� )�cursors�_mysql)
�Warning�Error�InterfaceError� DataError�
DatabaseError�OperationalError�IntegrityError�
InternalError�NotSupportedError�ProgrammingError�utf8�cp1252�koi8_r�koi8_u)Zutf8mb4Zutf8mb3�latin1Zkoi8rZkoi8uz^(\d+)c C s t �| �}|rt|�d��S dS )z�Returns the leading numeric part of a string.
>>> numeric_part("20-alpha")
20
>>> numeric_part("foo")
>>> numeric_part("16b")
16
r N)�re_numeric_part�match�int�group)�s�m� r �@/opt/cppython/lib/python3.8/site-packages/MySQLdb/connections.py�numeric_part# s
r c s� e Zd ZdZejZ� fdd�Zdd� Zdd� Z dd � Z
ddd�Zd
d� Zdd� Z
dd� Zdd� Zdd� Z� fdd�Zdd� Zdd� ZeZeZeZeZeZeZeZeZeZeZ� ZS )�
Connectionz MySQL Database Connection Objectc s\ ddl m}m} ddlm}m} ddlm} |�� }d|krJ|� d�|d<