| 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/db/backends/base/__pycache__/ |
Upload File : |
�
�|�eA � �` � d dl mZ edddg� � Z edd� � Z G d� d� � Zd S )
� )�
namedtuple� TableInfo�name�type� FieldInfozSname type_code display_size internal_size precision scale null_ok default collationc �v � e Zd ZdZi Zd� Zd� Zd� Zdd�Zd� Z d � Z
d
� Zdd�Zd
� Z
d� Zdd�Zd� Zd� Zd� Zd� ZdS )�BaseDatabaseIntrospectionz5Encapsulate backend-specific introspection utilities.c � � || _ d S �N)�
connection)�selfr s �G/usr/lib/python3/dist-packages/django/db/backends/base/introspection.py�__init__z"BaseDatabaseIntrospection.__init__ s
� �$����� c � � | j | S )a
Hook for a database backend to use the cursor description to
match a Django field type to a database column.
For Oracle, the column data_type on its own is insufficient to
distinguish between a FloatField and IntegerField, for example.
)�data_types_reverse)r
� data_type�descriptions r �get_field_typez(BaseDatabaseIntrospection.get_field_type s � � �&�y�1�1r c � � |S )z�
Apply a conversion to the identifier for the purposes of comparison.
The default identifier converter is for case sensitive comparison.
� )r
r s r �identifier_converterz.BaseDatabaseIntrospection.identifier_converter s � � �r NFc � � �� �� fd�}|�<� j � � � 5 } ||� � cddd� � S # 1 swxY w Y ||� � S )a
Return a list of names of all tables that exist in the database.
Sort the returned table list by Python's default sorting. Do NOT use
the database's ORDER BY here to avoid subtle differences in sorting
order between databases.
c �` �� t �fd��� | � � D � � � � S )Nc 3 �@ �K � | ]}�s|j d k �|j V � �dS )�tN)r r )�.0�ti�
include_viewss �r � <genexpr>zKBaseDatabaseIntrospection.table_names.<locals>.get_names.<locals>.<genexpr>/ s@ �� � � � >� >�b�*�>�.0�g��n�n� �'�.<�n�n�n�>� >r )�sorted�get_table_list)�cursorr r
s ��r � get_namesz8BaseDatabaseIntrospection.table_names.<locals>.get_names. sH �� �� >� >� >� >�D�,?�,?��,G�,G� >� >� >� >� >�
>r N)r r# )r
r# r r$ s ` ` r �table_namesz%BaseDatabaseIntrospection.table_names'