https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /lib64/python2.7/site-packages/django/db/backends/oracle/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/django/db/backends/oracle/introspection.pyc
�
r�\c@sgddlmZmZddlmZddlZddlZejd�Zdefd��YZ	dS(i����(tBaseDatabaseIntrospectiont	FieldInfo(t
force_textNsQ\sCONSTRAINT `[^`]*` FOREIGN KEY \(`([^`]*)`\) REFERENCES `([^`]*)` \(`([^`]*)`\)tDatabaseIntrospectioncBs�eZidej6dej6dej6dej6dej6dej6dej	6dej
6Zydeej<Wne
k
r�nXydeej<Wne
k
r�nXd�Zd�Zd	�Zd
�Zd�Zd�Zd
�Zd�ZRS(tBinaryFieldt	TextFieldt	DateFieldt	CharFieldtDecimalFieldt
DateTimeFieldt
FloatFieldcCs�|tjkrh|dd!\}}|dkrU|dkr>dS|dkrNdSdSqh|d	krhd
Sntt|�j||�S(NiiiitBigIntegerFielditBooleanFieldtIntegerFieldi����R
(t	cx_OracletNUMBERtsuperRtget_field_type(tselft	data_typetdescriptiont	precisiontscale((sI/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/introspection.pyRscCs4|jd�g|j�D]}|dj�^qS(s6Returns a list of table names in the current database.s"SELECT TABLE_NAME FROM USER_TABLESi(texecutetfetchalltlower(Rtcursortrow((sI/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/introspection.pytget_table_list/s
cCs||jd|jjj|��g}xO|jD]D}t|d�}|i}|jt|j�f|d��q0W|S(sQReturns a description of the table, with the DB-API cursor.description interface.s!SELECT * FROM %s WHERE ROWNUM < 2ii(	Rt
connectiontopst
quote_nameRRtappendRR(RRt
table_nameRtdesctname((sI/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/introspection.pytget_table_description4s 
(cCs
|j�S(s6Table name comparison is case insensitive under Oracle(R(RR#((sI/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/introspection.pyttable_name_converter>scCs?tgt|j||��D]\}}|d|f^q�S(su
        Returns a dictionary of {field_name: field_index} for the given table.
        Indexes are 0-based.
        i(tdictt	enumerateR$(RRR!titd((sI/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/introspection.pyt_name_to_indexBscCsb|j�}|jd|g�i}x6|j�D](}|d|dj�f||d<q2W|S(s�
        Returns a dictionary of {field_index: (field_index_other_table, other_table)}
        representing all relationships to the given table. Indexes are 0-based.
        s�
    SELECT ta.column_id - 1, tb.table_name, tb.column_id - 1
    FROM   user_constraints, USER_CONS_COLUMNS ca, USER_CONS_COLUMNS cb,
           user_tab_cols ta, user_tab_cols tb
    WHERE  user_constraints.table_name = %s AND
           ta.table_name = user_constraints.table_name AND
           ta.column_name = ca.column_name AND
           ca.table_name = ta.table_name AND
           user_constraints.constraint_name = ca.constraint_name AND
           user_constraints.r_constraint_name = cb.constraint_name AND
           cb.table_name = tb.table_name AND
           cb.column_name = tb.column_name AND
           ca.position = cb.positioniii(tupperRRR(RRR!t	relationsR((sI/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/introspection.pyt
get_relationsIs
&cCsF|jd|j�g�g|j�D]}td�|D��^q&S(Ns�
            SELECT ccol.column_name, rcol.table_name AS referenced_table, rcol.column_name AS referenced_column
            FROM user_constraints c
            JOIN user_cons_columns ccol
              ON ccol.constraint_name = c.constraint_name 
            JOIN user_cons_columns rcol
              ON rcol.constraint_name = c.r_constraint_name 
            WHERE c.table_name = %s AND c.constraint_type = 'R'css|]}|j�VqdS(N(R(t.0tcell((sI/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/introspection.pys	<genexpr>ks(RR+Rttuple(RRR!R((sI/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/introspection.pytget_key_columnsbscCsjd}|j||g�i}xD|j�D]6}it|d�d6t|d�d6||d<q,W|S(NsZ
    SELECT LOWER(uic1.column_name) AS column_name,
           CASE user_constraints.constraint_type
               WHEN 'P' THEN 1 ELSE 0
           END AS is_primary_key,
           CASE user_indexes.uniqueness
               WHEN 'UNIQUE' THEN 1 ELSE 0
           END AS is_unique
    FROM   user_constraints, user_indexes, user_ind_columns uic1
    WHERE  user_constraints.constraint_type (+) = 'P'
      AND  user_constraints.index_name (+) = uic1.index_name
      AND  user_indexes.uniqueness (+) = 'UNIQUE'
      AND  user_indexes.index_name (+) = uic1.index_name
      AND  uic1.table_name = UPPER(%s)
      AND  uic1.column_position = 1
      AND  NOT EXISTS (
              SELECT 1
              FROM   user_ind_columns uic2
              WHERE  uic2.index_name = uic1.index_name
                AND  uic2.column_position = 2
           )
        itprimary_keyituniquei(RRtbool(RRR!tsqltindexesR((sI/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/introspection.pytget_indexesns (t__name__t
__module__RtBLOBtCLOBtDATETIMEt
FIXED_CHARtNCLOBRtSTRINGt	TIMESTAMPtdata_types_reversetNATIVE_FLOATtAttributeErrortUNICODERRR$R%R*R-R1R7(((sI/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/introspection.pyRs2









			
				(
tdjango.db.backendsRRtdjango.utils.encodingRRtretcompiletforeign_key_reR(((sI/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/introspection.pyt<module>s


https://t.me/AnonymousX5 - 2025