Files
aitsc/.venv/Lib/site-packages/sqlalchemy/engine/__pycache__/result.cpython-312.pyc

1048 lines
89 KiB
Plaintext
Raw Normal View History

2025-02-23 09:07:52 +08:00
<EFBFBD>
2025-08-16 19:28:45 +08:00
<00><18>h<EFBFBD>8<00><01><00>dZddlmZddlmZddlZddlZddlZddlZddlm Z ddlm
2025-02-23 09:07:52 +08:00
Z
ddlm Z ddlm Z dd lm Z dd
lmZdd lmZdd lmZdd lmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlm Z ddl!m"Z"ddl!m#Z#ddl!m$Z$dd l m%Z%dd!l m&Z&dd"l'm(Z(dd#l)m*Z*dd$l)m+Z+ej0se(sdd%l,m-Z-ndd%l.m-Z-ej0r dd&l/m0Z0dd'l1m2Z2ee3d(fZ4ee3d(e5fZ6e Z7ee4e7fZ8eee ee fZ9 ee d)fZ: ed*e9<65>+<2B>Z;ed,e <09>+<2B>Z<ed-ee d)f<00>+<2B>Z=ee;e:fZ> eee e fZ?eed.Z@e
ee gee fZAe
e ge fZBeee eeBfZCGd/<2F>d0<64>ZDGd1<64>d2ej<>e <00>ZFGd3<64>d4eD<65>ZG dO dPd5<64>ZHGd6<64>d7e<04>ZIeIj<49>ZJGd8<64>d9e$e e;<00>ZKGd:<3A>d;<3B>ZLGd<<3C>d=eLeKee=<00>ZMGd><3E>d?eKe;<00>ZNGd@<40>dAeNe;<00>ZOGdB<64>dCeNe;e j<><00>ZQGdD<64>dEeLeNe<00>ZRGdF<64>dGe e=<00>ZSGdH<64>dIeMe=<00>ZTdQdJ<64>ZUGdK<64>dLeTe=<00>ZVGdM<64>dNeTe=<00>ZWy)Rz%Define generic result set constructs.<2E>)<01> annotations)<01>EnumN)<01>Any)<01>Callable)<01>cast)<01>Dict)<01>Generic)<01>Iterable)<01>Iterator)<01>List)<01>Mapping)<01>NoReturn)<01>Optional)<01>overload)<01>Sequence)<01>Set)<01>Tuple)<01> TYPE_CHECKING)<01>TypeVar)<01>Union<6F>)<01>Row)<01>
RowMapping<EFBFBD>)<01>exc)<01>util)<01> _generative)<01> HasMemoized)<01>InPlaceGenerative)<01>!HasMemoized_ro_memoized_attribute)<01>NONE_SET)<01>HAS_CYEXTENSION)<01>Literal)<01>Self)<01> tuplegetter)<01>Column)<01>_ResultProcessorTypez Column[Any].<2E>_R)<01>bound<6E>_T<5F>_TPz_ResultProcessorType[Any]c<01><><00>eZdZUdZdZdZded<dZded<dZded <d
ed <d ed <ded<ded<e d#d<12><04>Z
2025-08-16 19:28:45 +08:00
d$d<13>Z d%d<14>Z e d& d'd<15><05>Ze d& d(d<16><05>Ze d& d)d<17><05>Z d* d)d<18>Z d+d<19>Z d,d<1A>Z d-d<1B>Z d.d<1C>Zd/d<1D>Z d* d0d<1E>Z d1d<1F>Z d2d <20>Zd3d!<21>Ze d4d"<22><04>Zy)5<>ResultMetaDataz$Base for metadata about result rows.<2E>N<>Optional[_TupleGetterType]<5D> _tuplefilter<65>Optional[Sequence[int]]<5D>_translated_indexes<65>(Optional[Sequence[Callable[[Any], Any]]]<5D>_unique_filters<72> _KeyMapType<70>_keymap<61> Sequence[str]<5D>_keys<79>Optional[_ProcessorsType]<5D> _processors<72>Mapping[_KeyType, int]<5D> _key_to_indexc<01><00>t|<00>S<00>N)<01> RMKeyView<65><01>selfs <20><D:\aitsc\.venv\Lib\site-packages\sqlalchemy\engine\result.py<70>keyszResultMetaData.keysjs <00><00><18><14><EFBFBD><1E>c<01><00>t<00><00>r><00><01>NotImplementedError<6F>rA<00>keys rB<00>_has_keyzResultMetaData._has_keyn<00> <00><00>!<21>#<23>#rDc<01><00>t<00><00>r>rFr@s rB<00> _for_freezezResultMetaData._for_freezeqrKrDc<01><00>yr>r.<00>rArI<00>err<72>raiseerrs rB<00> _key_fallbackzResultMetaData._key_fallbackts<00><00>rDc<01><00>yr>r.rOs rBrRzResultMetaData._key_fallbackys<00><00> rDc<01><00>yr>r.rOs rBrRzResultMetaData._key_fallback<63>s<00><00>!rDc<01>"<00>|sJ<00>t|<01>|<02>r>)<01>KeyErrorrOs rBrRzResultMetaData._key_fallback<63>s<00><00><18><0F>x<EFBFBD><16>s<EFBFBD>m<EFBFBD><13>$rDc<01><00>td<01><00>)NzCambiguous column name logic is implemented for CursorResultMetaDatarF)rA<00>recs rB<00> _raise_for_ambiguous_column_namez/ResultMetaData._raise_for_ambiguous_column_name<6D>s<00><00>"<22> #<23>
2025-02-23 09:07:52 +08:00
<EFBFBD>
rDc<01><00>t<00><00>r>rF<00>rArIrQs rB<00>_index_for_keyzResultMetaData._index_for_key<65><00> <00><00>"<22>#<23>#rDc<01><00>t<00><00>r>rF<00>rArCs rB<00>_indexes_for_keysz ResultMetaData._indexes_for_keys<79>r]rDc<01><00>t<00><00>r>rFr_s rB<00>_metadata_for_keysz!ResultMetaData._metadata_for_keys<79>r]rDc<01><00>t<00><00>r>rFr_s rB<00>_reducezResultMetaData._reduce<63>rKrDc<01>V<00>|j||<02>}|<03>tj|<03>Syr>)r\<00>operator<6F>
itemgetter)rArIrQ<00>indexs rB<00>_getterzResultMetaData._getter<65>s0<00><00><15>#<23>#<23>C<EFBFBD><18>2<><05> <10> <1C><1B>&<26>&<26>u<EFBFBD>-<2D> -<2D>rDc<01>4<00>|j|<01>}t|<02>Sr>)r`r%)rArC<00>indexess rB<00>_row_as_tuple_getterz#ResultMetaData._row_as_tuple_getter<65>s<00><00><17>(<28>(<28><14>.<2E><07><1A>G<EFBFBD>$<24>$rDc<01>f<00>|j<00>D<00><03>cic]\}}||<00>|||<00><02>c}}Scc}}wr>)<01>items)rA<00>keymaprhrIrXs rB<00>_make_key_to_indexz!ResultMetaData._make_key_to_index<65>sE<00><00>
#<23>L<EFBFBD>L<EFBFBD>N<EFBFBD>
<EFBFBD>*<2A><08><03>S<EFBFBD><12>5<EFBFBD>z<EFBFBD>%<25> <10><13>U<EFBFBD><1A>O<EFBFBD>*<2A>
<EFBFBD>
<EFBFBD><EFBFBD>
s<00>-c<01><00>||jvr|j|j|<00>y|r |j|d<00>y|j|d<00>y#t$r}t |j
d<00>|<03>d}~wwxYw<01>Nr)r6rYrRrV<00>AttributeError<6F>args)rArI<00>
attr_error<EFBFBD>kes rB<00>_key_not_foundzResultMetaData._key_not_found<6E>sx<00><00> <0E>$<24>,<2C>,<2C> <1E> <10> 1<> 1<>$<24>,<2C>,<2C>s<EFBFBD>2C<32> D<><1A>=<3D><18>&<26>&<26>s<EFBFBD>D<EFBFBD>1<><15>"<22>"<22>3<EFBFBD><04>-<2D><> <20>=<3D>(<28><12><17><17><11><1A>4<>"<22><<3C><>=<3D>s<00>A<00> A><03> A9<03>9A>c<01>r<00>|jrtj|j<00>ry|jSr>)r:r!<00>
issupersetr@s rB<00>_effective_processorsz$ResultMetaData._effective_processors<72>s-<00><00><13><1F><1F>8<EFBFBD>#6<>#6<>t<EFBFBD>7G<37>7G<37>#H<><17><17>#<23>#<23> #rD<00><02>returnr?<00>rI<00>objectr|<00>bool<6F>r|r-).)rIrrP<00>Optional[Exception]rQ<00> Literal[True]r|r)rIrrPr<>rQzLiteral[False]r|<00>None)rIrrPr<>rQrr|zOptional[NoReturn]<5D>T)rX<00>_KeyMapRecTyper|r)rI<00> _KeyIndexTyperQrr|<00> Optional[int])rC<00>Sequence[_KeyIndexType]r|<00> Sequence[int])rCr<>r|<00>Iterator[_KeyMapRecType])rCr<>r|r-)rIrrQrr|<00>#Optional[Callable[[Row[Any]], Any]]<5D>rCr<>r|<00>_TupleGetterType)roz Mapping[_KeyType, Sequence[Any]]rh<00>intr|r;)rIrrurr|r)r|r9)<19>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__<5F> __slots__r0<00>__annotations__r2r4<00>propertyrCrJrMrrRrYr\r`rbrdrirlrprwrzr.rDrBr-r-]s<00><00>.<2E><12>I<EFBFBD>/3<>L<EFBFBD>,<2C>3<>37<33><17>0<>7<>@D<>O<EFBFBD>=<3D>D<> <18><18> <18><18>*<2A>*<2A>)<29>)<29> <0A><1F><0E><1F>$<24>$<24><0E>LO<4C><17><16><17>0<><17><I<><17> <11><17><0E><17><0E>
$'<27> <13> <10><13>!<21><13>!<21> <13>
<0E> <13><0E><13><0E>CF<43>!<21><16>!<21>0<>!<21><@<40>!<21> <1B>!<21><0E>!<21>
DH<01>%<25><16>%<25>0<>%<25><@<40>%<25> <1B>%<25> 
<EFBFBD>!<21>
<EFBFBD> <11>
<EFBFBD>$<24> <20>$<24>,0<>$<24> <16>$<24>
$<24>+<2B>$<24> <16>$<24>
$<24>+<2B>$<24> !<21>$<24>
$<24>*.<2E><18><16><18>"&<26><18> ,<2C><18>%<25>+<2B>%<25> <19>%<25> 
<EFBFBD>6<>
<EFBFBD>?B<>
<EFBFBD> <1F>
<EFBFBD> .<2E><0E>$<24><0E>$rDr-c<01>^<00>eZdZUdZded<ded<dd<06>Zdd<07>Zdd<08>Zdd <09>Zdd
<EFBFBD>Z dd <0B>Z
dd <0C>Z y )r?<00><02>_parentr8r-r<>r7r8c<01>`<00>||_|jD<00>cgc]}|<02><01>|<02><02> c}|_ycc}wr>r<>)rA<00>parent<6E>ks rB<00>__init__zRMKeyView.__init__<5F>s*<00><00><1D><04> <0C>!'<27><1C><1C>?<3F><1C>A<EFBFBD><11><1D>a<EFBFBD><1C>?<3F><04>
<EFBFBD><EFBFBD>?s<00>+<04>+c<01>,<00>t|j<00>Sr>)<02>lenr8r@s rB<00>__len__zRMKeyView.__len__<5F>s<00><00><12>4<EFBFBD>:<3A>:<3A><EFBFBD>rDc<01>$<00>dj|<00>S)Nz#{0.__class__.__name__}({0._keys!r}))<01>formatr@s rB<00>__repr__zRMKeyView.__repr__<5F>s<00><00>4<>;<3B>;<3B>D<EFBFBD>A<>ArDc<01>,<00>t|j<00>Sr>)<02>iterr8r@s rB<00>__iter__zRMKeyView.__iter__<5F>s<00><00><13>D<EFBFBD>J<EFBFBD>J<EFBFBD><1F>rDc<01>Z<00>t|t<00>ry|jj|<01>S<00>NF)<04>
isinstancer<EFBFBD>r<>rJ)rA<00>items rB<00> __contains__zRMKeyView.__contains__<5F>s&<00><00> <15>d<EFBFBD>C<EFBFBD> <20><18><14>|<7C>|<7C>$<24>$<24>T<EFBFBD>*<2A>*rDc<01>0<00>t|<01>t|<00>k(Sr><00><01>list<73>rA<00>others rB<00>__eq__zRMKeyView.__eq__<5F><00><00><00><13>E<EFBFBD>{<7B>d<EFBFBD>4<EFBFBD>j<EFBFBD>(<28>(rDc<01>0<00>t|<01>t|<00>k7Sr>r<>r<>s rB<00>__ne__zRMKeyView.__ne__<5F>r<>rDN)r<>r-)r|r<>)r|<00>str)r|z Iterator[str])r<>rr|r)r<>rr|r) r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r.rDrBr?r?<00>s8<00><00>$<24>I<EFBFBD> <1B><1B> <18><18>@<01><1F>B<01> <20>+<2B>)<29>)rDr?c<01><><00>eZdZUdZdZded< d dd<06>Zdd<07>Zdd<08>Zdd <09>Z dd
<EFBFBD>Z
ddd <0B>Z dd <0C>Z dd <0A>Z dd<0E>Zy)<1A>SimpleResultMetaDataz*result metadata for in-memory collections.)r8r6r:r0r2r4r<r7r8Nc <01><><00>t|<01>|_||_||_||_|rDt t |j|<02><00>D<00><07><08> cgc]\}\}} |f| r| ndz||| ff<02><02>}
}}} n-t |j<00>D<00><07>cgc] \}}|f||dff<02><02>}
}}|
D<00><01> <0B> cic]\}} |D]} | | <0B><03><00>c} } }|_||_|j|jd<02>|_
ycc} }}wcc}}wcc} } }w)Nr.r) r<>r8r0r2r4<00> enumerate<74>zipr6r:rpr<) rArC<00>extrar:r0r2r4rh<00>name<6D>extras<61>
recs_namesrXrIs rBr<>zSimpleResultMetaData.__init__s<00><00><1A>$<24>Z<EFBFBD><04>
<EFBFBD>(<28><04><19>#6<><04> <20>.<2E><04><1C> <10> .7<EFBFBD>s<EFBFBD>4<EFBFBD>:<3A>:<3A>u<EFBFBD>7M<37>-N<> <0E>
.O<01>)<29>E<EFBFBD>><3E>D<EFBFBD>&<26><1A>G<EFBFBD><16>v<EFBFBD>R<EFBFBD>8<><1A>D<EFBFBD>&<26>)<29><12>.O<01> <17><0E>$-<2D>T<EFBFBD>Z<EFBFBD>Z<EFBFBD>#8<><0E>#8<>K<EFBFBD>E<EFBFBD>4<EFBFBD><17><17>5<EFBFBD>$<24><02>+<2B>,<2C>#8<> <17><0E>
3=<3D>M<>*<2A>Y<EFBFBD>T<EFBFBD>3<EFBFBD><04><13><03>S<EFBFBD><08><04><03>*<2A>M<><04> <0C>&<26><04><18>!<21>4<>4<>T<EFBFBD>\<5C>\<5C>1<EFBFBD>E<><04><1A><>#<0E><><0E><>
Ns<00> C&<08>C-<06>C3c<01><00>||jvSr><00>r6rHs rBrJzSimpleResultMetaData._has_key's<00><00><12>d<EFBFBD>l<EFBFBD>l<EFBFBD>"<22>"rDc<01><><00>|j}|r|jr|j|<01>}t|j|jD<00>cgc]}|j|d<00><02>c}|<01><02>Scc}w)Nr)r<>r4)r4r0r<>r8r6)rA<00>unique_filtersrIs rBrMz SimpleResultMetaData._for_freeze*sh<00><00><1D>-<2D>-<2D><0E> <19>d<EFBFBD>/<2F>/<2F>!<21>.<2E>.<2E>~<7E>><3E>N<EFBFBD>$<24> <10>J<EFBFBD>J<EFBFBD>37<33>:<3A>:<3A>><3E>:<3A>C<EFBFBD>4<EFBFBD><<3C><<3C><03>$<24>Q<EFBFBD>'<27>:<3A>><3E>*<2A>
<EFBFBD>
<EFBFBD><EFBFBD>>s<00>
A,
c<01>4<00>|j|jd<01>S)N<>r8r2r<>r@s rB<00> __getstate__z!SimpleResultMetaData.__getstate__7s<00><00><19>Z<EFBFBD>Z<EFBFBD>#'<27>#;<3B>#;<3B>
<EFBFBD>
rDc<01>`<00>|dr|d}t|<02>}ndx}}|j|d||<03><03>y)Nr2r8)r2r0)r%r<>)rA<00>stater2r0s rB<00> __setstate__z!SimpleResultMetaData.__setstate__=sK<00><00> <10>&<26> '<27>"'<27>(=<3D>"><3E> <1F>&<26>(;<3B><<3C>L<EFBFBD>15<31> 5<> <1F>,<2C> <0C> <0A> <0A> <11>'<27>N<EFBFBD> 3<>%<25> <16>
rDc<01><><00>t|jjvr|j|} |j|}|dS#t
$r!}|j |||<02>}Yd}~|dSd}~wwxYwrr<00>r<><00> __class__<5F>__mro__r8r6rVrR)rArIrQrXrvs rBr\z#SimpleResultMetaData._index_for_keyIsn<00><00> <0E>#<23>-<2D>-<2D>'<27>'<27> '<27><16>*<2A>*<2A>S<EFBFBD>/<2F>C<EFBFBD> 8<><16>,<2C>,<2C>s<EFBFBD>#<23>C<EFBFBD><13>1<EFBFBD>v<EFBFBD> <0A><><18> 8<><16>$<24>$<24>S<EFBFBD>"<22>h<EFBFBD>7<>C<EFBFBD><12>1<EFBFBD>v<EFBFBD> <0A><> 8<>s<00>A<00> A+<03>
A&<03>&A+c<01>L<00>|D<00>cgc]}|j|d<00><02>c}Scc}wrrr<>)rArCrIs rBr`z&SimpleResultMetaData._indexes_for_keysSs(<00><00>04<30>5<><04><13><04> <0C> <0C>S<EFBFBD>!<21>!<21>$<24><04>5<>5<><35>5s<00>!c#<01><>K<00>|D]A}t|jjvr|j|} |j|}|<03><01><00>Cy#t
$r}|j ||d<01>}Yd}~<04>(d}~wwxYw<01>w)NTr<54>)rArCrIrXrvs rBrbz'SimpleResultMetaData._metadata_for_keysVsp<00><00><><00><18>C<EFBFBD><12>c<EFBFBD>m<EFBFBD>m<EFBFBD>+<2B>+<2B>+<2B><1A>j<EFBFBD>j<EFBFBD><13>o<EFBFBD><03> 8<><1A>l<EFBFBD>l<EFBFBD>3<EFBFBD>'<27><03><16>I<EFBFBD><18><> <1C> 8<><1A>(<28>(<28><13>b<EFBFBD>$<24>7<><03><> 8<>s.<00>1A3<01>A
<02>A3<01>
A0<05>A+<05>&A3<01>+A0<05>0A3c<01><><00> |D<00>cgc]<}|jt|jjvr|j|n|<00><02>>}}t<03>\}}}|jr|D<00>cgc]}|j|<00><02>}}t|<05>} t||| ||j|j<00><03>}
|
Scc}w#t
$r*}|j |jd|d<02>Yd}~<04><>d}~wwxYwcc}w)NrT)r<>r0r2r:r4)r6r<>r<>r<>r8rVrRrtr<>r2r%r<>r:r4) rArCrI<00>metadata_for_keysrvrk<00>new_keysr<73><00>idx<64>tup<75> new_metadatas rBrdzSimpleResultMetaData._reduceds<00><00> 5<>
 <20> !<0E> <20>C<EFBFBD><15> <0C> <0C>'*<2A>c<EFBFBD>m<EFBFBD>m<EFBFBD>.C<>.C<>'C<>D<EFBFBD>J<EFBFBD>J<EFBFBD>s<EFBFBD>O<EFBFBD><13><12> <20> <1E>!<0E>$'<27>(9<>#:<3A> <20><07><18>5<EFBFBD> <0F> #<23> #<23>@G<>H<><07><13>t<EFBFBD>/<2F>/<2F><03>4<><07>G<EFBFBD>H<><19>7<EFBFBD>#<23><03>+<2B> <14><17><1C> '<27><1C>(<28>(<28> <20>0<>0<> 
<EFBFBD> <0C><1C><1B><>9!<0E><> <18> 5<> <10> <1E> <1E>r<EFBFBD>w<EFBFBD>w<EFBFBD>q<EFBFBD>z<EFBFBD>2<EFBFBD>t<EFBFBD> 4<> 4<><34> 5<><35>Is/<00>B1<00>AB,<04>B1<00>%C'<04>,B1<00>1 C$<03>: C<03>C$)NNNNN) rCr7r<>zOptional[Sequence[Any]]r:r9r0r/r2r1r4r3r}r<>)r|<00>Dict[str, Any])r<>r<>r|r<>r<>)rIrrQrr|r<>)rC<00> Sequence[Any]r|r<>)rCr<>r|r<>)rCr<>r|r-)r<>r<>r<>r<>r<>r<>r<>rJrMr<>r<>r\r`rbrdr.rDrBr<>r<><00>s<><00><00>4<><06>I<EFBFBD> <19><18>
*.<2E>15<31>37<33>7;<3B>DH<44>F<01><1B>F<01>'<27>F<01>/<2F> F<01>
1<> F<01> 5<> F<01>B<01>F<01>B#<23> 
<EFBFBD>
<EFBFBD>

<EFBFBD><16>6<> <16>!<21> <16> !<21> <16>rDr<>c<01>z<00>t||<01>}tjt||j|j
<00>Sr>)r<><00> functools<6C>partialrrzr<)<03>fieldsr<73>r<>s rB<00> result_tupler<65><00>s8<00><00>"<22>&<26>%<25> 0<>F<EFBFBD> <14> <1C> <1C> <0B>V<EFBFBD>V<EFBFBD>1<>1<>6<EFBFBD>3G<33>3G<33> <06>rDc<01><00>eZdZdZy)<03>_NoRowrN)r<>r<>r<><00>_NO_ROWr.rDrBr<>r<><00>s<00><00><0F>GrDr<>c<01><><00>eZdZUdZdZded<dZded<ded <dZd
ed <dZded <d Z ded<ded<d#d<11>Z
d$ d%d<12>Z d& d'd<13>Z d(d<14>Z d$d)d<15>Zed*d<16><04>Zed+d<17><04>Zd,d<18>Zd,d<19>Ze d-d<1A><04>Zed.d<1B><04>Ze d/d<1C><04>Ze d0d<1D><04>Z d0d<1E>Zd1d<1F>Zd2d <20>Zed3d!<21><04>Zej:d4d"<22><04>Zy)5<>ResultInternalr.N<>Optional[Result[Any]]<5D> _real_resultTr<00>_generate_rows<77>Optional[Callable[[Any], Any]]<5D>_row_logging_fnz Optional[_UniqueFilterStateType]<5D>_unique_filter_state<74>_post_creational_filterFr-<00> _metadata<74>_source_supports_scalarsc<01><00>t<00><00>r>rFr@s rB<00>_fetchiter_implzResultInternal._fetchiter_impl<70>rKrDc<01><00>t<00><00>r>rF<00>rA<00>
hard_closes rB<00>_fetchone_implzResultInternal._fetchone_impl<70>r]rDc<01><00>t<00><00>r>rF<00>rA<00>sizes rB<00>_fetchmany_implzResultInternal._fetchmany_impl<70>r]rDc<01><00>t<00><00>r>rFr@s rB<00>_fetchall_implzResultInternal._fetchall_impl<70>rKrDc<01><00>t<00><00>r>rF<00>rA<00>hards rB<00> _soft_closezResultInternal._soft_close<73>rKrDc<01>
<00><08> <09>
<EFBFBD> <0B> <0C>|jr |jn td|<00>}|jr$|jsyt<00> d<05> fd<02> }nt}|j
}|j }|j}|j}|r8|js,|r||<05>}tj||||<04><00>
|<06> d<06>
<EFBFBD> fd<03> }ntj||||<04>}|jr|j<00>|<07> d<06><08> fd<04> }|S)N<> Result[Any]c<01><00><01><00>||||f<01>Sr>r.)<05>metadata<74>
processors<EFBFBD> key_to_index<65>
scalar_obj<EFBFBD>_procs <20>rB<00> process_rowz/ResultInternal._row_getter.<locals>.process_row<6F>s<00><><00> !<21> <20>*<2A>l<EFBFBD>Z<EFBFBD>M<EFBFBD><16>rDc<01> <00><02><00><00>|<00><00>Sr>r.)<03>row<6F>_make_row_orig<69>fixed_tfs <20><>rB<00>make_rowz,ResultInternal._row_getter.<locals>.make_row<6F>s<00><><00>%<25>h<EFBFBD>s<EFBFBD>m<EFBFBD>4<>4rDc<01> <00><02><00><00>|<00><00>Sr>r.)r<00>_log_row<6F> _make_rows <20><>rBrz,ResultInternal._row_getter.<locals>.make_row<6F>s<00><><00><1F> <09>#<23><0E>/<2F>/rD)
r<EFBFBD>r-r<>r9r<>r;r<>rr|zRow[Any])rz_InterimRowType[Row[Any]]r|r() r<>rr<>r<>rr<>r<rzr0r<>r<>r<>) rA<00> real_resultrr<>r<>r<><00>tfrrr rrrs @@@@@rB<00> _row_getterzResultInternal._row_getter<65>s&<00><><00><14> <20> <20> <11> <1D> <1D><15>m<EFBFBD>T<EFBFBD>*<2A> <14> <17> /<2F> /<2F><17>&<26>&<26><1B><1B><05><16>,<2C><16> 9<><16>#9<><16>!$<24> <16>
<1E> <16><1E>K<EFBFBD><17>><3E>><3E><08><1F>-<2D>-<2D> <0C><1D>3<>3<>
<EFBFBD> <15> "<22> "<22><02> <0A>k<EFBFBD>:<3A>:<3A><19><1F>
<EFBFBD>^<5E>
<EFBFBD>09<EFBFBD>0A<EFBFBD>0A<EFBFBD><1B>X<EFBFBD>z<EFBFBD><<3C>1<0E>N<EFBFBD><1A>H<EFBFBD> 5<>!<21>(<28>(<28><1B>X<EFBFBD>z<EFBFBD><<3C><0E>H<EFBFBD> <17> &<26> &<26>"<22>2<>2<>H<EFBFBD> <20>I<EFBFBD> 0<><18>rDc<01><><00><02><03><04><05>|j<00>|j<00>|jr|j\<00><05>d<03><02><03><04>fd<01> }|Sd<03><02>fd<02> }|S)Nc3<01><><00>K<00>|j<00>D]>}<01>r<00>|<01>n|}<02>r<00>|<02>n|}|<03>vr<01> <20>j|<03><00>r<00>|<02>}|<02><01><00>@y<00>wr>)r<><00>add)rA<00>raw_row<6F>obj<62>hashedr<00>post_creational_filter<65>strategy<67>uniquess <20><><EFBFBD><EFBFBD>rB<00>iterrowsz1ResultInternal._iterator_getter.<locals>.iterrows<77>sc<00><><00><><00>#<23>3<>3<>5<>G<EFBFBD>-5<><08><17>)<29>7<EFBFBD><18>/7<>X<EFBFBD>c<EFBFBD>]<5D>C<EFBFBD>F<EFBFBD><1D><17>(<28> <20><1B>K<EFBFBD>K<EFBFBD><06>'<27>-<2D>4<>S<EFBFBD>9<><03><1D>I<EFBFBD> 6<>s<00>AAc3<01>l<00>K<00>|j<00>D]}<01>r<00>|<01>n|}<02>r<00>|<02>}|<02><01><00>y<00>wr>)r<>)rArrrrs <20><>rBrz1ResultInternal._iterator_getter.<locals>.iterrowss?<00><><00><><00>#<23>3<>3<>5<>G<EFBFBD>-5<><08><17>)<29>7<EFBFBD><18>.<2E>4<>S<EFBFBD>9<><03><1D>I<EFBFBD> 6<>s<00>14)rAr<>r|<00> Iterator[_R]<5D>r r<>r<><00>_unique_strategy)rArrrrrs @@@@rB<00>_iterator_getterzResultInternal._iterator_getter<65>sP<00><><00><17>#<23>#<23><08>!%<25>!=<3D>!=<3D><1E> <0F> $<24> $<24> $<24> 5<> 5<> <1D>G<EFBFBD>X<EFBFBD> <1E> <1E>0<18><0F> <1E><18>rDc<01>x<00>|j}|<01>J<00>|j<00>}|D<00>cgc]
}||<03><00><02> c}Scc}wr>)r r<>)rAr<00>rowsrs rB<00> _raw_all_rowszResultInternal._raw_all_rowssC<00><00><17>#<23>#<23><08><17>#<23>#<23>#<23><13>"<22>"<22>$<24><04>)-<2D>.<2E><14>#<23><08><13> <0A><14>.<2E>.<2E><>.s<00>7c<01><><00>|j}|j}|j<00>}|r|D<00>cgc]
}||<04><00><02> }}n|}|jrS|j\}}|D<00>cgc]}||r||<08>n|f<02><02>c}D<00><08> cgc]\}} | |vr|j | <09>s|<08><02>}
}} n|}
|r|
D<00>cgc]
}||<04><00><02> }
}|
Scc}wcc}wcc} }wcc}wr>)r<>r r<>r<>rr) rArrrr<00> made_rowsrr<00>made_row<6F>sig_row<6F> interim_rowss rB<00>_allrowszResultInternal._allrowss<00><00>!%<25>!=<3D>!=<3D><1E><17>#<23>#<23><08><13>"<22>"<22>$<24><04> <13>26<32>7<>$<24>3<EFBFBD><18>#<23><1D>$<24>I<EFBFBD>7<><1C>I<EFBFBD> <10> $<24> $<24> $<24> 5<> 5<> <1D>G<EFBFBD>X<EFBFBD>%.<2E> *<12>
%.<2E><08>!<21>.6<EFBFBD><08><18>*<2A>H<EFBFBD><16>%.<2E> *<12>
<0E>*<12>%<25>H<EFBFBD>g<EFBFBD><1B>'<27>)<29>'<27>+<2B>+<2B>g<EFBFBD>2F<32><19>*<12> <19>
<0E>%<25>L<EFBFBD> !<21>7C<37><0E>7C<37><03>&<26>s<EFBFBD>+<2B>|<7C> <19><0E><1C><1B><>78<><38>*<12><>
<0E><>s<00>B=<04>"C<04>=!C<06>*C c<01><><00><02><03><04><05>|j<00>|j<00>|jr|j\<00><05>d<03><02><03><04>fd<01> }|Sd<03><02>fd<02> }|S)Nc<01><><00><04>|j} |<01>}|<02>tS<00>r<00>|<02>n|}<03>r<00>|<03>n|}|<04>vr<01>-<2D>j|<04><00>r<00>|<03>}|Sr>)r<>r<>r) rA<00>_onerowrrrrrrrs <20><><EFBFBD><EFBFBD>rB<00>onerowz-ResultInternal._onerow_getter.<locals>.onerowOsl<00><><00><1E>-<2D>-<2D><07><1A>!<21>)<29>C<EFBFBD><1A>{<7B>&<26><0E>.6<EFBFBD>H<EFBFBD>S<EFBFBD>M<EFBFBD>3<EFBFBD><1C>3;<3B><18>#<23><1D><03><06>!<21>W<EFBFBD>,<2C>$<24>#<23>K<EFBFBD>K<EFBFBD><06>/<2F>1<>"8<><13>"=<3D>C<EFBFBD>"<22>
rDc<01>d<00><02>|j<00>}|<01>tS<00>r<00>|<01>n|}<02>r<00>|<02>}|Sr>)r<>r<>)rAr<00> interim_rowrrs <20><>rBr(z-ResultInternal._onerow_getter.<locals>.onerowdsB<00><><00><1A>)<29>)<29>+<2B><03><16>;<3B>"<22>N<EFBFBD>*2<><08><13> <0A>s<EFBFBD> <20>.<2E>&<<3C>[<5B>&I<> <0B>&<26>&rD)rAr<>r|zUnion[_NoRow, _R]r)rAr(rrrrs @@@@rB<00>_onerow_getterzResultInternal._onerow_getterDsS<00><><00><18>#<23>#<23><08>!%<25>!=<3D>!=<3D><1E> <0F> $<24> $<24> $<24> 5<> 5<> <1D>G<EFBFBD>X<EFBFBD> #<23> #<23>B<16> <0A>
'<27><16> rDc<01><><00><02><03><04><05><06>|j<00>|j<00>|jr/|j\<00><06> dd<01><04> d<05><02><03><04><05>fd<02> }|S d<05><03>fd<03> }|S)Nc<01><><00><02>|r|D<00>cgc]
}||<04><00><02> }}<04>r <0C>fd<01>|D<00>}n d<02>|D<00>}|D<00><06>cgc]\}}||vr|j|<07>s|<06><02>c}}Scc}wcc}}w)Nc3<01>2<00>K<00>|]}|<00>|<01>f<02><01><00>y<00>wr>r.)<03>.0r!rs <20>rB<00> <genexpr>zEResultInternal._manyrow_getter.<locals>.filterrows.<locals>.<genexpr><3E>s<00><><00><><00>!<16>GK<47>8<EFBFBD><18>8<EFBFBD>H<EFBFBD>#5<>6<>t<EFBFBD>s<00>c3<01>$K<00>|]}||f<02><01><00>
y<00>wr>r.)r/r!s rBr0zEResultInternal._manyrow_getter.<locals>.filterrows.<locals>.<genexpr><3E>s<00><00><><00> K<>d<EFBFBD>(<28>(<28>H<EFBFBD>!5<>d<EFBFBD>s<00>)r)rrrrrr r!r"s ` rB<00>
filterrowsz2ResultInternal._manyrow_getter.<locals>.filterrows{s<><00><><00> <1C>59<35>:<3A>T<EFBFBD>c<EFBFBD>H<EFBFBD>S<EFBFBD>M<EFBFBD>T<EFBFBD>D<EFBFBD>:<3A><1B>!<16>GK<47>!<16>I<EFBFBD>!L<01>d<EFBFBD> K<>I<EFBFBD>.7<EFBFBD><12>-6<>)<29><08>'<27><1E>g<EFBFBD>-<2D>g<EFBFBD>k<EFBFBD>k<EFBFBD>'<27>6J<36><1D>-6<><12><12><>;<3B><>s
<00>A<04>!Ac<01><><00><05>g}|j}|<01>|jr |jn td|<00>}|jr|jx}}nB||<01>}t |<06>}<01> <09>J<00>|j <00><08> |<06> <0B> <0C><00>|t |<02>z
}n|}|<01>J<00>|r6||<05>}|sn+|j <00><08> |<06> <0B> <0C><00>|t |<02>z
}|r<01>6<EFBFBD>
r|D<00>cgc]
}<00>
|<07><00><02> }}|Scc}w<00>Nr<4E>)r<>r<>r<00>
_yield_perr<EFBFBD><00>extend) rA<00>num<75>collect<63> _manyrowsr
<00> num_requiredrrr2rrrrs <20><><EFBFBD><EFBFBD><EFBFBD>rB<00>manyrowsz0ResultInternal._manyrow_getter.<locals>.manyrows<77>s<00><><00>%'<27><07> <20>0<>0<> <09><16>;<3B> <20>,<2C>,<2C><1D>)<29>)<29>!<21>-<2D><14>6<> <20>
#<23>-<2D>-<2D>-8<>-C<>-C<>C<> <0C>s<EFBFBD>(<28><13>~<7E><04>!<21>$<24>i<EFBFBD><03>'<27>3<>3<>3<><1F><0E><0E>&<26>x<EFBFBD><14>x<EFBFBD><17>I<><1A>(+<2B>S<EFBFBD><17>\<5C>'9<> <0C>#&<26>L<EFBFBD><1A><EFBFBD>&<26><EFBFBD>"<22>$<24>\<5C>2<>D<EFBFBD><1F><1D><1B>N<EFBFBD>N<EFBFBD>"<22>8<EFBFBD>T<EFBFBD>8<EFBFBD>W<EFBFBD>E<><16>$'<27><13>W<EFBFBD><1C>#5<>L<EFBFBD>#<23>*<2A>FM<46>N<>g<EFBFBD>s<EFBFBD>5<>c<EFBFBD>:<3A>g<EFBFBD>G<EFBFBD>N<><1E><0E><>Os<00>C(c<01><><00><02>|<01>0|jr |jn td|<00>}|j}|j|<01>}<03>r|D<00>cgc]
}<00>|<04><00><02> }}<04>r|D<00>cgc]
}<00>|<04><00><02> }}|Scc}wcc}wr4)r<>rr5r<>)rAr7r
rrrrs <20><>rBr;z0ResultInternal._manyrow_getter.<locals>.manyrows<77>s<><00><><00><17>;<3B> <20>,<2C>,<2C><1D>)<29>)<29>!<21>-<2D><14>6<> <20>
&<26>0<>0<>C<EFBFBD>37<33>3G<33>3G<33><03>3L<33><04><1B>59<35>:<3A>T<EFBFBD>c<EFBFBD>H<EFBFBD>S<EFBFBD>M<EFBFBD>T<EFBFBD>D<EFBFBD>:<3A>)<29>CG<43>H<>4<EFBFBD>C<EFBFBD>2<>3<EFBFBD>7<>4<EFBFBD>D<EFBFBD>H<><1B> <0B><>;<3B><>Hs <00> A5<04>"A:)
r<00>Optional[Callable[..., _R]]rz List[Any]rz$Optional[Callable[[List[Any]], Any]]rzSet[Any]r|<00>List[_R])rAzResultInternal[_R]r7r<>r|r>r)rAr;r2rrrrs @@@@@rB<00>_manyrow_getterzResultInternal._manyrow_getterrs<><00><><00><17>#<23>#<23><08>!%<25>!=<3D>!=<3D><1E> <0F> $<24> $<24> $<24> 5<> 5<> <1D>G<EFBFBD>X<EFBFBD> <12>5<> <12><1F> <12>?<3F> <12>"<22>  <12>
<1A>  <12>*- <1F>(<28>- <1F>/<<3C>- <1F><19>- <1F>- <1F>F<18><0F>% <1C>(<28> <1C>/<<3C> <1C><19> <1C>$<18>rDc<01><00>yr>r.<00>rA<00>raise_for_second_row<6F>raise_for_none<6E>scalars rB<00> _only_one_rowzResultInternal._only_one_row<6F>s<00><00> rDc<01><00>yr>r.rAs rBrEzResultInternal._only_one_row<6F>s<00><00> rDc<01><><00>|j}|d<01><02>}|<05>|rtjd<03><00>y|r|jr
d|_d}n |j
} |r||<05>n|}|r<>|jrZ|j\}}|r||<05>n|} |d<01><02>}
|
<EFBFBD>t}
n= |r||
<EFBFBD>n|
}
|r|
tusJ<00>| ||
<EFBFBD>k(r<07>8||
k(r<01>>n|d<01><02>}
|
<EFBFBD>t}
|
turG|j d<01><05>tj|rd<06><00>d<07><00>t}
|j d<01><05>|s|j} | r| |<05>}|r|r|dS|S#|j d<01><05><00>xYw#|j d<01><05><00>xYw) NT<4E>r<>z&No row was found when one was requiredF<64>r<>z6Multiple rows were found when exactly one was requiredz6Multiple rows were found when one or none was requiredr) r<>r<00> NoResultFoundr<64>r<>r r<>r<>rr<><00>MultipleResultsFoundr<64>) rArBrCrDr(rrrr<00>existing_row_hash<73>next_rowrs rBrEzResultInternal._only_one_row<6F>s<><00><00> <16>$<24>$<24><06>.4<EFBFBD><04>.E<><03> <0E>;<3B><1D><19>'<27>'<27><<3C><12><12><1C> <11>d<EFBFBD>3<>3<>"'<27>D<EFBFBD> <1F><1B>H<EFBFBD><1B>'<27>'<27>H<EFBFBD> <12>#+<2B>(<28>3<EFBFBD>-<2D><13>C<EFBFBD>
<20><13>(<28>(<28>%)<29>$9<>$9<>!<21><07><18>5=<3D>H<EFBFBD>S<EFBFBD>M<EFBFBD>3<EFBFBD>!<21><1A>$*<2A>d<EFBFBD>$;<3B>H<EFBFBD><1F>'<27>#*<2A><08><1D> <1E>9A<39>8<EFBFBD>H<EFBFBD>#5<>x<EFBFBD><08>#<23>#+<2B>7<EFBFBD>#:<3A>:<3A>#:<3A>0<>H<EFBFBD>X<EFBFBD>4F<34>F<> (<28> <20>H<EFBFBD>_<EFBFBD>$<24><1D>
"<22>T<EFBFBD>2<><08><1B>#<23>&<26>H<EFBFBD><17>w<EFBFBD>&<26><14> <20> <20>d<EFBFBD> <20>+<2B><19>.<2E>.<2E>%<25>M<01><12><12>#<23><12><12><1F>H<EFBFBD> <11> <1C> <1C>$<24> <1C> '<27><15>%)<29>%A<>%A<> "<22>%<25>,<2C>S<EFBFBD>1<><03> <11>h<EFBFBD><16>q<EFBFBD>6<EFBFBD>M<EFBFBD><16>J<EFBFBD><4A>w <12> <10> <1C> <1C>$<24> <1C> '<27> <11><>6<1E><1C>(<28>(<28>d<EFBFBD>(<28>3<><1D>s<00> E <00>#E$<00>E$<00> E!<03>$E9c<01>$<00>|j|<00>Sr>)rr@s rB<00>
_iter_implzResultInternal._iter_impl;s<00><00><13>$<24>$<24>T<EFBFBD>*<2A>*rDc<01>L<00>|j|<00>}|tur
t<00><00>|Sr>)r+r<><00> StopIteration<6F>rArs rB<00>
_next_implzResultInternal._next_impl>s&<00><00><12>!<21>!<21>$<24>'<27><03> <0E>'<27>><3E><1F>/<2F> !<21><16>JrDc<01><><00>|jr |jn td|<00>}|jrt|<01>dk7r |jj |<01>|_|j sJ<00>|S)Nr<4E>r)r<>rr<>r<>r<>rdr<>)rArkr
s rB<00>_column_sliceszResultInternal._column_slicesEsg<00><00><14> <20> <20> <11> <1D> <1D><15>m<EFBFBD>T<EFBFBD>*<2A> <14> <1B>3<>3<>s<EFBFBD>7<EFBFBD>|<7C>q<EFBFBD>7H<37>!<21>^<5E>^<5E>3<>3<>G<EFBFBD><<3C>D<EFBFBD>N<EFBFBD><13>"<22>"<22>"<22>"<22><13> rDc<01><><00>|j<00>J<00>|j\}}|j<00> |jn td|<00>}|s<>|jjr<>|j
r)|j s|jjd}||fS|jj}|jjr|jj|<04>}tjd|<04>}||fS)Nr<4E>r<00>_filter_on_values)
r<EFBFBD>r<>rr<>r4r<>r<>r0rf<00> methodcaller)rArrr
<00>filterss rBrzResultInternal._unique_strategyTs<><00><00><13>(<28>(<28>4<>4<>4<> <20>5<>5<><19><07><18><14> <20> <20>,<2C> <11> <1D> <1D><15>m<EFBFBD>T<EFBFBD>*<2A> <14> <18>D<EFBFBD>N<EFBFBD>N<EFBFBD>:<3A>:<3A><1B>4<>4<><1C>+<2B>+<2B><1F>><3E>><3E>9<>9<>!<21><<3C><08><17><08> <20> <20> <1F>.<2E>.<2E>8<>8<><07><17>><3E>><3E>.<2E>.<2E>"<22>n<EFBFBD>n<EFBFBD>9<>9<>'<27>B<>G<EFBFBD>#<23>0<>0<>1D<31>g<EFBFBD>N<><08><16><08> <20> rD<00>r|z#Iterator[_InterimRowType[Row[Any]]]<5D>F<>r<>rr|z#Optional[_InterimRowType[Row[Any]]]r><00>r<>r<>r|<00>List[_InterimRowType[Row[Any]]]<5D>r|r^<00>r<>rr|r<>)r|r=)r|zCallable[..., Iterator[_R]])r|r>)r|z1Callable[..., Union[Literal[_NoRow._NO_ROW], _R]])r|zCallable[..., List[_R]])rBrrCr<>rDrr|r()rBrrCrrDrr|<00> Optional[_R]<5D>r|r<00>r|r()rkr<>r|r$)r|<00>_UniqueFilterStateType)r<>r<>r<>r<>r<>r<>r<>r<>r<><00>
_is_cursorr<EFBFBD>r<>r<>r<>r<>r r rrr$r+r?rrErOrSrrUr<00>memoized_attributerr.rDrBr<>r<><00>s<><00><00><12>I<EFBFBD>*.<2E>L<EFBFBD>'<27>.<2E><1F>N<EFBFBD>D<EFBFBD><1F>3<>3<>=A<><18>:<3A>A<>>B<><1B>;<3B>B<><16>J<EFBFBD><1D><1D>"<22>"<22>$<24>"'<27>$<24><1E>$<24> ,<2C>$<24> %)<29>$<24>!<21>$<24> (<28>$<24>
$<24>$<24>'<27>9<18>'<27>9<18>v'<27> <18>'<27> <18>D/<2F> #<1C>J'<27>+<16> :<3A>+<16>'<27>+<16>Z'<27>`<18>'<27>`<18>D<0E><11>"<22><11>&<26><11><15> <11>
<0C> <11><0E><11><0E><1B>"<22><1B><1D><1B><15> <1B>
<16> <1B><0E><1B>T<17>"<22>T<17><1D>T<17><15> T<17>
<16> T<17>l+<2B><17><11> <14><11> <14><11>#<23>#<23>!<21>$<24>!rDr<>c<01>$<00>eZdZUdZded<dd<04>Zy)<07> _WithKeysr.r-r<>c<01>.<00>|jjS)akReturn an iterable view which yields the string keys that would
be represented by each :class:`_engine.Row`.
The keys can represent the labels of the columns returned by a core
statement or the names of the orm classes returned by an orm
execution.
The view also can be tested for key containment using the Python
``in`` operator, which will test both for the string keys represented
in the view, as well as for alternate keys such as column objects.
.. versionchanged:: 1.4 a key view object is returned rather than a
plain list.
)r<>rCr@s rBrCz_WithKeys.keysts<00><00>"<14>~<7E>~<7E>"<22>"<22>"rDNr{)r<>r<>r<>r<>r<>rCr.rDrBrhrhns<00><00><12>I<EFBFBD><1D><1D>#rDrhc<01>d<00>eZdZUdZdZdZded<dZded<dZd ed
<e j<00>Z d ed <d5d <0A>Z d6d<0E>Z d7d<0F>Zd8d<10>Zed9d<11><04>Zed9d<12><04>Zed:d<13><04>Zed;d<d<14><05>Zd=d<15>Zed>d<16><04>Ze d?d<17><04>Zed@dAd<18><05>Zd@dAd<19>Z dB dCd<1A>ZdDd<1B>ZdEd<1C>ZedFd<1D><04>ZdFd<1E>ZdGd<1F>ZdHd <20>ZdId!<21>Z d; dJd"<22>Z!dKd#<23>Z"dLd$<24>Z#d;dMd%<25>Z$dKd&<26>Z%dLd'<27>Z&dLd(<28>Z'edNd)<29><04>Z(edOd*<2A><04>Z(dOd+<2B>Z(edPd,<2C><04>Z)edQd-<2D><04>Z)dQd.<2E>Z)dId/<2F>Z*edPd0<64><04>Z+edOd1<64><04>Z+dOd2<64>Z+dRd3<64>Z,dSd4<64>Z-y)T<>Resulta\Represent a set of database results.
.. versionadded:: 1.4 The :class:`_engine.Result` object provides a
completely updated usage model and calling facade for SQLAlchemy
Core and SQLAlchemy ORM. In Core, it forms the basis of the
:class:`_engine.CursorResult` object which replaces the previous
:class:`_engine.ResultProxy` interface. When using the ORM, a
higher level object called :class:`_engine.ChunkedIteratorResult`
is normally used.
.. note:: In SQLAlchemy 1.4 and above, this object is
used for ORM results returned by :meth:`_orm.Session.execute`, which can
yield instances of ORM mapped objects either individually or within
tuple-like rows. Note that the :class:`_engine.Result` object does not
deduplicate instances or rows automatically as is the case with the
legacy :class:`_orm.Query` object. For in-Python de-duplication of
instances or rows, use the :meth:`_engine.Result.unique` modifier
method.
.. seealso::
:ref:`tutorial_fetching_rows` - in the :doc:`/tutorial/index`
)r<><00>__dict__Nz(Optional[Callable[[Row[Any]], Row[Any]]]r<>Frr<>r<>r5zutil.immutabledict[Any, Any]<5D> _attributesc<01><00>||_yr>)r<>)rA<00>cursor_metadatas rBr<>zResult.__init__<5F>s <00><00>(<28><04>rDc<01><00>|Sr>r.r@s rB<00> __enter__zResult.__enter__<5F><00><00><00><13> rDc<01>$<00>|j<00>yr>)<01>close<73>rA<00>type_<65>value<75> tracebacks rB<00>__exit__zResult.__exit__<5F>s <00><00> <0C>
<EFBFBD>
<EFBFBD> rDc<01>(<00>|jd<01><02>y)a<>close this :class:`_engine.Result`.
The behavior of this method is implementation specific, and is
not implemented by default. The method should generally end
the resources in use by the result object and also cause any
subsequent iteration or row fetching to raise
:class:`.ResourceClosedError`.
.. versionadded:: 1.4.27 - ``.close()`` was previously not generally
available for all :class:`_engine.Result` classes, instead only
being available on the :class:`_engine.CursorResult` returned for
Core statement executions. As most other result objects, namely the
ones used by the ORM, are proxying a :class:`_engine.CursorResult`
in any case, this allows the underlying cursor result to be closed
from the outside facade for the case when the ORM query is using
the ``yield_per`` execution option where it does not immediately
exhaust and autoclose the database cursor.
TrIN)r<>r@s rBrtz Result.close<73>s<00><00>( <0A><18><18>d<EFBFBD><18>#rDc<01><00>t<00><00>r>rFr@s rB<00> _soft_closedzResult._soft_closed<65>s <00><00>!<21>#<23>#rDc<01><00>t<00><00>)zkreturn ``True`` if this :class:`_engine.Result` reports .closed
.. versionadded:: 1.4.43
rFr@s rB<00>closedz Result.closed<65><00> <00><00>"<22>#<23>#rDc<01><00>||_|S)a<>Configure the row-fetching strategy to fetch ``num`` rows at a time.
This impacts the underlying behavior of the result when iterating over
the result object, or otherwise making use of methods such as
:meth:`_engine.Result.fetchone` that return one row at a time. Data
from the underlying cursor or other data source will be buffered up to
this many rows in memory, and the buffered collection will then be
yielded out one row at a time or as many rows are requested. Each time
the buffer clears, it will be refreshed to this many rows or as many
rows remain if fewer remain.
The :meth:`_engine.Result.yield_per` method is generally used in
conjunction with the
:paramref:`_engine.Connection.execution_options.stream_results`
execution option, which will allow the database dialect in use to make
use of a server side cursor, if the DBAPI supports a specific "server
side cursor" mode separate from its default mode of operation.
.. tip::
Consider using the
:paramref:`_engine.Connection.execution_options.yield_per`
execution option, which will simultaneously set
:paramref:`_engine.Connection.execution_options.stream_results`
to ensure the use of server side cursors, as well as automatically
invoke the :meth:`_engine.Result.yield_per` method to establish
a fixed row buffer size at once.
The :paramref:`_engine.Connection.execution_options.yield_per`
execution option is available for ORM operations, with
:class:`_orm.Session`-oriented use described at
:ref:`orm_queryguide_yield_per`. The Core-only version which works
with :class:`_engine.Connection` is new as of SQLAlchemy 1.4.40.
.. versionadded:: 1.4
:param num: number of rows to fetch each time the buffer is refilled.
If set to a value below 1, fetches all rows for the next buffer.
.. seealso::
:ref:`engine_stream_results` - describes Core behavior for
:meth:`_engine.Result.yield_per`
:ref:`orm_queryguide_yield_per` - in the :ref:`queryguide_toplevel`
)r5<00>rAr7s rB<00> yield_perzResult.yield_per<65>s<00><00>b<1E><04><0F><13> rDc<01>(<00>t<00>|f|_|S)aApply unique filtering to the objects returned by this
:class:`_engine.Result`.
When this filter is applied with no arguments, the rows or objects
returned will filtered such that each row is returned uniquely. The
algorithm used to determine this uniqueness is by default the Python
hashing identity of the whole tuple. In some cases a specialized
per-entity hashing scheme may be used, such as when using the ORM, a
scheme is applied which works against the primary key identity of
returned objects.
The unique filter is applied **after all other filters**, which means
if the columns returned have been refined using a method such as the
:meth:`_engine.Result.columns` or :meth:`_engine.Result.scalars`
method, the uniquing is applied to **only the column or columns
returned**. This occurs regardless of the order in which these
methods have been called upon the :class:`_engine.Result` object.
The unique filter also changes the calculus used for methods like
:meth:`_engine.Result.fetchmany` and :meth:`_engine.Result.partitions`.
When using :meth:`_engine.Result.unique`, these methods will continue
to yield the number of rows or objects requested, after uniquing
has been applied. However, this necessarily impacts the buffering
behavior of the underlying cursor or datasource, such that multiple
underlying calls to ``cursor.fetchmany()`` may be necessary in order
to accumulate enough objects in order to provide a unique collection
of the requested size.
:param strategy: a callable that will be applied to rows or objects
being iterated, which should return an object that represents the
unique value of the row. A Python ``set()`` is used to store
these identities. If not passed, a default uniqueness strategy
is used which may have been assembled by the source of this
:class:`_engine.Result` object.
<20><02>setr<74><00>rArs rB<00>uniquez Result.unique s<00><00>L&)<29>U<EFBFBD>H<EFBFBD>$5<><04>!<21><13> rDc<01>$<00>|j|<01>S)aEstablish the columns that should be returned in each row.
This method may be used to limit the columns returned as well
as to reorder them. The given list of expressions are normally
a series of integers or string key names. They may also be
appropriate :class:`.ColumnElement` objects which correspond to
a given statement construct.
.. versionchanged:: 2.0 Due to a bug in 1.4, the
:meth:`_engine.Result.columns` method had an incorrect behavior
where calling upon the method with just one index would cause the
:class:`_engine.Result` object to yield scalar values rather than
:class:`_engine.Row` objects. In version 2.0, this behavior
has been corrected such that calling upon
:meth:`_engine.Result.columns` with a single index will
produce a :class:`_engine.Result` object that continues
to yield :class:`_engine.Row` objects, which include
only a single column.
E.g.::
statement = select(table.c.x, table.c.y, table.c.z)
result = connection.execute(statement)
for z, y in result.columns("z", "y"):
...
Example of using the column objects from the statement itself::
for z, y in result.columns(
statement.selected_columns.c.z, statement.selected_columns.c.y
):
...
.. versionadded:: 1.4
:param \*col_expressions: indicates columns to be returned. Elements
may be integer row indexes, string column names, or appropriate
:class:`.ColumnElement` objects corresponding to a select construct.
:return: this :class:`_engine.Result` object with the modifications
given.
<20>rU<00>rA<00>col_expressionss rB<00>columnszResult.columns5s<00><00>Z<14>"<22>"<22>?<3F>3<>3rDc<01><00>yr>r.r@s rB<00>scalarszResult.scalarsds<00><00>>ArDc<01><00>yr>r.<00>rArhs rBr<>zResult.scalarsg<00><00><00>rDc<01><00>yr>r.r<>s rBr<>zResult.scalarsls<00><00>FIrDc<01><00>t||<01>S)a@Return a :class:`_engine.ScalarResult` filtering object which
will return single elements rather than :class:`_row.Row` objects.
E.g.::
>>> result = conn.execute(text("select int_id from table"))
>>> result.scalars().all()
[1, 2, 3]
When results are fetched from the :class:`_engine.ScalarResult`
filtering object, the single column-row that would be returned by the
:class:`_engine.Result` is instead returned as the column's value.
.. versionadded:: 1.4
:param index: integer or row key indicating the column to be fetched
from each row, defaults to ``0`` indicating the first column.
:return: a new :class:`_engine.ScalarResult` filtering object referring
to this :class:`_engine.Result` object.
)<01> ScalarResultr<74>s rBr<>zResult.scalarsos<00><00>.<1C>D<EFBFBD>%<25>(<28>(rDc<01>h<00>|jr td<01><00>|jj||<02>S)zareturn a callable that will retrieve the given key from a
:class:`_engine.Row`.
<20>.can't use this function in 'only scalars' mode)r<>rGr<>rir[s rBrizResult._getter<65>s6<00><00> <10> (<28> (<28>%<25>@<40><0E> <0E><14>~<7E>~<7E>%<25>%<25>c<EFBFBD>8<EFBFBD>4<>4rDc<01>f<00>|jr td<01><00>|jj|<01>S)zbreturn a callable that will retrieve the given keys from a
:class:`_engine.Row`.
r<>)r<>rGr<>rlr_s rB<00> _tuple_getterzResult._tuple_getter<65>s4<00><00>
<10> (<28> (<28>%<25>@<40><0E> <0E><14>~<7E>~<7E>2<>2<>4<EFBFBD>8<>8rDc<01><00>t|<00>S)a<>Apply a mappings filter to returned rows, returning an instance of
:class:`_engine.MappingResult`.
When this filter is applied, fetching rows will return
:class:`_engine.RowMapping` objects instead of :class:`_engine.Row`
objects.
.. versionadded:: 1.4
:return: a new :class:`_engine.MappingResult` filtering object
referring to this :class:`_engine.Result` object.
)<01> MappingResultr@s rB<00>mappingszResult.mappings<67>s<00><00><1D>T<EFBFBD>"<22>"rDc<01><00>|S)z<>Apply a "typed tuple" typing filter to returned rows.
The :attr:`_engine.Result.t` attribute is a synonym for
calling the :meth:`_engine.Result.tuples` method.
.. versionadded:: 2.0
r.r@s rB<00>tzResult.t<>s <00><00><14> rDc<01><00>|S)a,Apply a "typed tuple" typing filter to returned rows.
This method returns the same :class:`_engine.Result` object
at runtime,
however annotates as returning a :class:`_engine.TupleResult` object
that will indicate to :pep:`484` typing tools that plain typed
``Tuple`` instances are returned rather than rows. This allows
tuple unpacking and ``__getitem__`` access of :class:`_engine.Row`
objects to by typed, for those cases where the statement invoked
itself included typing information.
.. versionadded:: 2.0
:return: the :class:`_engine.TupleResult` type at typing time.
.. seealso::
:attr:`_engine.Result.t` - shorter synonym
:attr:`_engine.Row._t` - :class:`_engine.Row` version
r.r@s rB<00>tuplesz Result.tuples<65>s <00><00>0<14> rDc<01><00>t<00><00>)z<>Return a safe iterator that yields raw row data.
This is used by the :meth:`_engine.Result.merge` method
to merge multiple compatible results together.
rFr@s rB<00>_raw_row_iteratorzResult._raw_row_iterator<6F>rrDc<01>"<00>|j<00>Sr><00>rOr@s rBr<>zResult.__iter__<5F><00><00><00><13><EFBFBD><EFBFBD> <20> rDc<01>"<00>|j<00>Sr><00>rSr@s rB<00>__next__zResult.__next__<5F>r<>rDc#<01>HK<00>|j} |||<01>}|r|<03><01>ny<01><12>w)a<>Iterate through sub-lists of rows of the size given.
Each list will be of the size given, excluding the last list to
be yielded, which may have a small number of rows. No empty
lists will be yielded.
The result object is automatically closed when the iterator
is fully consumed.
Note that the backend driver will usually buffer the entire result
ahead of time unless the
:paramref:`.Connection.execution_options.stream_results` execution
option is used indicating that the driver should not pre-buffer
results, if possible. Not all drivers support this option and
the option is silently ignored for those who do not.
When using the ORM, the :meth:`_engine.Result.partitions` method
is typically more effective from a memory perspective when it is
combined with use of the
:ref:`yield_per execution option <orm_queryguide_yield_per>`,
which instructs both the DBAPI driver to use server side cursors,
if available, as well as instructs the ORM loading internals to only
build a certain amount of ORM objects from a result at a time before
yielding them out.
.. versionadded:: 1.4
:param size: indicate the maximum number of rows to be present
in each list yielded. If None, makes use of the value set by
the :meth:`_engine.Result.yield_per`, method, if it were called,
or the :paramref:`_engine.Connection.execution_options.yield_per`
execution option, which is equivalent in this regard. If
yield_per weren't set, it makes use of the
:meth:`_engine.Result.fetchmany` default, which may be backend
specific and not well defined.
:return: iterator of lists
.. seealso::
:ref:`engine_stream_results`
:ref:`orm_queryguide_yield_per` - in the :ref:`queryguide_toplevel`
N<>r?<00>rAr<><00>getter<65> partitions rB<00>
partitionszResult.partitions<6E>s3<00><00><><00>b<16>%<25>%<25><06><12><1E>t<EFBFBD>T<EFBFBD>*<2A>I<EFBFBD><18><1F><0F><15> <13><><00> "c<01>"<00>|j<00>S)z4A synonym for the :meth:`_engine.Result.all` method.<2E>r$r@s rB<00>fetchallzResult.fetchall <00><00><00><14>}<7D>}<7D><EFBFBD>rDc<01>:<00>|j|<00>}|tury|S)a<>Fetch one row.
When all rows are exhausted, returns None.
This method is provided for backwards compatibility with
SQLAlchemy 1.x.x.
To fetch the first row of a result only, use the
:meth:`_engine.Result.first` method. To iterate through all
rows, iterate the :class:`_engine.Result` object directly.
:return: a :class:`_engine.Row` object if no filters are applied,
or ``None`` if no rows remain.
N<>r+r<>rRs rB<00>fetchonezResult.fetchone%s#<00><00> <13>!<21>!<21>$<24>'<27><03> <0E>'<27>><3E><17><16>JrDc<01>&<00>|j||<01>S)a<>Fetch many rows.
When all rows are exhausted, returns an empty sequence.
This method is provided for backwards compatibility with
SQLAlchemy 1.x.x.
To fetch rows in groups, use the :meth:`_engine.Result.partitions`
method.
:return: a sequence of :class:`_engine.Row` objects.
.. seealso::
:meth:`_engine.Result.partitions`
r<>r<>s rB<00> fetchmanyzResult.fetchmany;s<00><00>&<14>#<23>#<23>D<EFBFBD>$<24>/<2F>/rDc<01>"<00>|j<00>S)a<>Return all rows in a sequence.
Closes the result set after invocation. Subsequent invocations
will return an empty sequence.
.. versionadded:: 1.4
:return: a sequence of :class:`_engine.Row` objects.
.. seealso::
:ref:`engine_stream_results` - How to stream a large result set
without loading it completely in python.
r<>r@s rB<00>allz
Result.allPs<00><00>"<14>}<7D>}<7D><EFBFBD>rDc<01>*<00>|jddd<01><02>S)a<>Fetch the first row or ``None`` if no row is present.
Closes the result set and discards remaining rows.
.. note:: This method returns one **row**, e.g. tuple, by default.
To return exactly one single scalar value, that is, the first
column of the first row, use the
:meth:`_engine.Result.scalar` method,
or combine :meth:`_engine.Result.scalars` and
:meth:`_engine.Result.first`.
Additionally, in contrast to the behavior of the legacy ORM
:meth:`_orm.Query.first` method, **no limit is applied** to the
SQL query which was invoked to produce this
:class:`_engine.Result`;
for a DBAPI driver that buffers results in memory before yielding
rows, all rows will be sent to the Python process and all but
the first row will be discarded.
.. seealso::
:ref:`migration_20_unify_select`
:return: a :class:`_engine.Row` object, or None
if no rows remain.
.. seealso::
:meth:`_engine.Result.scalar`
:meth:`_engine.Result.one`
F<>rBrCrD<00>rEr@s rB<00>firstz Result.firstcs$<00><00>F<14>!<21>!<21>!&<26>u<EFBFBD>U<EFBFBD>"<22>
<EFBFBD>
rDc<01>*<00>|jddd<02><03>S)a<>Return at most one result or raise an exception.
Returns ``None`` if the result has no rows.
Raises :class:`.MultipleResultsFound`
if multiple rows are returned.
.. versionadded:: 1.4
:return: The first :class:`_engine.Row` or ``None`` if no row
is available.
:raises: :class:`.MultipleResultsFound`
.. seealso::
:meth:`_engine.Result.first`
:meth:`_engine.Result.one`
TFr<46>r<>r@s rB<00> one_or_nonezResult.one_or_none<6E>s#<00><00>*<14>!<21>!<21>!%<25>e<EFBFBD>E<EFBFBD>"<22>
<EFBFBD>
rDc<01><00>yr>r.r@s rB<00>
scalar_onezResult.scalar_one<6E><00><00><00>36rDc<01><00>yr>r.r@s rBr<>zResult.scalar_one<6E><00><00><00>!$rDc<01>*<00>|jddd<01><02>S)a*Return exactly one scalar result or raise an exception.
This is equivalent to calling :meth:`_engine.Result.scalars` and
then :meth:`_engine.ScalarResult.one`.
.. seealso::
:meth:`_engine.ScalarResult.one`
:meth:`_engine.Result.scalars`
Tr<54>r<>r@s rBr<>zResult.scalar_one<6E>s#<00><00><14>!<21>!<21>!%<25>d<EFBFBD>4<EFBFBD>"<22>
<EFBFBD>
rDc<01><00>yr>r.r@s rB<00>scalar_one_or_nonezResult.scalar_one_or_none<6E>s<00><00>EHrDc<01><00>yr>r.r@s rBr<>zResult.scalar_one_or_none<6E>r<>rDc<01>*<00>|jddd<01><03>S)a0Return exactly one scalar result or ``None``.
This is equivalent to calling :meth:`_engine.Result.scalars` and
then :meth:`_engine.ScalarResult.one_or_none`.
.. seealso::
:meth:`_engine.ScalarResult.one_or_none`
:meth:`_engine.Result.scalars`
TFr<46>r<>r@s rBr<>zResult.scalar_one_or_none<6E>s#<00><00><14>!<21>!<21>!%<25>e<EFBFBD>D<EFBFBD>"<22>
<EFBFBD>
rDc<01>*<00>|jddd<02><03>S)aeReturn exactly one row or raise an exception.
Raises :class:`.NoResultFound` if the result returns no
rows, or :class:`.MultipleResultsFound` if multiple rows
would be returned.
.. note:: This method returns one **row**, e.g. tuple, by default.
To return exactly one single scalar value, that is, the first
column of the first row, use the
:meth:`_engine.Result.scalar_one` method, or combine
:meth:`_engine.Result.scalars` and
:meth:`_engine.Result.one`.
.. versionadded:: 1.4
:return: The first :class:`_engine.Row`.
:raises: :class:`.MultipleResultsFound`, :class:`.NoResultFound`
.. seealso::
:meth:`_engine.Result.first`
:meth:`_engine.Result.one_or_none`
:meth:`_engine.Result.scalar_one`
TFr<46>r<>r@s rB<00>onez
Result.one<6E>s#<00><00>:<14>!<21>!<21>!%<25>d<EFBFBD>5<EFBFBD>"<22>
<EFBFBD>
rDc<01><00>yr>r.r@s rBrDz Result.scalar<61>s<00><00>9<rDc<01><00>yr>r.r@s rBrDz Result.scalar<61>s<00><00> rDc<01>*<00>|jddd<02><03>S)a<>Fetch the first column of the first row, and close the result set.
Returns ``None`` if there are no rows to fetch.
No validation is performed to test if additional rows remain.
After calling this method, the object is fully closed,
e.g. the :meth:`_engine.CursorResult.close`
method will have been called.
:return: a Python scalar value, or ``None`` if no rows remain.
FTr<54>r<>r@s rBrDz Result.scalar<61>s#<00><00><14>!<21>!<21>!&<26>u<EFBFBD>T<EFBFBD>"<22>
<EFBFBD>
rDc<01><00>t|<00>S)aReturn a callable object that will produce copies of this
:class:`_engine.Result` when invoked.
The callable object returned is an instance of
:class:`_engine.FrozenResult`.
This is used for result set caching. The method must be called
on the result when it has been unconsumed, and calling the method
will consume the result fully. When the :class:`_engine.FrozenResult`
is retrieved from a cache, it can be called any number of times where
it will produce a new :class:`_engine.Result` object each time
against its stored set of rows.
.. seealso::
:ref:`do_orm_execute_re_executing` - example usage within the
ORM to implement a result-set cache.
)<01> FrozenResultr@s rB<00>freezez Result.freeze
s<00><00>*<1C>D<EFBFBD>!<21>!rDc<01>6<00>t|j|f|z<00>S)a<>Merge this :class:`_engine.Result` with other compatible result
objects.
The object returned is an instance of :class:`_engine.MergedResult`,
which will be composed of iterators from the given result
objects.
The new result will use the metadata from this result object.
The subsequent result objects must be against an identical
set of result / cursor metadata, otherwise the behavior is
undefined.
)<02> MergedResultr<74>)rA<00>otherss rB<00>mergez Result.merge!s<00><00><1C>D<EFBFBD>N<EFBFBD>N<EFBFBD>T<EFBFBD>G<EFBFBD>f<EFBFBD>,<<3C>=<3D>=rD)ror-<00>r|r$<00>rvrrwrrxrr|r<><00>r|r<><00>r|r<00>r7r<>r|r$r><00>rzOptional[_UniqueFilterType]r|r$<00>r<>r<>r|r$)rA<00>Result[Tuple[_T]]r|<00>ScalarResult[_T])rAr<>rhz
Literal[0]r|r<>)r)rhr<>r|zScalarResult[Any]r<>)rIr<>rQrr|r<>r<>)r|r<>)r|zTupleResult[_TP]<5D>r|zIterator[_RowData])r|zIterator[Row[_TP]])r|zRow[_TP])r<>r<>r|zIterator[Sequence[Row[_TP]]])r|<00>Sequence[Row[_TP]])r|zOptional[Row[_TP]])r<>r<>r|r<>)rAr<>r|r*<00>r|r)rAr<>r|<00> Optional[_T]<5D>r|<00> Optional[Any])r|<00>FrozenResult[_TP])r<>r<>r|zMergedResult[_TP]).r<>r<>r<>r<>r<>r<>r<>r<>r5r<00> immutabledictrmr<>rqryrtr<>r|r~rr<>r<>r<>rr<>rir<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>rDr<>r<>r.rDrBrkrk<00>s<00><00><08>2*<2A>I<EFBFBD>@D<>O<EFBFBD>=<3D>D<>%*<2A><1C>d<EFBFBD>*<2A> $<24>J<EFBFBD> <0A>$<24>0B<30><04>0B<30>0B<30>0D<30>K<EFBFBD>-<2D>D<>)<29><14><15>$<24>,<0E>$<24><0E>$<24><0E>$<24><0E>$<24><11>1<14><11>1<14>f<11>&<14><11>&<14>P-4<>^<0E>A<><0E>A<> <0A><1F><1F><1F>(2<><1F> <19><1F><0E><1F><0E>I<><0E>I<>)<29>448<34> 5<> <20> 5<>,0<> 5<> ,<2C> 5<> 9<>#<23>"<0E> <14><0E> <14><14>4$<24>!<21>!<21>%)<29>8<16>!<21>8<16> %<25>8<16>t<1F>
<17>,0<>*<1F>&%
<EFBFBD>N
<EFBFBD>2<0E>6<><0E>6<> <0A>$<24><0E>$<24>
<EFBFBD>"<0E>H<><0E>H<> <0A>6<><0E>6<>
<EFBFBD>"
<EFBFBD>B<0E><<3C><0E><<3C> <0A> <20><0E> <20>
<EFBFBD>$"<22>.>rDrkc<01><><00>eZdZUdZdZded<ded<dd<07>Zdd<08>Zedd <09><04>Z ddd
<EFBFBD>Z
e dd <0B><04>Z e dd <0C><04>Z dd <0A>Ze dd<0E><04>Zdd<0F>Z d dd<10>Zdd<11>Z d d d<13>Zy)!<21> FilterResultaZA wrapper for a :class:`_engine.Result` that returns objects other than
:class:`_engine.Row` objects, such as dictionaries or scalar objects.
:class:`_engine.FilterResult` is the common base for additional result
APIs including :class:`_engine.MappingResult`,
:class:`_engine.ScalarResult` and :class:`_engine.AsyncResult`.
)r<>r<>r<>r<>rlr<>r<>r<>r<>c<01><00>|Sr>r.r@s rBrqzFilterResult.__enter__HrrrDc<01>><00>|jj|||<03>yr>)r<>ryrus rBryzFilterResult.__exit__Ks<00><00> <0C><19><19>"<22>"<22>5<EFBFBD>%<25><19>;rDc<01>F<00>|jj|<01>|_|S)a<>Configure the row-fetching strategy to fetch ``num`` rows at a time.
The :meth:`_engine.FilterResult.yield_per` method is a pass through
to the :meth:`_engine.Result.yield_per` method. See that method's
documentation for usage notes.
.. versionadded:: 1.4.40 - added :meth:`_engine.FilterResult.yield_per`
so that the method is available on all result set implementations
.. seealso::
:ref:`engine_stream_results` - describes Core behavior for
:meth:`_engine.Result.yield_per`
:ref:`orm_queryguide_yield_per` - in the :ref:`queryguide_toplevel`
)r<>r<>r<>s rBr<>zFilterResult.yield_perNs"<00><00>&!<21>-<2D>-<2D>7<>7<><03><<3C><04><19><13> rDc<01><<00>|jj|<01><01>y<00>NrI)r<>r<>r<>s rBr<>zFilterResult._soft_closeds<00><00> <0C><19><19>%<25>%<25>4<EFBFBD>%<25>0rDc<01>.<00>|jjSr>)r<>r|r@s rBr|zFilterResult._soft_closedgs<00><00><13> <20> <20>-<2D>-<2D>-rDc<01>.<00>|jjS)z|Return ``True`` if the underlying :class:`_engine.Result` reports
closed
.. versionadded:: 1.4.43
)r<>r~r@s rBr~zFilterResult.closedks<00><00><14> <20> <20>'<27>'<27>'rDc<01>8<00>|jj<00>y)zUClose this :class:`_engine.FilterResult`.
.. versionadded:: 1.4.43
N)r<>rtr@s rBrtzFilterResult.closeus<00><00> <0A><19><19><1F><1F>!rDc<01>.<00>|jjSr>)r<>rmr@s rBrmzFilterResult._attributes}s<00><00><13> <20> <20>,<2C>,<2C>,rDc<01>6<00>|jj<00>Sr>)r<>r<>r@s rBr<>zFilterResult._fetchiter_impl<70>s<00><00><13> <20> <20>0<>0<>2<>2rDc<01>:<00>|jj|<01><01>S)NrH)r<>r<>r<>s rBr<>zFilterResult._fetchone_impl<70>s<00><00><14> <20> <20>/<2F>/<2F>:<3A>/<2F>F<>FrDc<01>6<00>|jj<00>Sr>)r<>r<>r@s rBr<>zFilterResult._fetchall_impl<70>s<00><00><13> <20> <20>/<2F>/<2F>1<>1rDNc<01>:<00>|jj|<01><01>S<00>N<>r<>)r<>r<>r<>s rBr<>zFilterResult._fetchmany_impl<70>s<00><00><14> <20> <20>0<>0<>d<EFBFBD>0<>;<3B>;rDr<>r<>r<>r[r`r<>r<>)r|zDict[Any, Any]rZr\r_r>r])r<>r<>r<>r<>r<>r<>rqryrr<>r<>r<>r|r~rtrmr<>r<>r<>r<>r.rDrBr<>r<>2s<><00><00><08><06>I<EFBFBD><<3C>;<3B><1D><1D><14><<3C><11><14><11><14>*1<><0E>.<2E><0E>.<2E><0E>(<28><0E>(<28>"<22><0E>-<2D><0E>-<2D>3<>"'<27>G<01><1E>G<01> ,<2C>G<01>
2<>%)<29><<3C>!<21><<3C> (<28><rDr<>c<01><><00>eZdZUdZdZdZded<dd<06>Zddd<08>Zddd <09>Z dd
<EFBFBD>Z
ddd <0B>Z dd <0C>Z dd <0A>Z dd<0E>Zdd<0F>Zdd<10>Zdd<11>Zy)r<>a<>A wrapper for a :class:`_engine.Result` that returns scalar values
rather than :class:`_row.Row` values.
The :class:`_engine.ScalarResult` object is acquired by calling the
:meth:`_engine.Result.scalars` method.
A special limitation of :class:`_engine.ScalarResult` is that it has
no ``fetchone()`` method; since the semantics of ``fetchone()`` are that
the ``None`` value indicates no more results, this is not compatible
with :class:`_engine.ScalarResult` since there is no way to distinguish
between ``None`` as a row value versus ``None`` as an indicator. Use
``next(result)`` to receive values individually.
r.Fr<46>r<>c<01><><00>||_|jr|j|_d|_n;|jj |g<01>|_t j d<01>|_|j|_yrr)r<>r<>r<>r<>rdrfrgr<>)rAr
rhs rBr<>zScalarResult.__init__<5F>sc<00><00>'<27><04><19> <16> /<2F> /<2F>(<28>2<>2<>D<EFBFBD>N<EFBFBD>+/<2F>D<EFBFBD> (<28>(<28>2<>2<>:<3A>:<3A>E<EFBFBD>7<EFBFBD>C<>D<EFBFBD>N<EFBFBD>+3<>+><3E>+><3E>q<EFBFBD>+A<>D<EFBFBD> (<28>$/<2F>$D<>$D<><04>!rDNc<01>(<00>t<00>|f|_|S)z<>Apply unique filtering to the objects returned by this
:class:`_engine.ScalarResult`.
See :meth:`_engine.Result.unique` for usage details.
r<>r<>s rBr<>zScalarResult.unique<75><00><00><00>&)<29>U<EFBFBD>H<EFBFBD>$5<><04>!<21><13> rDc#<01>HK<00>|j} |||<01>}|r|<03><01>ny<01><12>w)z<>Iterate through sub-lists of elements of the size given.
Equivalent to :meth:`_engine.Result.partitions` except that
scalar values, rather than :class:`_engine.Row` objects,
are returned.
Nr<4E>r<>s rBr<>zScalarResult.partitions<6E>s2<00><00><><00><16>%<25>%<25><06><12><1E>t<EFBFBD>T<EFBFBD>*<2A>I<EFBFBD><18><1F><0F><15> <13>r<EFBFBD>c<01>"<00>|j<00>S)<01>:A synonym for the :meth:`_engine.ScalarResult.all` method.r<>r@s rBr<>zScalarResult.fetchall<6C>r<>rDc<01>&<00>|j||<01>S)z<>Fetch many objects.
Equivalent to :meth:`_engine.Result.fetchmany` except that
scalar values, rather than :class:`_engine.Row` objects,
are returned.
r<>r<>s rBr<>zScalarResult.fetchmany<6E>s<00><00><14>#<23>#<23>D<EFBFBD>$<24>/<2F>/rDc<01>"<00>|j<00>S)z<>Return all scalar values in a sequence.
Equivalent to :meth:`_engine.Result.all` except that
scalar values, rather than :class:`_engine.Row` objects,
are returned.
r<>r@s rBr<>zScalarResult.all<6C>s<00><00><14>}<7D>}<7D><EFBFBD>rDc<01>"<00>|j<00>Sr>r<>r@s rBr<>zScalarResult.__iter__<5F>r<>rDc<01>"<00>|j<00>Sr>r<>r@s rBr<>zScalarResult.__next__<5F>r<>rDc<01>*<00>|jddd<01><02>S)z<>Fetch the first object or ``None`` if no object is present.
Equivalent to :meth:`_engine.Result.first` except that
scalar values, rather than :class:`_engine.Row` objects,
are returned.
Fr<46>r<>r@s rBr<>zScalarResult.first<73><00>#<00><00><14>!<21>!<21>!&<26>u<EFBFBD>U<EFBFBD>"<22>
<EFBFBD>
rDc<01>*<00>|jddd<02><03>S)z<>Return at most one object or raise an exception.
Equivalent to :meth:`_engine.Result.one_or_none` except that
scalar values, rather than :class:`_engine.Row` objects,
are returned.
TFr<46>r<>r@s rBr<>zScalarResult.one_or_none<6E><00>#<00><00><14>!<21>!<21>!%<25>e<EFBFBD>E<EFBFBD>"<22>
<EFBFBD>
rDc<01>*<00>|jddd<02><03>S)z<>Return exactly one object or raise an exception.
Equivalent to :meth:`_engine.Result.one` except that
scalar values, rather than :class:`_engine.Row` objects,
are returned.
TFr<46>r<>r@s rBr<>zScalarResult.one<00>#<00><00><14>!<21>!<21>!%<25>d<EFBFBD>5<EFBFBD>"<22>
<EFBFBD>
rD)r
r<>rhr<>r>r<><00>r<>r<>r|zIterator[Sequence[_R]]<5D>r|<00> Sequence[_R]<5D>r<>r<>r|r rbrc<00>r|ra)r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r.rDrBr<>r<><00>sQ<00><00> <08><13>I<EFBFBD><1A>N<EFBFBD>;<3B>;<3B>
E<01><14><16>$<1F>
0<><1F>!<21>!<21> 
<EFBFBD>

<EFBFBD>

rDr<>c<01><00>eZdZdZdZeru d dd<04>Zdd<05>Zdd<06>Zddd<07>Z dd<08>Z
dd <09>Z dd
<EFBFBD>Z dd <0B>Z dd <0C>Zdd <0A>Zedd<0E><04>Zedd<0F><04>Zdd<10>Ze d d<11><04>Zed!d<12><04>Zd!d<13>Zed d<14><04>Zedd<15><04>Zdd<16>Zyy)"<22> TupleResultaA :class:`_engine.Result` that's typed as returning plain
Python tuples instead of rows.
Since :class:`_engine.Row` acts like a tuple in every way already,
this class is a typing only class, regular :class:`_engine.Result` is
still used at runtime.
r.Nc<01><00>y)z<>Iterate through sub-lists of elements of the size given.
Equivalent to :meth:`_engine.Result.partitions` except that
tuple values, rather than :class:`_engine.Row` objects,
are returned.
Nr.r<>s rBr<>zTupleResult.partitions#s<00><00> rDc<01><00>y)z<>Fetch one tuple.
Equivalent to :meth:`_engine.Result.fetchone` except that
tuple values, rather than :class:`_engine.Row`
objects, are returned.
Nr.r@s rBr<>zTupleResult.fetchone/<00><00><00> rDc<01><00>y)r<>Nr.r@s rBr<>zTupleResult.fetchall9s<00><00> rDc<01><00>y)z<>Fetch many objects.
Equivalent to :meth:`_engine.Result.fetchmany` except that
tuple values, rather than :class:`_engine.Row` objects,
are returned.
Nr.r<>s rBr<>zTupleResult.fetchmany=rrDc<01><00>y)z<>Return all scalar values in a sequence.
Equivalent to :meth:`_engine.Result.all` except that
tuple values, rather than :class:`_engine.Row` objects,
are returned.
Nr.r@s rBr<>zTupleResult.allGrrDc<01><00>yr>r.r@s rBr<>zTupleResult.__iter__Qs<00><00>CrDc<01><00>yr>r.r@s rBr<>zTupleResult.__next__Ss<00><00>#rDc<01><00>y)z<>Fetch the first object or ``None`` if no object is present.
Equivalent to :meth:`_engine.Result.first` except that
tuple values, rather than :class:`_engine.Row` objects,
are returned.
Nr.r@s rBr<>zTupleResult.firstUs<00><00> rDc<01><00>y)z<>Return at most one object or raise an exception.
Equivalent to :meth:`_engine.Result.one_or_none` except that
tuple values, rather than :class:`_engine.Row` objects,
are returned.
Nr.r@s rBr<>zTupleResult.one_or_none`rrDc<01><00>y)z<>Return exactly one object or raise an exception.
Equivalent to :meth:`_engine.Result.one` except that
tuple values, rather than :class:`_engine.Row` objects,
are returned.
Nr.r@s rBr<>zTupleResult.onejrrDc<01><00>yr>r.r@s rBr<>zTupleResult.scalar_onets<00><00><?rDc<01><00>yr>r.r@s rBr<>zTupleResult.scalar_onews<00><00>%(rDc<01><00>y)aBReturn exactly one scalar result or raise an exception.
This is equivalent to calling :meth:`_engine.Result.scalars`
and then :meth:`_engine.ScalarResult.one`.
.. seealso::
:meth:`_engine.ScalarResult.one`
:meth:`_engine.Result.scalars`
Nr.r@s rBr<>zTupleResult.scalar_onez<00><00><00> rDc<01><00>yr>r.r@s rBr<>zTupleResult.scalar_one_or_none<6E>r<>rDc<01><00>yr>r.r@s rBr<>zTupleResult.scalar_one_or_none<6E>s<00><00>7:rDc<01><00>y)aBReturn exactly one or no scalar result.
This is equivalent to calling :meth:`_engine.Result.scalars`
and then :meth:`_engine.ScalarResult.one_or_none`.
.. seealso::
:meth:`_engine.ScalarResult.one_or_none`
:meth:`_engine.Result.scalars`
Nr.r@s rBr<>zTupleResult.scalar_one_or_none<6E>rrDc<01><00>yr>r.r@s rBrDzTupleResult.scalar<61>s<00><00>BErDc<01><00>yr>r.r@s rBrDzTupleResult.scalar<61>r<>rDc<01><00>y)a<>Fetch the first column of the first row, and close the result
set.
Returns ``None`` if there are no rows to fetch.
No validation is performed to test if additional rows remain.
After calling this method, the object is fully closed,
e.g. the :meth:`_engine.CursorResult.close`
method will have been called.
:return: a Python scalar value , or ``None`` if no rows remain.
Nr.r@s rBrDzTupleResult.scalar<61>s<00><00> rDr>r r r
r rbrc)rA<00>TupleResult[Tuple[_T]]r|r*r<>)rAr%r|r<>r<>)r<>r<>r<>r<>r<>rr<>r<>r<>r<>r<>r<>r<>r<>r<>r<>rr<>r<>rDr.rDrBrrs<><00><00><08><13>I<EFBFBD><14>)-<2D>
<10>%<25>
<10> #<23>
<10> <10> <10> <10> <10> 0<>%<25> <10> <10> <10>
<12>?<3F>
<12>?<3F> <11>(<28>
<12>(<28> <10>
<12> <1F>(<28> <1F> <19> <1F>
<12> <1F>
<12>:<3A>
<12>:<3A> <10>
<12>E<>
<12>E<> <11>$<24>
<12>$<24> <10>KrDrc<01><><00>eZdZdZdZdZejd<04>Zdd<05>Z ddd<07>Z
dd<08>Z d dd <09>Z dd
<EFBFBD>Z dd <0B>Zddd <0C>Zdd <0A>Zdd<0E>Zdd<0F>Zdd<10>Zdd<11>Zdd<12>Zy)r<>z<>A wrapper for a :class:`_engine.Result` that returns dictionary values
rather than :class:`_engine.Row` values.
The :class:`_engine.MappingResult` object is acquired by calling the
:meth:`_engine.Result.mappings` method.
r.T<>_mappingc<01><><00>||_|j|_|j|_|jr"|jj dg<01>|_yyrr)r<>r<>r<>r<>rd<00>rA<00>results rBr<>zMappingResult.__init__<5F>sK<00><00>"<22><04><19>$*<2A>$?<3F>$?<3F><04>!<21><1F>)<29>)<29><04><0E> <11> *<2A> *<2A>!<21>^<5E>^<5E>3<>3<>Q<EFBFBD>C<EFBFBD>8<>D<EFBFBD>N<EFBFBD> +rDNc<01>(<00>t<00>|f|_|S)z<>Apply unique filtering to the objects returned by this
:class:`_engine.MappingResult`.
See :meth:`_engine.Result.unique` for usage details.
r<>r<>s rBr<>zMappingResult.unique<75>r<>rDc<01>$<00>|j|<01>S)z:Establish the columns that should be returned in each row.r<>r<>s rBr<>zMappingResult.columns<6E>s<00><00><13>"<22>"<22>?<3F>3<>3rDc#<01>HK<00>|j} |||<01>}|r|<03><01>ny<01><12>w)z<>Iterate through sub-lists of elements of the size given.
Equivalent to :meth:`_engine.Result.partitions` except that
:class:`_engine.RowMapping` values, rather than :class:`_engine.Row`
objects, are returned.
Nr<4E>r<>s rBr<>zMappingResult.partitions<6E>s2<00><00><><00><16>%<25>%<25><06><12><1E>t<EFBFBD>T<EFBFBD>*<2A>I<EFBFBD><18><1F><0F><15> <13>r<EFBFBD>c<01>"<00>|j<00>S)z;A synonym for the :meth:`_engine.MappingResult.all` method.r<>r@s rBr<>zMappingResult.fetchall<6C>r<>rDc<01>:<00>|j|<00>}|tury|S)z<>Fetch one object.
Equivalent to :meth:`_engine.Result.fetchone` except that
:class:`_engine.RowMapping` values, rather than :class:`_engine.Row`
objects, are returned.
Nr<4E>rRs rBr<>zMappingResult.fetchone<6E>s#<00><00><13>!<21>!<21>$<24>'<27><03> <0E>'<27>><3E><17><16>JrDc<01>&<00>|j||<01>S)z<>Fetch many objects.
Equivalent to :meth:`_engine.Result.fetchmany` except that
:class:`_engine.RowMapping` values, rather than :class:`_engine.Row`
objects, are returned.
r<>r<>s rBr<>zMappingResult.fetchmanys<00><00><14>#<23>#<23>D<EFBFBD>$<24>/<2F>/rDc<01>"<00>|j<00>S)z<>Return all scalar values in a sequence.
Equivalent to :meth:`_engine.Result.all` except that
:class:`_engine.RowMapping` values, rather than :class:`_engine.Row`
objects, are returned.
r<>r@s rBr<>zMappingResult.alls<00><00><14>}<7D>}<7D><EFBFBD>rDc<01>"<00>|j<00>Sr>r<>r@s rBr<>zMappingResult.__iter__r<>rDc<01>"<00>|j<00>Sr>r<>r@s rBr<>zMappingResult.__next__r<>rDc<01>*<00>|jddd<01><02>S)z<>Fetch the first object or ``None`` if no object is present.
Equivalent to :meth:`_engine.Result.first` except that
:class:`_engine.RowMapping` values, rather than :class:`_engine.Row`
objects, are returned.
Fr<46>r<>r@s rBr<>zMappingResult.first rrDc<01>*<00>|jddd<02><03>S)z<>Return at most one object or raise an exception.
Equivalent to :meth:`_engine.Result.one_or_none` except that
:class:`_engine.RowMapping` values, rather than :class:`_engine.Row`
objects, are returned.
TFr<46>r<>r@s rBr<>zMappingResult.one_or_none-rrDc<01>*<00>|jddd<02><03>S)z<>Return exactly one object or raise an exception.
Equivalent to :meth:`_engine.Result.one` except that
:class:`_engine.RowMapping` values, rather than :class:`_engine.Row`
objects, are returned.
TFr<46>r<>r@s rBr<>zMappingResult.one9rrD)r*r<>r>r<>r<>)r<>r<>r|zIterator[Sequence[RowMapping]])r|<00>Sequence[RowMapping])r|zOptional[RowMapping])r<>r<>r|r7)r|zIterator[RowMapping])r|r)r<>r<>r<>r<>r<>r<>rf<00>
attrgetterr<EFBFBD>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r.rDrBr<>r<><00>s|<00><00><08><13>I<EFBFBD><19>N<EFBFBD>1<>h<EFBFBD>1<>1<>*<2A>=<3D><1B>9<><14>4<>
%)<29><16>!<21><16> '<27><16>(<1F>
<17> 0<> <1F>!<21>!<21> 
<EFBFBD>

<EFBFBD>

rDr<>c<01>D<00>eZdZUdZded<d d<04>Zd
d<05>Z d d<06>Zd d<07>Zy) r<>a<>Represents a :class:`_engine.Result` object in a "frozen" state suitable
for caching.
The :class:`_engine.FrozenResult` object is returned from the
:meth:`_engine.Result.freeze` method of any :class:`_engine.Result`
object.
A new iterable :class:`_engine.Result` object is generated from a fixed
set of data each time the :class:`_engine.FrozenResult` is invoked as
a callable::
result = connection.execute(query)
frozen = result.freeze()
unfrozen_result_one = frozen()
for row in unfrozen_result_one:
print(row)
unfrozen_result_two = frozen()
rows = unfrozen_result_two.all()
# ... etc
.. versionadded:: 1.4
.. seealso::
:ref:`do_orm_execute_re_executing` - example usage within the
ORM to implement a result-set cache.
:func:`_orm.loading.merge_frozen_result` - ORM function to merge
a frozen result back into a :class:`_orm.Session`.
r<><00>datac<01><00>|jj<00>|_|j|_|j|_|jrt |j <00><00>|_y|j<00>|_yr>) r<>rMr<>r<>rmr<>r<>r:r<>r)s rBr<>zFrozenResult.__init__os`<00><00><1E>(<28>(<28>4<>4<>6<><04> <0A>(.<2E>(G<>(G<><04>%<25>!<21>-<2D>-<2D><04><18> <0F> (<28> (<28><1C>V<EFBFBD>5<>5<>7<>8<>D<EFBFBD>I<EFBFBD><1E><0F><0F>)<29>D<EFBFBD>IrDc<01><><00>|jr|jD<00>cgc]}|g<01><02>c}S|jD<00>cgc] }t|<02><00><02>c}Scc}wcc}wr>)r<>r:r<>)rA<00>elemrs rB<00> rewrite_rowszFrozenResult.rewrite_rowsysK<00><00> <0F> (<28> (<28>'+<2B>y<EFBFBD>y<EFBFBD>1<>y<EFBFBD>t<EFBFBD>T<EFBFBD>F<EFBFBD>y<EFBFBD>1<> 1<>)-<2D><19><19>3<><19>#<23>D<EFBFBD><13>I<EFBFBD><19>3<> 3<><33>2<><32>3s
<00>
A <04>Ac<01><00>tjt<00>}|j|_|j|_|j|_|jr|D<00>cgc]}|d<00><02> c}|_|S||_|Scc}wrr)r<><00>__new__r<5F>rmr<>r:)rA<00>
tuple_data<EFBFBD>fr<66>ds rB<00> with_new_rowszFrozenResult.with_new_rowssw<00><00><1A> !<21> !<21>,<2C> /<2F><02><1A>m<EFBFBD>m<EFBFBD><02> <0B><1D>)<29>)<29><02><0E>&*<2A>&C<>&C<><02>#<23> <0F> (<28> (<28>%/<2F>0<>Z<EFBFBD><01>q<EFBFBD><11>t<EFBFBD>Z<EFBFBD>0<>B<EFBFBD>G<EFBFBD><12> <09>!<21>B<EFBFBD>G<EFBFBD><11> <09><>1s<00> A<c<01><><00>t|jt|j<00><00>}|j|_|j
|_|Sr>)<06>IteratorResultr<74>r<>r:rmr<>r)s rB<00>__call__zFrozenResult.__call__<5F>s@<00><00>&4<> <10>M<EFBFBD>M<EFBFBD>4<EFBFBD><04> <09> <09>?<3F>'
<EFBFBD><06>"<22>-<2D>-<2D><06><1A>*.<2E>*G<>*G<><06>'<27><15> rDN)r*<00> Result[_TP])r|zSequence[Sequence[Any]])rAr<>r|r<>)r|rH) r<>r<>r<>r<>r<>r<>r>rDrGr.rDrBr<>r<>Fs4<00><00>$<08>L <18><17>*<2A>4<> <12>,<2C> <12> <1A> <12>rDr<>c<01><><00>eZdZdZdZdZ d dd<04>Zedd<05><04>Zddd<06>Z dd<07>Z
dd<08>Z dd <09>Z d dd
<EFBFBD>Z dd <0B>Z d dd <0C>Zy)rFz<>A :class:`_engine.Result` that gets data from a Python iterator of
:class:`_engine.Row` objects or similar row-like data.
.. versionadded:: 1.4
FNc<01><<00>||_||_||_||_yr>)r<><00>iterator<6F>rawr<77>)rArorKrLr<>s rBr<>zIteratorResult.__init__<5F>s!<00><00>)<29><04><0E> <20><04> <0A><16><04><08>(@<40><04>%rDc<01><00>|jS)z{Return ``True`` if this :class:`_engine.IteratorResult` has
been closed
.. versionadded:: 1.4.43
)<01> _hard_closedr@s rBr~zIteratorResult.closed<65>s<00><00><14> <20> <20> rDc <01><><00>|rd|_|j<00>|jjdd|i|<02><01>tg<00>|_|j <00>d|_y)NTr<54>r.)rNrLr<>r<>rK<00>_reset_memoizationsr|)rAr<><00>kws rBr<>zIteratorResult._soft_close<73>sR<00><00> <0F> $<24>D<EFBFBD> <1D> <0F>8<EFBFBD>8<EFBFBD> <1F> <20>D<EFBFBD>H<EFBFBD>H<EFBFBD> <20> <20> 1<>d<EFBFBD> 1<>b<EFBFBD> 1<><1C>R<EFBFBD><08><04> <0A> <0C> <20> <20>"<22> <20><04>rDc<01>,<00>tjd<01><00>)NzThis result object is closed.)r<00>ResourceClosedErrorr@s rB<00>_raise_hard_closedz!IteratorResult._raise_hard_closed<65>s<00><00><11>%<25>%<25>&E<>F<>FrDc<01><00>|jSr>)rKr@s rBr<>z IteratorResult._raw_row_iterator<6F>s <00><00><13>}<7D>}<7D>rDc<01>R<00>|jr|j<00>|jSr>)rNrTrKr@s rBr<>zIteratorResult._fetchiter_impl<70>s!<00><00> <0F> <1C> <1C> <10> #<23> #<23> %<25><13>}<7D>}<7D>rDc<01><><00>|jr|j<00>t|jt<00>}|tur|j |<01><01>y|Sr<>)rNrT<00>nextrKr<>r<>)rAr<>rs rBr<>zIteratorResult._fetchone_impl<70>sI<00><00> <10> <1C> <1C> <10> #<23> #<23> %<25><12>4<EFBFBD>=<3D>=<3D>'<27>*<2A><03> <0E>'<27>><3E> <10> <1C> <1C>*<2A> <1C> -<2D><17><16>JrDc<01><><00>|jr|j<00> t|j<00>|j <00>S#|j <00>wxYwr>)rNrTr<>rKr<>r@s rBr<>zIteratorResult._fetchall_impl<70>sA<00><00> <0F> <1C> <1C> <10> #<23> #<23> %<25> <1F><17><04> <0A> <0A>&<26> <10> <1C> <1C> <1E><>D<EFBFBD> <1C> <1C> <1E>s <00>A<00>Ac<01><><00>|jr|j<00>ttj|j
d|<01><00>Srr)rNrTr<><00> itertools<6C>islicerKr<>s rBr<>zIteratorResult._fetchmany_impl<70>s7<00><00> <10> <1C> <1C> <10> #<23> #<23> %<25><13>I<EFBFBD>$<24>$<24>T<EFBFBD>]<5D>]<5D>A<EFBFBD>t<EFBFBD><<3C>=<3D>=rDr<>)ror-rK<00>(Iterator[_InterimSupportsScalarsRowType]rLr<>r<>rr<>r[<00>r<>rrQrr|r<>)r|rr<>)r|r]r\r_r>r])r<>r<>r<>r<>rNr|r<>r<>r~r<>rTr<>r<>r<>r<>r<>r.rDrBrFrF<00>s<><00><00><08><19>L<EFBFBD><18>L<EFBFBD> &*<2A>).<2E>
A<01>'<27>
A<01>;<3B>
A<01>#<23>
A<01>
#'<27>
A<01><0E>!<21><0E>!<21>!<21>G<01><1D><1D> "'<27> <17><1E> <17> ,<2C> <17><1F>%)<29>><3E>!<21>><3E> (<28>>rDrFc<01>><00>ttg<00>tg<00><00>Sr>)rFr<>r<>r.rDrB<00> null_resultr`<00>s<00><00> <19>.<2E>r<EFBFBD>2<>D<EFBFBD><12>H<EFBFBD> =<3D>=rDc<01>p<00><00>eZdZdZ d dd<02>Zedd<03><04>Zd d
<EFBFBD>fd<04> Z d d <0C>fd<05> Z<08>xZ S) <0A>ChunkedIteratorResulta<74>An :class:`_engine.IteratorResult` that works from an
iterator-producing callable.
The given ``chunks`` argument is a function that is given a number of rows
to return in each chunk, or ``None`` for all rows. The function should
then return an un-consumed iterator of lists, each list of the requested
size.
The function can be called at any time again, in which case it should
continue from the same result set but adjust the chunk size as given.
.. versionadded:: 1.4
c<01><><00>||_||_||_||_tj
j |jd<00><00>|_||_yr>) r<><00>chunksr<73>rLr[<00>chain<69> from_iterablerK<00>dynamic_yield_per)rArord<00>source_supports_scalarsrLrgs rBr<>zChunkedIteratorResult.__init__<5F>sH<00><00>)<29><04><0E><1C><04> <0B>(?<3F><04>%<25><16><04><08>!<21><0F><0F>5<>5<>d<EFBFBD>k<EFBFBD>k<EFBFBD>$<24>6G<36>H<><04> <0A>!2<><04>rDc<01>z<00>||_tjj|j |<01><00>|_|Sr>)r5r[rerfrdrKr<>s rBr<>zChunkedIteratorResult.yield_per s/<00><00><1E><04><0F>!<21><0F><0F>5<>5<>d<EFBFBD>k<EFBFBD>k<EFBFBD>#<23>6F<36>G<><04> <0A><13> rDc <01>8<00><01>t<00>|<00>dd|i|<02><01>d<02>|_y)Nr<4E>c<01><00>gSr>r.r<>s rB<00><lambda>z3ChunkedIteratorResult._soft_close.<locals>.<lambda> s<00><00>2rDr.)<03>superr<72>rd)rAr<>rQr<>s <20>rBr<>z!ChunkedIteratorResult._soft_close s<00><><00> <0A><07><1B>,<2C><14>,<2C><12>,<2C>%<25><04> rDc<01><><00><01>|jr3tjj|j |<01><00>|_t <00>|<00>|<01><01>Sr<>)rgr[rerfrdrKrmr<>)rAr<>r<>s <20>rBr<>z%ChunkedIteratorResult._fetchmany_impl s@<00><><00> <10> !<21> !<21>%<25>O<EFBFBD>O<EFBFBD>9<>9<>$<24>+<2B>+<2B>d<EFBFBD>:K<>L<>D<EFBFBD>M<EFBFBD><14>w<EFBFBD>&<26>D<EFBFBD>&<26>1<>1rD)FNF)
ror-rdzBCallable[[Optional[int]], Iterator[Sequence[_InterimRowType[_R]]]]rhrrLr<>rgrr<>r[r^r>r])
r<EFBFBD>r<>r<>r<>r<>rr<>r<>r<><00> __classcell__<5F>r<>s@rBrbrb<00>s<><00><><00> <08>*).<2E>%)<29>"'<27>3<>'<27>3<>
<EFBFBD>3<> "&<26> 3<>#<23>3<> <20>3<>"<11> <14><11> <14>&<26>
%)<29>2<>!<21>2<> (<28>2<>2rDrbc<01>F<00><00>eZdZUdZdZded< d<07>fd<05> Zdd d<06>Z<07>xZS)
r<EFBFBD>z<>A :class:`_engine.Result` that is merged from any number of
:class:`_engine.Result` objects.
Returned by the :meth:`_engine.Result.merge` method.
.. versionadded:: 1.4
Fr<46><00>rowcountc<01>j<00><01>||_t<00>|<00> |tjj d<01>|D<00><00><00>|dj |_|dj|_|dj|_|jj|D<00>cgc]}|j<00><02>c}<03>|_ ycc}w)Nc3<01><K<00>|]}|j<00><00><01><00>y<00>wr>)r<>)r/<00>rs rBr0z(MergedResult.__init__.<locals>.<genexpr>9 s<00><00><><00>*<0E>/6<>!<21><01>#<23>#<23>%<25>w<EFBFBD>s<00>r) <0B>_resultsrmr<>r[rerfr<>r5r<>rm<00>
merge_with)rAro<00>resultsrur<>s <20>rBr<>zMergedResult.__init__3 s<><00><><00> <20><04> <0A> <0A><07><18> <1B> <15>O<EFBFBD>O<EFBFBD> )<29> )<29>*<0E>/6<>*<0E> <0E>
<EFBFBD>%,<2C>A<EFBFBD>J<EFBFBD>$C<>$C<><04>!<21>!<21>!<21>*<2A>/<2F>/<2F><04><0F>)0<><01>
<EFBFBD>(K<>(K<><04>%<25>6<>4<EFBFBD>+<2B>+<2B>6<>6<>%,<2C> -<2D>W<EFBFBD><01>a<EFBFBD>m<EFBFBD>m<EFBFBD>W<EFBFBD> -<2D>
<EFBFBD><04><18><> -s<00>B0c <01>b<00>|jD]}|jdd|i|<02><01><00>|rd|_yy)Nr<4E>Tr.)rvr<>r~)rAr<>rQrus rBr<>zMergedResult._soft_closeH s5<00><00><15><1D><1D>A<EFBFBD> <19>A<EFBFBD>M<EFBFBD>M<EFBFBD> *<2A>t<EFBFBD> *<2A>r<EFBFBD> *<2A><1F> <0F><1E>D<EFBFBD>K<EFBFBD> rD)ror-rxzSequence[Result[_TP]]r[r^) r<>r<>r<>r<>r~r<>r<>r<>rorps@rBr<>r<>& s4<00><><00><08><13>F<EFBFBD><1B><1B>
<EFBFBD>-<2D>
<EFBFBD>8M<EFBFBD>
<EFBFBD>*<1F>rDr<>r>)r<>r7r<>r<>r|z#Callable[[Iterable[Any]], Row[Any]])r|zIteratorResult[Any])Xr<58><00>
__future__r<00>enumrr<>r[rf<00>typingrrrrr r
r r r rrrrrrrrrrrr<00>rr<00>sql.baserrrr r!<00> util._has_cyr"<00> util.typingr#r$<00>_py_rowr%<00>"sqlalchemy.cyextension.resultproxy<78>
sql.schemar&<00> sql.type_apir'r<><00>_KeyTyper<65>r<>r<>r5<00>_RowData<74> _RawRowTyper(r*r+<00>_InterimRowType<70>_InterimSupportsScalarsRowType<70>_ProcessorsTyper<65><00>_UniqueFilterTyperdr-<00>KeysViewr?r<>r<>r<>r<>r<>rhrkr<>r<><00>
TypingOnlyrr<>r<>rFr`rbr<>r.rDrB<00><module>r<>s<><00><01>,<2C>"<22><15><10><10><0F> <0A><16><1B><17><17><1A><1B><1B><17><1A><1B><1B><1B><1B><16><18> <20><1A><18><14><1B><12><13>"<22>"<22>(<28>4<><1B>*<2A>!<21><1E> <09><17><17><EFBFBD>3<>M<> <09><17><17>#<23>3<> <10><13>m<EFBFBD>#<23> $<24><08><15>c<EFBFBD>=<3D>#<23>-<2D>.<2E> <0A><15><0E><15>h<EFBFBD><0E>.<2E>/<2F> <0B> <11><13>S<EFBFBD><18>:<3A>s<EFBFBD>*<2A> +<2B><08><11><14>C<EFBFBD><13>H<EFBFBD>o<EFBFBD> <0B>;<3B> <0C>T<EFBFBD><18>"<22><02> <0C>T<EFBFBD><13><1D><02> <0A>e<EFBFBD>5<EFBFBD><13>c<EFBFBD><18>?<3F>+<2B><03><17><02>K<EFBFBD><0F>(<28><0F><04>
"'<27>s<EFBFBD>3<EFBFBD>x<EFBFBD><13>}<7D>!5<><1E><1A>8<EFBFBD>$?<3F>@<40>A<><0F><1B>X<EFBFBD>c<EFBFBD>]<5D>O<EFBFBD>X<EFBFBD>c<EFBFBD>]<5D>:<3A>;<3B><10><1C>c<EFBFBD>U<EFBFBD>C<EFBFBD>Z<EFBFBD>(<28><11><1E>s<EFBFBD>3<EFBFBD>x<EFBFBD><18>2C<32>)D<>D<>E<><16>u$<24>u$<24>p)<29><06><0F><0F><03>$<24>)<29>DK<1C>><3E>K<1C>^37<33><06> <19><06>"/<2F><06>(<28><06><10>T<EFBFBD><10> <11>.<2E>.<2E><07>S!<21>&<26><07><02> <0B>S!<21>l#<23>#<23>4g
><3E>Y<EFBFBD><0E>s<EFBFBD>3<EFBFBD>x<EFBFBD>0<>g
><3E>T]<<3C>><3E>"<22>%<25>]<<3C>@@
<EFBFBD><<3C><02>#<23>@
<EFBFBD>F`<10>,<2C>r<EFBFBD>"<22>D<EFBFBD>O<EFBFBD>O<EFBFBD>`<10>FK
<EFBFBD>I<EFBFBD>|<7C>J<EFBFBD>7<>K
<EFBFBD>\M<16>7<EFBFBD>3<EFBFBD><<3C>M<16>`P><3E>V<EFBFBD>C<EFBFBD>[<5B>P><3E>f><3E>62<>N<EFBFBD>3<EFBFBD>/<2F>62<>r&<1F>><3E>#<23>&<26>&rD