File: //usr/lib/python3/dist-packages/trac/db/__pycache__/pool.cpython-310.pyc
o
�k�`$ � @ s� d dl Z d dlZd dlmZ d dlmZ d dlmZmZ d dl m
Z
d dlmZ d dl
mZ G dd � d e�ZG d
d� de�ZG dd
� d
e�Zee j�dd��Zee�ZG dd� de�ZdS )� N)� TracError)�ConnectionWrapper)�
get_thread_id� threading)�time_now)�exception_to_unicode)�_c @ s e Zd ZdZdS )�TimeoutErrorzjException raised by the connection pool when no connection has become
available after a given timeout.N)�__name__�
__module__�__qualname__�__doc__� r r �./usr/lib/python3/dist-packages/trac/db/pool.pyr s r c @ s* e Zd ZdZd dd�Zdd� Zdd� ZdS )
�PooledConnectionz]A database connection that can be pooled. When closed, it gets returned
to the pool.
Nc C s$ t �| ||� || _|| _|| _d S �N)r �__init__�_pool�_key�_tid)�self�pool�cnx�key�tid�logr r r r &