OwlCyberSecurity - MANAGER
Edit File: transaction.cpython-39.pyc
a kH�f�0 � @ s� d dl mZmZ d dlmZmZmZmZmZ G dd� de�Z d*dd�Z d+dd �Zd,d d�Zd-dd �Z d.dd�Zd/dd�Zd0dd�Zd1dd�Zd2dd�Zd3dd�Zd4dd�Zed5dd��Zd6dd �ZG d!d"� d"e�Zd7d$d%�Zd&d'� Zd8d(d)�ZdS )9� )�ContextDecorator�contextmanager)�DEFAULT_DB_ALIAS� DatabaseError�Error�ProgrammingError�connectionsc @ s e Zd ZdZdS )�TransactionManagementErrorz*Transaction management is used improperly.N)�__name__� __module__�__qualname__�__doc__� r r �W/home/gouroczh/virtualenv/test/3.9/lib/python3.9/site-packages/django/db/transaction.pyr s r Nc C s | du rt } t| S )z� Get a database connection by name, or the default database connection if no name is provided. This is a private API. N)r r ��usingr r r �get_connection s r c C s t | ��� S )z,Get the autocommit status of the connection.)r �get_autocommitr r r r r s r c C s t |��| �S )z,Set the autocommit status of the connection.)r �set_autocommit)Z autocommitr r r r r ! s r c C s t | ��� dS )zCommit a transaction.N)r �commitr r r r r &