Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/kombu/transport/sqlalchemy/__pycache__/__init__.cpython-39.pyc
Ðазад
a o�h~ � @ s� d Z ddlmZ ddlZddlmZmZ ddlmZ ddl m Z mZ ddlm Z ddlmZ dd lmZ dd lmZ ddlmZ dd lmZ ddlmZ ddlmZ ddlmZmZ dZd�e e!e��Z"e�#� Z$G dd� dej%�Z%G dd� dej&�Z&dS )aG SQLAlchemy Transport module for kombu. Kombu transport using SQL Database as the message store. Features ======== * Type: Virtual * Supports Direct: yes * Supports Topic: yes * Supports Fanout: no * Supports Priority: no * Supports TTL: no Connection String ================= .. code-block:: sqla+SQL_ALCHEMY_CONNECTION_STRING sqlalchemy+SQL_ALCHEMY_CONNECTION_STRING For details about ``SQL_ALCHEMY_CONNECTION_STRING`` see SQLAlchemy Engine Configuration documentation. Examples -------- .. code-block:: # PostgreSQL with default driver sqla+postgresql://scott:tiger@localhost/mydatabase # PostgreSQL with psycopg2 driver sqla+postgresql+psycopg2://scott:tiger@localhost/mydatabase # PostgreSQL with pg8000 driver sqla+postgresql+pg8000://scott:tiger@localhost/mydatabase # MySQL with default driver sqla+mysql://scott:tiger@localhost/foo # MySQL with mysqlclient driver (a maintained fork of MySQL-Python) sqla+mysql+mysqldb://scott:tiger@localhost/foo # MySQL with PyMySQL driver sqla+mysql+pymysql://scott:tiger@localhost/foo Transport Options ================= * ``queue_tablename``: Name of table storing queues. * ``message_tablename``: Name of table storing messages. Moreover parameters of :func:`sqlalchemy.create_engine()` function can be passed as transport options. � )�annotationsN)�dumps�loads)�Empty)� create_engine�text)�OperationalError)�sessionmaker)�virtual)�cached_property)�bytes_to_str� )�Message)� ModelBase)�Queue)�class_registry�metadata)r � r �.c s� e Zd ZdZdZi Z� fdd�Zdd� Zdd� Zd d � Z e dd� �Zd d� Zdd� Z dd� Zdd� Zdd� Zdd� Zdd� Zdd� Zedd� �Zedd � �Z� ZS )!�ChannelzThe channel class.Nc s&