HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/django/core/management/commands/__pycache__/dbshell.cpython-310.pyc
o

�at�@s<ddlZddlmZmZddlmZmZGdd�de�ZdS)�N)�BaseCommand�CommandError)�DEFAULT_DB_ALIAS�connectionsc@s$eZdZdZgZdd�Zdd�ZdS)�CommandzaRuns the command-line client for specified database, or the default database if none is provided.cCs0|jdtdd�|jddd�}|jddd�dS)	Nz
--databasezTNominates a database onto which to open a shell. Defaults to the "default" database.)�default�help�
parametersz--)�prefix_chars�*)�nargs)�add_argumentr�add_argument_group)�self�parserr	�r�I/usr/lib/python3/dist-packages/django/core/management/commands/dbshell.py�
add_argumentss�zCommand.add_argumentsc
Kszt|d}z|j�|d�WdSty td|jj��tjy<}ztdd�|j	�|j
f|j
d��d}~ww)N�databaser	z@You appear not to have the %r program installed or on your path.z&"%s" returned non-zero exit status %s.� )�
returncode)r�client�runshell�FileNotFoundErrorr�executable_name�
subprocess�CalledProcessError�join�cmdr)r�options�
connection�errr�handles&��
����zCommand.handleN)�__name__�
__module__�__qualname__r�requires_system_checksrr"rrrrrs�r)r�django.core.management.baserr�	django.dbrrrrrrr�<module>s