Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
roles.cpython-313.pyc60 linesDownload Raw Back to __pycache__
1�

2��j1����SSKJr SSKJr SSKJr SSKJr SSKJr SSKJr SSKJ	r	 SS	K3Jr \(aS4SKJ
r
 S5SKJr S6S
KJr S7SKJr S8SKJr \"S\S9r\"S\SS9r"SS5r"SS5r"SS5r"SS\5r"SS\5r"SS \5r"S!S"\5r"S#S$\5r"S%S&\5r"S'S(\5r"S)S*\5r "S+S,\ \5r!"S-S.\\\5r""S/S0\\\5r#"S1S2\5r$"S3S4\5r%"S5S6\\\%5r&"S7S8\\%5r'"S9S:\5r("S;S<\(5r)"S=S>\\(5r*"S?S@\*5r+"SASB\#\5r,"SCSD\,\5r-"SESF\,\5r."SGSH\,\5r/"SISJ\5r0"SKSL\\\(5r1"SMSN\"\15r2"SOSP\25r3"SQSR\35r4"SSST\5r5"SUSV\5r6"SWSX\6\55r7"SYSZ\55r8"S[S\\5r9"S]S^\\5r:"S_S`\65r;"SaSb\25r<"ScSd\5r="SeSf\5r>"SgSh\65r?"SiSj\(5r@"SkSl\5rA"SmSn\A5rBgo)p�)�annotations)�Any)�Generic)�Optional)�
TYPE_CHECKING)�TypeVar�)�util)�Literal�)�_PropagateAttrsType)�Label)�_SelectIterable)�9FromClause)�Subquery�_T)�bound�_T_coT)r�	covariantc�$�\rSrSrSrSrSrSrSrg)�SQLRole�z�Define a "role" within a SQL statement structure.10 11Classes within SQL Core participate within SQLRole hierarchies in order12to more accurately indicate where they may be used within SQL statements13of all types.14 15.. versionadded:: 1.416 17�FN)	�__name__�18__module__�__qualname__�__firstlineno__�__doc__�	__slots__�
allows_lambda�uses_inspection�__static_attributes__r��ZD:\code\apps\devtools\python\user_packages\Python313\site-packages\sqlalchemy/sql/roles.pyrrs����I��M��Or#rc�,�\rSrSr%SrSrS\S'SrSrg)�UsesInspection�-rNz
Literal[None]�
_post_inspectT)	rrrrrr(�__annotations__r!r"rr#r$r&r&-s���I�#'�M�=�'��Or#r&c��\rSrSrSrSrSrg)�AllowsLambdaRole�3rTN)rrrrrr r"rr#r$r+r+3s���I��Mr#r+c��\rSrSrSrSrSrg)�HasCacheKeyRole�8rzCacheable Core or ORM objectN�rrrrr�19_role_namer"rr#r$r.r.8s���I�/�Jr#r.c��\rSrSrSrSrSrg)�ExecutableOptionRole�=rz"ExecutionOption Core or ORM objectNr0rr#r$r3r3=s���I�5�Jr#r3c��\rSrSrSrSrSrg)�LiteralValueRole�BrzLiteral Python valueNr0rr#r$r6r6Bs���I�'�Jr#r6c��\rSrSrSrSrSrg)�ColumnArgumentRole�GrzColumn expressionNr0rr#r$r9r9Gs���I�$�Jr#r9c��\rSrSrSrSrSrg)�ColumnArgumentOrKeyRole�Lr�Column expression or string keyNr0rr#r$r<r<L����I�2�Jr#r<c��\rSrSrSrSrSrg)�StrAsPlainColumnRole�Qrr>Nr0rr#r$rArAQr?r#rAc��\rSrSrSrSrSrg)�ColumnListRole�VzCElements suitable for forming comma separated lists of expressions.rN�rrrrrrr"rr#r$rDrDVs20��M��Ir#rDc��\rSrSrSrSrSrg)�21StringRole�\z/mixin indicating a role that results in stringsrNrFrr#r$rHrH\s22��9��Ir#rHc��\rSrSrSrSrSrg)�TruncatedLabelRole�brzString SQL identifierNr0rr#r$rKrKbs���I�(�Jr#rKc�0�\rSrSrSrSr\SSj5rSrg)�ColumnsClauseRole�grz?Column expression, FROM clause, or other columns clause elementc��[5e�N��NotImplementedError��selfs r$�_select_iterable�"ColumnsClauseRole._select_iterablems��!�#�#r#N)�returnr)	rrrrrr1�propertyrVr"rr#r$rNrNgs#���I�I���$��$r#rNc��\rSrSrSrSrSrg)�TypedColumnsClauseRole�rz'element-typed form of ColumnsClauseRolerNrFrr#r$r[r[rs23��1��Ir#r[c��\rSrSrSrSrSrg)�LimitOffsetRole�xrzLIMIT / OFFSET expressionNr0rr#r$r^r^xs���I�,�Jr#r^c��\rSrSrSrSrSrg)�ByOfRole�}rzGROUP BY / OF / etc. expressionNr0rr#r$rara}r?r#rac��\rSrSrSrSrSrg)�GroupByRole�rzGROUP BY expressionNr0rr#r$rdrd�s���I�24'�Jr#rdc��\rSrSrSrSrSrg)�OrderByRole�rzORDER BY expressionNr0rr#r$rgrg�s���I�&�Jr#rgc��\rSrSrSrSrg)�StructuralRole�rN�rrrrrr"rr#r$rjrj�����Ir#rjc��\rSrSrSrSrSrg)�StatementOptionRole�rz statement sub-expression elementNr0rr#r$roro�s���I�3�Jr#roc��\rSrSrSrSrSrg)�OnClauseRole�rzCON clause, typically a SQL expression or ORM relationship attributeNr0rr#r$rrrr�s���I�	%�r#rrc��\rSrSrSrSrSrg)�WhereHavingRole�rz$SQL expression for WHERE/HAVING roleNr0rr#r$ruru�s���I�7�Jr#ruc�&�\rSrSrSrSrSSjrSrg)�ExpressionElementRole�rzSQL expression elementc��[5erQrR)rU�names  r$�label�ExpressionElementRole.label�s��!�#�#r#N)r{�
Optional[str]rXz	Label[_T])rrrrrr1r|r"rr#r$rxrx�s���I�)�J�$r#rxc��\rSrSrSrSrSrg)�
ConstExprRole�rz#Constant True/False/None expressionNr0rr#r$r�r��s���I�6�Jr#r�c��\rSrSrSrSrg)�LabeledColumnExprRole�rNrlrr#r$r�r��rmr#r�c��\rSrSrSrSrSrg)�BinaryElementRole�rz'SQL expression element or literal valueNr0rr#r$r�r��s���I�:�Jr#r�c��\rSrSrSrSrSrg)�
InElementRole��rz?IN expression list, SELECT construct, or bound parameter objectNr0rr#r$r�r��s���I�I�r#r�c��\rSrSrSrSrSrg)�JoinTargetRole��rzGJoin target, typically a FROM expression, or ORM relationship attributeNr0rr#r$r�r��s���I�	!�r#r�c�,�\rSrSr%SrSrSrS\S'Srg)�FromClauseRole��rz2FROM expression, such as a Table or alias() objectF�bool�named_with_columnN)	rrrrrr1�_is_subqueryr)r"rr#r$r�r��s���I�E�J��L��r#r�c��\rSrSrSrSrg)�StrictFromClauseRole��rNrlrr#r$r�r��rmr#r�c�J�\rSrSrSr\(aSSS.SSjjrSrgSrg)�AnonymizedFromClauseRole��rNF)r{�flatc��grQr)rUr{r�s   r$�_anonymous_fromclause�.AnonymizedFromClauseRole._anonymous_fromclause�s��r#)r{r~r�r�rXr)rrrrrrr�r"rr#r$r�r��s8���I��,0�e�	�(�	�7;�	�
�	�	�r#r�c��\rSrSrSrSrSrg)�ReturnsRowsRole��rzcRow returning expression such as a SELECT, a FROM clause, or an INSERT/UPDATE/DELETE with RETURNINGNr0rr#r$r�r��s���I�	.�r#r�c�p�\rSrSrSrSr\(a\RSSj5r	Srg\Rr	Srg)�
StatementRole��rz"Executable SQL or text() constructc��grQrrTs r$�_propagate_attrs�StatementRole._propagate_attrs�s��;>r#N)rXr
)rrrrrr1rr25�memoized_propertyr��26EMPTY_DICTr"rr#r$r�r��s/���I�5�J��	
�	�	�>�27 �>� �?�?�r#r�c�&�\rSrSrSrSrSSjrSrg)�SelectStatementRole��rz/SELECT construct or equivalent text() constructc��[S5e)NzFAll SelectStatementRole objects should implement a .subquery() method.rRrTs r$�subquery�SelectStatementRole.subquerys��!�
"�28�	29r#N)rXr)rrrrrr1r�r"rr#r$r�r��s���I�B�J�30r#r�c��\rSrSrSrSrg)�31HasCTERolei	rNrlrr#r$r�r�	rmr#r�c��\rSrSrSrSrSrg)�	IsCTERolei
rz32CTE objectNr0rr#r$r�r�
s���I��Jr#r�c� �\rSrSrSrSrSrSrg)�CompoundElementRoleizDSELECT statements inside a CompoundSelect, e.g. UNION, EXTRACT, etc.rz@SELECT construct for inclusion in a UNION or other set constructN�rrrrrrr1r"rr#r$r�r�s��N��I�J�r#r�c��\rSrSrSrSrg)�DMLRoleirNrlrr#r$r�r�rmr#r�c��\rSrSrSrSrSrg)�DMLTableRolei rz-subject table for an INSERT, UPDATE or DELETENr0rr#r$r�r� s���I�@�Jr#r�c��\rSrSrSrSrSrg)�
DMLColumnRolei%rz*SET/VALUES column expression or string keyNr0rr#r$r�r�%s���I�=�Jr#r�c� �\rSrSrSrSrSrSrg)�
DMLSelectRolei*z@A SELECT statement embedded in DML, typically INSERT from SELECTrz-SELECT statement or equivalent textual objectNr�rr#r$r�r�*s��J��I�@�Jr#r�c��\rSrSrSrSrg)�DDLRolei1rNrlrr#r$r�r�1rmr#r�c��\rSrSrSrSrSrg)�DDLExpressionRolei5rz)SQL expression element for DDL constraintNr0rr#r$r�r�5s���I�<�Jr#r�c��\rSrSrSrSrSrg)�DDLConstraintColumnRolei:rz:String column name or column expression for DDL constraintNr0rr#r$r�r�:s���I�M�Jr#r�c��\rSrSrSrSrSrg)�DDLReferredColumnRolei?rzBString column name or Column object for DDL foreign key constraintNr0rr#r$r�r�?s���I�L�r#r�N)C�33__future__r�typingrrrrr�r34�util.typingr�_typingr
�elementsr�35selectablerrrrrrr&r+r.r3r6r9r<rArDrHrKrNr[r^rardrgrjrorrrurxr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rr#r$�<module>r�s���#���� ���!��,��+�&�$��T������s�d�3��
�
� ����360�g�0�376�7�6�38(�w�(�39%��%�403�0�3�413�-�3�42�W�����)��W�)�43$�(�.�.�$��W�U�^�W��-�g�-�443�~�3�45'�"�N�H�'�'�"�H�'�46�W��4�.�4�47�#�^��8�l�8�48$�2�5�9�$�7�)�"�-�7�49�1�"�5��;�-�b�1�;�50�G���%�~�~���&����>��51�3���g��52+�G�53+�54�-��55�������56�*�G���m��A�>�A�57>�G�>�58A�G�A��m��=��=�59N�g�N�60�3�r#
codekingpro/portable-devtools · Team Ai