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 :  /usr/lib64/python2.7/site-packages/django/db/models/sql/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.7/site-packages/django/db/models/sql/aggregates.pyc
�
r�\c@s�dZddlZddlmZmZe�Ze�Zdefd��YZdefd��YZ	defd	��YZ
d
efd��YZdefd
��YZdefd��YZ
defd��YZdefd��YZdS(s:
Classes to represent the default SQL aggregate functions
i����N(tIntegerFieldt
FloatFieldt	AggregatecBsAeZdZeZeZdZded�Zd�Z	d�Z
RS(s 
    Default SQL Aggregate.
    s%(function)s(%(field)s)cKs�||_||_||_||_|}xX|r�t|t�r�t|dt�r]t}q-t|dt�rxt	}q-|j}q-W||_
dS(sKInstantiate an SQL aggregate

         * col is a column reference describing the subject field
           of the aggregate. It can be an alias, or a tuple describing
           a table and column name.
         * source is the underlying field or aggregate definition for
           the column reference. If the aggregate is not an ordinal or
           computed type, this reference is used to determine the coerced
           output type of the aggregate.
         * extra is a dictionary of additional data to provide for the
           aggregate definition

        Also utilizes the class variables:
         * sql_function, the name of the SQL function that implements the
           aggregate.
         * sql_template, a template string that is used to render the
           aggregate into SQL.
         * is_ordinal, a boolean indicating if the output of this aggregate
           is an integer (e.g., a count)
         * is_computed, a boolean indicating if this output of this aggregate
           is a computed float (e.g., an average), regardless of the input
           type.

        t
is_ordinaltis_computedN(tcoltsourcet
is_summarytextrat
isinstanceRtgetattrtFalsetordinal_aggregate_fieldtcomputed_aggregate_fieldtfield(tselfRRRRttmp((sA/tmp/pip-install-XxeQeY/django/django/db/models/sql/aggregates.pyt__init__s						
cCs^tj|�}t|jttf�rZ|j|jd|jd�|jdf|_n|S(Nii(tcopyR	Rtlistttupletget(Rt
change_maptclone((sA/tmp/pip-install-XxeQeY/django/django/db/models/sql/aggregates.pytrelabeled_cloneBs3cCs�g}t|jd�r6|jj||�\}}nOt|jttf�r|djg|jD]}||�^q^�}n	|j}i|jd6|d6}|j|j	�|j
||fS(s6Return the aggregate, rendered as SQL with parameters.tas_sqlt.tfunctionR(thasattrRRR	RRtjointsql_functiontupdateRtsql_template(Rtqnt
connectiontparamst
field_nametct
substitutions((sA/tmp/pip-install-XxeQeY/django/django/db/models/sql/aggregates.pyRHs.	

N(t__name__t
__module__t__doc__RRRR tNoneRRR(((sA/tmp/pip-install-XxeQeY/django/django/db/models/sql/aggregates.pyRs.	tAvgcBseZeZdZRS(tAVG(R'R(tTrueRR(((sA/tmp/pip-install-XxeQeY/django/django/db/models/sql/aggregates.pyR+\stCountcBs&eZeZdZdZed�ZRS(tCOUNTs#%(function)s(%(distinct)s%(field)s)cKs/tt|�j|d|r!dnd|�dS(Ntdistincts	DISTINCT t(tsuperR.R(RRR0R((sA/tmp/pip-install-XxeQeY/django/django/db/models/sql/aggregates.pyRes(R'R(R-RRR RR(((sA/tmp/pip-install-XxeQeY/django/django/db/models/sql/aggregates.pyR.`stMaxcBseZdZRS(tMAX(R'R(R(((sA/tmp/pip-install-XxeQeY/django/django/db/models/sql/aggregates.pyR3hstMincBseZdZRS(tMIN(R'R(R(((sA/tmp/pip-install-XxeQeY/django/django/db/models/sql/aggregates.pyR5kstStdDevcBseZeZed�ZRS(cKs2tt|�j||�|r%dnd|_dS(NtSTDDEV_SAMPt
STDDEV_POP(R2R7RR(RRtsampleR((sA/tmp/pip-install-XxeQeY/django/django/db/models/sql/aggregates.pyRqs(R'R(R-RRR(((sA/tmp/pip-install-XxeQeY/django/django/db/models/sql/aggregates.pyR7nstSumcBseZdZRS(tSUM(R'R(R(((sA/tmp/pip-install-XxeQeY/django/django/db/models/sql/aggregates.pyR;ustVariancecBseZeZed�ZRS(cKs2tt|�j||�|r%dnd|_dS(NtVAR_SAMPtVAR_POP(R2R=RR(RRR:R((sA/tmp/pip-install-XxeQeY/django/django/db/models/sql/aggregates.pyR{s(R'R(R-RRR(((sA/tmp/pip-install-XxeQeY/django/django/db/models/sql/aggregates.pyR=xs(R)Rtdjango.db.models.fieldsRRRR
tobjectRR+R.R3R5R7R;R=(((sA/tmp/pip-install-XxeQeY/django/django/db/models/sql/aggregates.pyt<module>s		P

https://t.me/AnonymousX5 - 2025