| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/django/core/management/commands/__pycache__/ |
Upload File : |
�
�|�e�5 � �^ � d dl Z d dlZd dlmZmZ d dlmZmZ d dlm Z G d� de� � Z
dS )� N)�BaseCommand�CommandError)�DEFAULT_DB_ALIAS�connections)�
LOOKUP_SEPc �B � e Zd ZdZg ZdZdZd� Zd� Zd� Z d� Z
d� Zd � Zd
S )�CommandzXIntrospects the database tables in the given database and outputs a Django model module.)�table_name_filterz django.dbc �� � |� ddt d�� � |� dt d�� � |� dd d
�� � |� dd d
�� � d S )N�table�*z4Selects what tables or views should be introspected.)�nargs�type�helpz
--databasezMNominates a database to introspect. Defaults to using the "default" database.)�defaultr z--include-partitions�
store_truez(Also output models for partition tables.)�actionr z--include-viewsz&Also output models for database views.)�add_argument�strr )�self�parsers �K/usr/lib/python3/dist-packages/django/core/management/commands/inspectdb.py�
add_argumentszCommand.add_arguments s� � �����3�S�G� �
�
�
� ����"2�`� �
�
�
� ���"�<�>h� �
�
�
� ����l�9a� �
�
�
�
�
� c � � | � |� � D ]}| j � |� � �d S # t $ r t d� � �w xY w)NzPDatabase inspection isn't supported for the currently selected database backend.)�handle_inspection�stdout�write�NotImplementedErrorr )r �options�lines r �handlezCommand.handle sv � � s��.�.�w�7�7�
(�
(����!�!�$�'�'�'�'�
(�
(��"� s� s� s��q�r�r�r� s���s �26 �Ac # � � �!K � t |d }|� d� � }d� }|� � � 5 }dV � dV � dV � dV � dV � d V � d
V � d| j z V � g }|j � |� � }dh�!|d
r�!� d� � |d r�!� d� � |d pt �!fd�|D � � � � D �]Ŋ |�t |� � r |� � � s� |j � |� � � }n# t $ r i }Y nw xY w |j � |� � � } n# t $ r i } Y nw xY w|j � |� � � }
d� | �
� � D � � }|j � |� � � }n%# t $ r}
d� z V � d|
z V � Y d }
~
��d }
~
ww xY wdV � dV � d |� � � z V � |� |� � � � � g }i }|D �]9}g }i }|j }||v }| � |||� � \ }}}|� |� � |� |� � |� |� � |||<