zmc
2023-08-08 e792e9a60d958b93aef96050644f369feb25d61b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
U
¸ý°dÆã
@sŽdZddlmZddlmZddlmZddlmZddlm    Z    ddlm
Z
ddlm Z dd    lm Z dd
lm Z dd lmZdd lmZdd lmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlm Z ddlm!Z!ddl"m#Z#ddl"m#Z#ddl"m$Z$ddl"m$Z$ddlm%Z%dd l&m'Z'dd!l(m)Z)dd"l(m*Z*dd#l(m+Z+dd$l(m,Z,erÎd%d&l-m.Z.d%d'l-m/Z/d%d(l0m1Z1d%d)l2m3Z3dd*lm4Z4dd+lm5Z5dd,l6m7Z7dd-l8m9Z9dd.l"m:Z:dd/l"m;Z;dd0l"m<Z<dd1l"m=Z=dd2l"m>Z>dd3l"m?Z?dd4l@mAZAdd5l@mBZBdd6lCmDZDdd7lCmEZEdd8lCmFZFddlCmZGdd9lHmIZIdd:lJmKZKdd;lJmLZLeeeMeeMeffZNed<d=d>ZOGd?d@„d@eƒZPGdAdB„dBeƒZQGdCdD„dDe+ƒZRGdEdF„dFe+ƒZSGdGdH„dHe+ƒZTeeMefZUeeMefZVeeUZWeeWeUfZXeeeeUfZYeeeeeWfZZeeZeYfZ[eeeMdFee\ee\ee\ee\ee]fZ^eYZ_eZZ`e[ZaeedIfZbeeeMeeMfZce%eMefZde)dJZeeeeMedKfZfe)dLZgGdMdN„dNe,dOdPZhe%eMefZieeheeMeffZjGdQdR„dRe,ƒZkGdSdT„dTe,ƒZlGdUdV„dVe,ƒZmGdWdX„dXe,ƒZnGdYdZ„dZenƒZoGd[d\„d\enƒZpGd]d^„d^enƒZqGd_d`„d`enƒZrGdadb„dbe,ƒZsGdcdd„dde,ƒZtGdedf„dfeƒZueee\eMfdgfZveeeMeMfZwGdhdi„dieƒZxGdjdk„dkƒZyGdldm„dmƒZzGdndo„doeƒZ{e{Z|Gdpdq„dqƒZ}Gdrds„dsƒZ~dtS)uz1Define core interfaces used by the engine system.é)Ú annotations)ÚEnum)Ú
ModuleType)ÚAny)Ú    Awaitable)ÚCallable)ÚClassVar)Ú
Collection)ÚDict)ÚIterable)ÚIterator)ÚList)ÚMapping)ÚMutableMapping)ÚOptional)ÚSequence)ÚSet)ÚTuple)ÚType)Ú TYPE_CHECKING)ÚTypeVar)ÚUnioné)Úutil)Ú EventTarget)ÚPool)ÚPoolProxiedConnection)ÚCompiled)Ú TypeCompiler)Ú immutabledict)Ú
await_only)ÚLiteral)Ú NotRequired)ÚProtocol)Ú    TypedDicté)Ú
Connection)ÚEngine)Ú CursorResult)ÚURL)Ú_ListenerFnType)Ú
dispatcher)ÚStatementError)Ú
Executable)Ú_InsertManyValuesBatch)Ú DDLCompiler)ÚIdentifierPreparer)ÚInsertmanyvaluesSentinelOpts)ÚLinting)Ú SQLCompiler)Ú BindParameter)Ú ClauseElement)ÚColumn)ÚDefaultGenerator)Ú
SchemaItem)ÚInteger)Ú _TypeMemoDict)Ú
TypeEngineÚ_Tr)Úboundc@s eZdZdZdZdZdZdZdS)Ú
CacheStatsrr%rééN)Ú__name__Ú
__module__Ú __qualname__Ú    CACHE_HITÚ
CACHE_MISSÚCACHING_DISABLEDÚ NO_CACHE_KEYÚNO_DIALECT_SUPPORT©rIrIúSd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\sqlalchemy/engine/interfaces.pyr>Os
r>c@seZdZdZdZdZdZdS)Ú ExecuteStylezVindicates the :term:`DBAPI` cursor method that will be used to invoke
    a statement.rr%rN)rArBrCÚ__doc__ZEXECUTEZ EXECUTEMANYZINSERTMANYVALUESrIrIrIrJrKWs
rKc@sReZdZUdZddœdd„Zddœdd„Zddœd    d
„Zddœd d „Zd ed<dS)ÚDBAPIConnectionzàprotocol representing a :pep:`249` database connection.
 
    .. versionadded:: 2.0
 
    .. seealso::
 
        `Connection Objects <https://www.python.org/dev/peps/pep-0249/#connection-objects>`_
        - in :pep:`249`
 
    ÚNone©ÚreturncCsdS©NrI©ÚselfrIrIrJÚcloseyszDBAPIConnection.closecCsdSrQrIrRrIrIrJÚcommit|szDBAPIConnection.commitÚ DBAPICursorcCsdSrQrIrRrIrIrJÚcursorszDBAPIConnection.cursorcCsdSrQrIrRrIrIrJÚrollback‚szDBAPIConnection.rollbackÚboolZ
autocommitN)    rArBrCrLrTrUrWrXÚ__annotations__rIrIrIrJrMms
 rMc@seZdZdZdS)Ú    DBAPITypezÎprotocol representing a :pep:`249` database type.
 
    .. versionadded:: 2.0
 
    .. seealso::
 
        `Type Objects <https://www.python.org/dev/peps/pep-0249/#type-objects>`_
        - in :pep:`249`
 
    N)rArBrCrLrIrIrIrJr[ˆsr[c@süeZdZUdZeddœdd„ƒZeddœdd„ƒZded    <ded
<d dœd d „Zd1ddddœdd„Z    ddddœdd„Z
ddœdd„Z d2dddœdd„Z ddœdd „Z dd d!œd"d#„Zddd d$œd%d&„Zd3d'ddd(œd)d*„Zd+dœd,d-„Zd'dd.œd/d0„ZdS)4rVzÔprotocol representing a :pep:`249` database cursor.
 
    .. versionadded:: 2.0
 
    .. seealso::
 
        `Cursor Objects <https://www.python.org/dev/peps/pep-0249/#cursor-objects>`_
        - in :pep:`249`
 
    Ú_DBAPICursorDescriptionrOcCsdS)zÀThe description attribute of the Cursor.
 
        .. seealso::
 
            `cursor.description <https://www.python.org/dev/peps/pep-0249/#description>`_
            - in :pep:`249`
 
 
        NrIrRrIrIrJÚ description¡s zDBAPICursor.descriptionÚintcCsdSrQrIrRrIrIrJÚrowcount°szDBAPICursor.rowcountZ    arraysizeZ    lastrowidrNcCsdSrQrIrRrIrIrJrT¸szDBAPICursor.closeNrú#Optional[_DBAPISingleExecuteParams])Ú    operationÚ
parametersrPcCsdSrQrI©rSrarbrIrIrJÚexecute»szDBAPICursor.executez"Sequence[_DBAPIMultiExecuteParams]cCsdSrQrIrcrIrIrJÚ executemanyÂszDBAPICursor.executemanyz Optional[Any]cCsdSrQrIrRrIrIrJÚfetchoneÉszDBAPICursor.fetchone.ú Sequence[Any])ÚsizerPcCsdSrQrI)rSrhrIrIrJÚ    fetchmanyÌszDBAPICursor.fetchmanycCsdSrQrIrRrIrIrJÚfetchallÏszDBAPICursor.fetchall)ÚsizesrPcCsdSrQrI)rSrkrIrIrJÚ setinputsizesÒszDBAPICursor.setinputsizes)rhÚcolumnrPcCsdSrQrI)rSrhrmrIrIrJÚ setoutputsizeÕszDBAPICursor.setoutputsizeÚstr)ÚprocnamerbrPcCsdSrQrI)rSrprbrIrIrJÚcallprocØszDBAPICursor.callproczOptional[bool]cCsdSrQrIrRrIrIrJÚnextsetÛszDBAPICursor.nextset)ÚkeyrPcCsdSrQrI)rSrsrIrIrJÚ __getattr__ÞszDBAPICursor.__getattr__)N).).)rArBrCrLÚpropertyr]r_rZrTrdrerfrirjrlrnrqrrrtrIrIrIrJrV•s&
 ýrVr)ZqmarkÚnumericÚnamedÚformatZpyformatZnumeric_dollarúTypeEngine[Any])Z SERIALIZABLEzREPEATABLE READzREAD COMMITTEDzREAD UNCOMMITTEDZ
AUTOCOMMITc@sVeZdZUded<ded<ded<ded<ded    <d
ed <d
ed <d
ed <ded<dS)Ú_CoreKnownExecutionOptionszOptional[CompiledCacheType]Zcompiled_cacheroZ logging_tokenÚIsolationLevelZisolation_levelrYÚ no_parametersZstream_resultsr^Zmax_row_bufferZ    yield_perÚinsertmanyvalues_page_sizez Optional[SchemaTranslateMapType]Zschema_translate_mapN)rArBrCrZrIrIrIrJrzs
rzF)Útotalc@sjeZdZUdZded<ded<ded<ded<ded<ded    <ded
<ded <ded <d ed<ded<dS)ÚReflectedIdentitya&represent the reflected IDENTITY structure of a column, corresponding
    to the :class:`_schema.Identity` construct.
 
    The :class:`.ReflectedIdentity` structure is part of the
    :class:`.ReflectedColumn` structure, which is returned by the
    :meth:`.Inspector.get_columns` method.
 
    rYÚalwaysZon_nullr^ÚstartÚ    incrementZminvalueZmaxvalueZ
nominvalueZ
nomaxvalueÚcycleú Optional[int]ÚcacheÚorderN©rArBrCrLrZrIrIrIrJr's
    rc@s"eZdZUdZded<ded<dS)ÚReflectedComputeda%Represent the reflected elements of a computed column, corresponding
    to the :class:`_schema.Computed` construct.
 
    The :class:`.ReflectedComputed` structure is part of the
    :class:`.ReflectedColumn` structure, which is returned by the
    :meth:`.Inspector.get_columns` method.
 
    roÚsqltextúNotRequired[bool]Z    persistedNr‡rIrIrIrJrˆUs
    rˆc@sZeZdZUdZded<ded<ded<ded    <d
ed <d ed <ded<ded<ded<dS)ÚReflectedColumnz×Dictionary representing the reflected elements corresponding to
    a :class:`_schema.Column` object.
 
    The :class:`.ReflectedColumn` structure is returned by the
    :class:`.Inspector.get_columns` method.
 
    roÚnameryÚtyperYZnullableú Optional[str]ÚdefaultrŠZ autoincrementúNotRequired[Optional[str]]ÚcommentzNotRequired[ReflectedComputed]ZcomputedzNotRequired[ReflectedIdentity]ÚidentityúNotRequired[Dict[str, Any]]Údialect_optionsNr‡rIrIrIrJr‹gs
 r‹c@s"eZdZUdZded<ded<dS)ÚReflectedConstraintzƒDictionary representing the reflected elements corresponding to
    :class:`.Constraint`
 
    A base class for all constraints
    rŽrŒrr‘Nr‡rIrIrIrJr•¡s
r•c@s"eZdZUdZded<ded<dS)ÚReflectedCheckConstraintzâDictionary representing the reflected elements corresponding to
    :class:`.CheckConstraint`.
 
    The :class:`.ReflectedCheckConstraint` structure is returned by the
    :meth:`.Inspector.get_check_constraints` method.
 
    ror‰r“r”Nr‡rIrIrIrJr–¯s
r–c@s*eZdZUdZded<ded<ded<dS)    ÚReflectedUniqueConstraintzåDictionary representing the reflected elements corresponding to
    :class:`.UniqueConstraint`.
 
    The :class:`.ReflectedUniqueConstraint` structure is returned by the
    :meth:`.Inspector.get_unique_constraints` method.
 
    ú    List[str]Ú column_namesrZduplicates_indexr“r”Nr‡rIrIrIrJr—Âs
 
r—c@s"eZdZUdZded<ded<dS)ÚReflectedPrimaryKeyConstraintzèDictionary representing the reflected elements corresponding to
    :class:`.PrimaryKeyConstraint`.
 
    The :class:`.ReflectedPrimaryKeyConstraint` structure is returned by the
    :meth:`.Inspector.get_pk_constraint` method.
 
    r˜Úconstrained_columnsr“r”Nr‡rIrIrIrJršÖs
ršc@s:eZdZUdZded<ded<ded<ded<d    ed
<d S) ÚReflectedForeignKeyConstraintzçDictionary representing the reflected elements corresponding to
    :class:`.ForeignKeyConstraint`.
 
    The :class:`.ReflectedForeignKeyConstraint` structure is returned by
    the :meth:`.Inspector.get_foreign_keys` method.
 
    r˜r›rŽZreferred_schemaroZreferred_tableZreferred_columnsr“ÚoptionsNr‡rIrIrIrJrœæs
rœc@sReZdZUdZded<ded<ded<ded    <d
ed <ded <d ed<ded<dS)ÚReflectedIndexzÄDictionary representing the reflected elements corresponding to
    :class:`.Index`.
 
    The :class:`.ReflectedIndex` structure is returned by the
    :meth:`.Inspector.get_indexes` method.
 
    rŽrŒzList[Optional[str]]r™zNotRequired[List[str]]Z expressionsrYÚuniquerZduplicates_constraintZinclude_columnsz"NotRequired[Dict[str, Tuple[str]]]Zcolumn_sortingr“r”Nr‡rIrIrIrJržÿs
 
ržc@seZdZUdZded<dS)ÚReflectedTableCommentzìDictionary representing the reflected comment corresponding to
    the :attr:`_schema.Table.comment` attribute.
 
    The :class:`.ReflectedTableComment` structure is returned by the
    :meth:`.Inspector.get_table_comment` method.
 
    rŽÚtextNr‡rIrIrIrJr 3s
r c@seZdZdZdZdZdZdS)Ú
BindTypingz—Define different methods of passing typing information for
    bound parameters in a statement to the database driver.
 
    .. versionadded:: 2.0
 
    r%rr?N)rArBrCrLÚNONEZ SETINPUTSIZESZ RENDER_CASTSrIrIrIrJr¢@s
r¢.c@sØ    eZdZUdZejZejZejZejZej    Z    de
d<de
d<de
d<de
d<de
d    <e j d
d œd d „ƒZ de
d<de
d<de
d<de
d<de
d<de
d<de
d<de
d<de
d<de
d <d!e
d"<d#e
d$<d%e
d&<d%e
d'<d(e
d)<d*e
d+<de
d,<d-e
d.<de
d/<de
d0<de
d1<de
d2<de
d3<de
d4<de
d5<d6Zde
d7<de
d8<de
d9<de
d:<de
d;<de
d<<de
d=<de
d><d?e
d@<d-e
dA<d-e
dB<de
dC<de
dD<de
dE<de
dF<de
dG<de
dH<de
dI<de
dJ<de
dK<dLe
dM<de
dN<de
dO<d-e
dP<de
dQ<de
dR<de
dS<de
dT<de
dU<dVZdWe
dX<dYZdZe
d[<e jZd\e
d]<de
d^<de
d_<de
d`<daZdbZde
dc<de
dd<ejZde
de<de
df<dge
dh<die
dj<dke
dl<dke
dm<de
dn<de
do<de
dp<de
dq<dre
ds<dtd œdudv„Zdwdxdyœdzd{„Zed
d œd|d}„ƒZed~d~dœd€d„ƒZd‚dƒd„œd…d†„Zer:ddd‡œdˆd‰„ZdXd‚dd#ddŠd‹œdŒd„Z dYd‚d#dŽdddœd‘d’„Z!dZd‚dd#dd“d‹œd”d•„Z"d[d‚d#dŽdd–dœd—d˜„Z#d\d‚dd#dd™d‹œdšd›„Z$d]d‚d#dŽddœdœddž„Z%d^d‚d#ddŸd œd¡d¢„Z&d_d‚d#ddŸd œd£d¤„Z'd`d‚d#ddŸd œd¥d¦„Z(dad‚d#ddŸd œd§d¨„Z)dbd‚d#ddŸd œd©dª„Z*dcd‚d#ddŸd œd«d¬„Z+d‚ddŸd­œd®d¯„Z,ddd‚dd#ddd°œd±d²„Z-ded‚dd#dd³d‹œd´dµ„Z.dfd‚d#dŽdd¶dœd·d¸„Z/dgd‚dd#dd¹d‹œdºd»„Z0dhd‚d#dŽdd¼dœd½d¾„Z1did‚dd#dd¿d‹œdÀdÁ„Z2djd‚d#dŽddÂdœdÃdĄZ3dkd‚dd#ddÅd‹œdÆdDŽZ4dld‚d#dŽddÈdœdÉdʄZ5dmd‚dd#ddËd‹œdÌd̈́Z6dnd‚d#dŽddÎdœdÏdЄZ7dddќdÒdӄZ8dddќdÔdՄZ9dod‚dd#ddd‹œdÖdׄZ:dpd‚ddd#ddd؜dÙdڄZ;dqd‚dd#dddۜdÜd݄Z<d‚ddddޜdßdà„Z=d‚dd„œdádâ„Z>d‚dd„œdãdä„Z?dådƒdæœdçdè„Z@dådƒdæœdédê„ZAdådƒdæœdëdì„ZBdídƒdæœdîdï„ZCdídƒdæœdðdñ„ZDdíddæœdòdó„ZEdíddæœdôdõ„ZFdöd÷døddùœdúdû„ZGdd œdüdý„ZHd‚ddƒdþœdÿd„ZId‚ddƒdþœdd„ZJd‚ddƒdþœdd„ZKd‚ddƒdœdd„ZLd‚ddƒdœdd    „ZMdrd‚ddddƒd
œd d „ZNdsd‚ddddƒd
œd d„ZOd‚dd„œdd„ZPdöddddøddœdd„ZQdtdöddddƒdœdd„ZRdudöddddƒdœdd„ZSdvdödddƒdœd d!„ZTd"d#d$dd%œd&d'„ZUdddíd(œd)d*„ZVdwd+dyœd,d-„ZWd+d œd.d/„ZXdídƒd朐d0d1„ZYdíd2dƒd3œd4d5„ZZdíd2d朐d6d7„Z[díd2d8œd9d:„Z\díd;d8œd<d=„Z]díd2dƒd>œd?d@„Z^edwdAdyœdBdC„ƒZ_edwdAdyœdDdE„ƒZ`edƒd œdFdG„ƒZaedHdƒdIœdJdK„ƒZbdídd„œdLdM„ZcdHdNdƒdOœdPdQ„Zdd‚dNdƒdRœdSdT„ZedwdUdyœdVdW„ZfdVS(wÚDialectaeDefine the behavior of a specific database and DB-API combination.
 
    Any aspect of metadata definition, SQL query generation,
    execution, result-set handling, or anything else which varies
    between databases is defined under the general category of the
    Dialect.  The Dialect acts as a factory for other
    database-specific object implementations including
    ExecutionContext, Compiled, DefaultGenerator, and TypeEngine.
 
    .. note:: Third party dialects should not subclass :class:`.Dialect`
       directly.  Instead, subclass :class:`.default.DefaultDialect` or
       descendant class.
 
    zdispatcher[Dialect]ÚdispatchrorŒZdriverZdialect_descriptionzOptional[ModuleType]ZdbapirrOcCs
tƒ‚dS)zsame as .dbapi, but is never None; will raise an error if no
        DBAPI was set up.
 
        .. versionadded:: 2.0
 
        N©ÚNotImplementedErrorrRrIrIrJÚ loaded_dbapi¹szDialect.loaded_dbapirYÚ
positionalZ
paramstyler2Zcompiler_lintingzType[SQLCompiler]Zstatement_compilerzType[DDLCompiler]Z ddl_compilerzClassVar[Type[TypeCompiler]]Ztype_compiler_clsrZtype_compiler_instancerZ type_compilerzType[IdentifierPreparer]Úpreparerr0Zidentifier_preparerzOptional[Tuple[Any, ...]]Zserver_version_inforŽZdefault_schema_namezOptional[IsolationLevel]Zdefault_isolation_levelZ_on_connect_isolation_levelzType[ExecutionContext]Zexecution_ctx_clsz4Union[Type[Tuple[Any, ...]], Type[Tuple[List[Any]]]]Zexecute_sequence_formatZsupports_alterr^Zmax_identifier_lengthZsupports_server_side_cursorsZserver_side_cursorsZsupports_sane_rowcountZsupports_sane_multi_rowcountZsupports_empty_insertZsupports_default_valuesZsupports_default_metavalueÚDEFAULTÚdefault_metavalue_tokenZsupports_multivalues_insertZinsert_executemany_returningZ4insert_executemany_returning_sort_by_parameter_orderZupdate_executemany_returningZdelete_executemany_returningZuse_insertmanyvaluesZ!use_insertmanyvalues_wo_returningr1Z"insertmanyvalues_implicit_sentinelr}Zinsertmanyvalues_max_parametersZ"preexecute_autoincrement_sequencesZinsert_returningZupdate_returningZupdate_returning_multifromZdelete_returningZdelete_returning_multifromZfavor_returning_over_lastrowidZsupports_identity_columnsZcte_follows_insertz<MutableMapping[Type[TypeEngine[Any]], Type[TypeEngine[Any]]]ZcolspecsZsupports_sequencesZsequences_optionalZdefault_sequence_baseZsupports_native_enumZsupports_native_booleanZsupports_native_decimalZsupports_native_uuidZreturns_native_bytesNzPOptional[List[Tuple[Type[Union[SchemaItem, ClauseElement]], Mapping[str, Any]]]]Úconstruct_argumentsrIú Sequence[str]Úreflection_optionszMapping[str, str]Údbapi_exception_translation_mapZsupports_commentsZinline_commentsZsupports_constraint_commentsFTÚsupports_statement_cacheZ_supports_statement_cacheZis_asyncZ has_terminatezMapping[str, Any]Zengine_config_typesr„Z label_lengthzOptional[Set[Any]]Zinclude_set_input_sizesZexclude_set_input_sizesZsupports_simple_order_by_labelZdiv_is_floordivZtuple_in_valuesZ_bind_typing_render_castsz.MutableMapping[TypeEngine[Any], _TypeMemoDict]Z _type_memoszOptional[_ListenerFnType]cCs
tƒ‚dSrQr¦rRrIrIrJÚ_builtin_onconnect¿szDialect._builtin_onconnectr)ÚConnectArgsType©ÚurlrPcCs
tƒ‚dS)aÂBuild DB-API compatible connection arguments.
 
        Given a :class:`.URL` object, returns a tuple
        consisting of a ``(*args, **kwargs)`` suitable to send directly
        to the dbapi's connect function.   The arguments are sent to the
        :meth:`.Dialect.connect` method which then runs the DBAPI-level
        ``connect()`` function.
 
        The method typically makes use of the
        :meth:`.URL.translate_connect_args`
        method in order to generate a dictionary of options.
 
        The default implementation is::
 
            def create_connect_args(self, url):
                opts = url.translate_connect_args()
                opts.update(url.query)
                return [[], opts]
 
        :param url: a :class:`.URL` object
 
        :return: a tuple of ``(*args, **kwargs)`` which will be passed to the
         :meth:`.Dialect.connect` method.
 
        .. seealso::
 
            :meth:`.URL.translate_connect_args`
 
        Nr¦©rSrµrIrIrJÚcreate_connect_argsÂszDialect.create_connect_argscCs
tƒ‚dS)a¦Import the DBAPI module that is used by this dialect.
 
        The Python module object returned here will be assigned as an
        instance variable to a constructed dialect under the name
        ``.dbapi``.
 
        .. versionchanged:: 2.0  The :meth:`.Dialect.import_dbapi` class
           method is renamed from the previous method ``.Dialect.dbapi()``,
           which would be replaced at dialect instantiation time by the
           DBAPI module itself, thus using the same name in two different ways.
           If a ``.Dialect.dbapi()`` classmethod is present on a third-party
           dialect, it will be used and a deprecation warning will be emitted.
 
        Nr¦©ÚclsrIrIrJÚ import_dbapiãszDialect.import_dbapizTypeEngine[_T])ÚtypeobjrPcCs
tƒ‚dS)a4Transform a generic type to a dialect-specific type.
 
        Dialect classes will usually use the
        :func:`_types.adapt_type` function in the types module to
        accomplish this.
 
        The returned result is cached *per dialect class* so can
        contain no dialect-instance state.
 
        Nr¦)r¹r»rIrIrJÚtype_descriptorõs zDialect.type_descriptorr&rN)Ú
connectionrPcCsdS)aCalled during strategized creation of the dialect with a
        connection.
 
        Allows dialects to configure options based on server version info or
        other properties.
 
        The connection passed here is a SQLAlchemy Connection object,
        with full capabilities.
 
        The initialize() method of the base dialect should be called via
        super().
 
        .. note:: as of SQLAlchemy 1.4, this method is called **before**
           any :meth:`_engine.Dialect.on_connect` hooks are called.
 
        NrI©rSr½rIrIrJÚ
initializeszDialect.initialize)Ú method_namerPcCsdSrQrI)rSrÀrIrIrJÚ_overrides_defaultszDialect._overrides_defaultzList[ReflectedColumn])r½Ú
table_nameÚschemaÚkwrPcKs
tƒ‚dS)a›Return information about columns in ``table_name``.
 
        Given a :class:`_engine.Connection`, a string
        ``table_name``, and an optional string ``schema``, return column
        information as a list of dictionaries
        corresponding to the :class:`.ReflectedColumn` dictionary.
 
        This is an internal dialect method. Applications should use
        :meth:`.Inspector.get_columns`.
 
        Nr¦©rSr½rÂrÃrÄrIrIrJÚ get_columnsszDialect.get_columnszOptional[Collection[str]]z0Iterable[Tuple[TableKey, List[ReflectedColumn]]])r½rÃÚ filter_namesrÄrPcKs
tƒ‚dS)aªReturn information about columns in all tables in the
        given ``schema``.
 
        This is an internal dialect method. Applications should use
        :meth:`.Inspector.get_multi_columns`.
 
        .. note:: The :class:`_engine.DefaultDialect` provides a default
          implementation that will call the single table method for
          each object returned by :meth:`Dialect.get_table_names`,
          :meth:`Dialect.get_view_names` or
          :meth:`Dialect.get_materialized_view_names` depending on the
          provided ``kind``. Dialects that want to support a faster
          implementation should implement this method.
 
        .. versionadded:: 2.0
 
        Nr¦©rSr½rÃrÇrÄrIrIrJÚget_multi_columns2szDialect.get_multi_columnsršcKs
tƒ‚dS)aÂReturn information about the primary key constraint on
        table_name`.
 
        Given a :class:`_engine.Connection`, a string
        ``table_name``, and an optional string ``schema``, return primary
        key information as a dictionary corresponding to the
        :class:`.ReflectedPrimaryKeyConstraint` dictionary.
 
        This is an internal dialect method. Applications should use
        :meth:`.Inspector.get_pk_constraint`.
 
        Nr¦rÅrIrIrJÚget_pk_constraintMszDialect.get_pk_constraintz8Iterable[Tuple[TableKey, ReflectedPrimaryKeyConstraint]]cKs
tƒ‚dS)aÀReturn information about primary key constraints in
        all tables in the given ``schema``.
 
        This is an internal dialect method. Applications should use
        :meth:`.Inspector.get_multi_pk_constraint`.
 
        .. note:: The :class:`_engine.DefaultDialect` provides a default
          implementation that will call the single table method for
          each object returned by :meth:`Dialect.get_table_names`,
          :meth:`Dialect.get_view_names` or
          :meth:`Dialect.get_materialized_view_names` depending on the
          provided ``kind``. Dialects that want to support a faster
          implementation should implement this method.
 
        .. versionadded:: 2.0
 
        Nr¦rÈrIrIrJÚget_multi_pk_constraintbszDialect.get_multi_pk_constraintz#List[ReflectedForeignKeyConstraint]cKs
tƒ‚dS)a·Return information about foreign_keys in ``table_name``.
 
        Given a :class:`_engine.Connection`, a string
        ``table_name``, and an optional string ``schema``, return foreign
        key information as a list of dicts corresponding to the
        :class:`.ReflectedForeignKeyConstraint` dictionary.
 
        This is an internal dialect method. Applications should use
        :meth:`_engine.Inspector.get_foreign_keys`.
        Nr¦rÅrIrIrJÚget_foreign_keys|szDialect.get_foreign_keysz>Iterable[Tuple[TableKey, List[ReflectedForeignKeyConstraint]]]cKs
tƒ‚dS)a»Return information about foreign_keys in all tables
        in the given ``schema``.
 
        This is an internal dialect method. Applications should use
        :meth:`_engine.Inspector.get_multi_foreign_keys`.
 
        .. note:: The :class:`_engine.DefaultDialect` provides a default
          implementation that will call the single table method for
          each object returned by :meth:`Dialect.get_table_names`,
          :meth:`Dialect.get_view_names` or
          :meth:`Dialect.get_materialized_view_names` depending on the
          provided ``kind``. Dialects that want to support a faster
          implementation should implement this method.
 
        .. versionadded:: 2.0
 
        Nr¦rÈrIrIrJÚget_multi_foreign_keysszDialect.get_multi_foreign_keysr˜)r½rÃrÄrPcKs
tƒ‚dS)z®Return a list of table names for ``schema``.
 
        This is an internal dialect method. Applications should use
        :meth:`_engine.Inspector.get_table_names`.
 
        Nr¦©rSr½rÃrÄrIrIrJÚget_table_names«s
zDialect.get_table_namescKs
tƒ‚dS)zöReturn a list of temporary table names on the given connection,
        if supported by the underlying backend.
 
        This is an internal dialect method. Applications should use
        :meth:`_engine.Inspector.get_temp_table_names`.
 
        Nr¦rÎrIrIrJÚget_temp_table_names·s zDialect.get_temp_table_namescKs
tƒ‚dS)aReturn a list of all non-materialized view names available in the
        database.
 
        This is an internal dialect method. Applications should use
        :meth:`_engine.Inspector.get_view_names`.
 
        :param schema: schema name to query, if not the default schema.
 
        Nr¦rÎrIrIrJÚget_view_namesÄs zDialect.get_view_namescKs
tƒ‚dS)aFReturn a list of all materialized view names available in the
        database.
 
        This is an internal dialect method. Applications should use
        :meth:`_engine.Inspector.get_materialized_view_names`.
 
        :param schema: schema name to query, if not the default schema.
 
         .. versionadded:: 2.0
 
        Nr¦rÎrIrIrJÚget_materialized_view_namesÓsz#Dialect.get_materialized_view_namescKs
tƒ‚dS)a*Return a list of all sequence names available in the database.
 
        This is an internal dialect method. Applications should use
        :meth:`_engine.Inspector.get_sequence_names`.
 
        :param schema: schema name to query, if not the default schema.
 
        .. versionadded:: 1.4
        Nr¦rÎrIrIrJÚget_sequence_namesäs zDialect.get_sequence_namescKs
tƒ‚dS)zôReturn a list of temporary view names on the given connection,
        if supported by the underlying backend.
 
        This is an internal dialect method. Applications should use
        :meth:`_engine.Inspector.get_temp_view_names`.
 
        Nr¦rÎrIrIrJÚget_temp_view_namesós zDialect.get_temp_view_names)r½rÄrPcKs
tƒ‚dS)z¾Return a list of all schema names available in the database.
 
        This is an internal dialect method. Applications should use
        :meth:`_engine.Inspector.get_schema_names`.
        Nr¦)rSr½rÄrIrIrJÚget_schema_namesszDialect.get_schema_names)r½Ú    view_namerÃrÄrPcKs
tƒ‚dS)aGReturn plain or materialized view definition.
 
        This is an internal dialect method. Applications should use
        :meth:`_engine.Inspector.get_view_definition`.
 
        Given a :class:`_engine.Connection`, a string
        ``view_name``, and an optional string ``schema``, return the view
        definition.
        Nr¦)rSr½rÖrÃrÄrIrIrJÚget_view_definitionszDialect.get_view_definitionzList[ReflectedIndex]cKs
tƒ‚dS)a—Return information about indexes in ``table_name``.
 
        Given a :class:`_engine.Connection`, a string
        ``table_name`` and an optional string ``schema``, return index
        information as a list of dictionaries corresponding to the
        :class:`.ReflectedIndex` dictionary.
 
        This is an internal dialect method. Applications should use
        :meth:`.Inspector.get_indexes`.
        Nr¦rÅrIrIrJÚ get_indexesszDialect.get_indexesz/Iterable[Tuple[TableKey, List[ReflectedIndex]]]cKs
tƒ‚dS)a­Return information about indexes in in all tables
        in the given ``schema``.
 
        This is an internal dialect method. Applications should use
        :meth:`.Inspector.get_multi_indexes`.
 
        .. note:: The :class:`_engine.DefaultDialect` provides a default
          implementation that will call the single table method for
          each object returned by :meth:`Dialect.get_table_names`,
          :meth:`Dialect.get_view_names` or
          :meth:`Dialect.get_materialized_view_names` depending on the
          provided ``kind``. Dialects that want to support a faster
          implementation should implement this method.
 
        .. versionadded:: 2.0
 
        Nr¦rÈrIrIrJÚget_multi_indexes/szDialect.get_multi_indexeszList[ReflectedUniqueConstraint]cKs
tƒ‚dS)a–Return information about unique constraints in ``table_name``.
 
        Given a string ``table_name`` and an optional string ``schema``, return
        unique constraint information as a list of dicts corresponding
        to the :class:`.ReflectedUniqueConstraint` dictionary.
 
        This is an internal dialect method. Applications should use
        :meth:`.Inspector.get_unique_constraints`.
        Nr¦rÅrIrIrJÚget_unique_constraintsJszDialect.get_unique_constraintsz:Iterable[Tuple[TableKey, List[ReflectedUniqueConstraint]]]cKs
tƒ‚dS)aÀReturn information about unique constraints in all tables
        in the given ``schema``.
 
        This is an internal dialect method. Applications should use
        :meth:`.Inspector.get_multi_unique_constraints`.
 
        .. note:: The :class:`_engine.DefaultDialect` provides a default
          implementation that will call the single table method for
          each object returned by :meth:`Dialect.get_table_names`,
          :meth:`Dialect.get_view_names` or
          :meth:`Dialect.get_materialized_view_names` depending on the
          provided ``kind``. Dialects that want to support a faster
          implementation should implement this method.
 
        .. versionadded:: 2.0
 
        Nr¦rÈrIrIrJÚget_multi_unique_constraints]sz$Dialect.get_multi_unique_constraintszList[ReflectedCheckConstraint]cKs
tƒ‚dS)a“Return information about check constraints in ``table_name``.
 
        Given a string ``table_name`` and an optional string ``schema``, return
        check constraint information as a list of dicts corresponding
        to the :class:`.ReflectedCheckConstraint` dictionary.
 
        This is an internal dialect method. Applications should use
        :meth:`.Inspector.get_check_constraints`.
 
        Nr¦rÅrIrIrJÚget_check_constraintsxszDialect.get_check_constraintsz9Iterable[Tuple[TableKey, List[ReflectedCheckConstraint]]]cKs
tƒ‚dS)a¾Return information about check constraints in all tables
        in the given ``schema``.
 
        This is an internal dialect method. Applications should use
        :meth:`.Inspector.get_multi_check_constraints`.
 
        .. note:: The :class:`_engine.DefaultDialect` provides a default
          implementation that will call the single table method for
          each object returned by :meth:`Dialect.get_table_names`,
          :meth:`Dialect.get_view_names` or
          :meth:`Dialect.get_materialized_view_names` depending on the
          provided ``kind``. Dialects that want to support a faster
          implementation should implement this method.
 
        .. versionadded:: 2.0
 
        Nr¦rÈrIrIrJÚget_multi_check_constraintsŒsz#Dialect.get_multi_check_constraintsúDict[str, Any]cKs
tƒ‚dS)zÔReturn a dictionary of options specified when ``table_name``
        was created.
 
        This is an internal dialect method. Applications should use
        :meth:`_engine.Inspector.get_table_options`.
        Nr¦rÅrIrIrJÚget_table_options§s zDialect.get_table_optionsz)Iterable[Tuple[TableKey, Dict[str, Any]]]cKs
tƒ‚dS)aÊReturn a dictionary of options specified when the tables in the
        given schema were created.
 
        This is an internal dialect method. Applications should use
        :meth:`_engine.Inspector.get_multi_table_options`.
 
        .. note:: The :class:`_engine.DefaultDialect` provides a default
          implementation that will call the single table method for
          each object returned by :meth:`Dialect.get_table_names`,
          :meth:`Dialect.get_view_names` or
          :meth:`Dialect.get_materialized_view_names` depending on the
          provided ``kind``. Dialects that want to support a faster
          implementation should implement this method.
 
        .. versionadded:: 2.0
 
        Nr¦rÈrIrIrJÚget_multi_table_options¶szDialect.get_multi_table_optionsr cKs
tƒ‚dS)aReturn the "comment" for the table identified by ``table_name``.
 
        Given a string ``table_name`` and an optional string ``schema``, return
        table comment information as a dictionary corresponding to the
        :class:`.ReflectedTableComment` dictionary.
 
        This is an internal dialect method. Applications should use
        :meth:`.Inspector.get_table_comment`.
 
        :raise: ``NotImplementedError`` for dialects that don't support
         comments.
 
        .. versionadded:: 1.2
 
        Nr¦rÅrIrIrJÚget_table_commentÐszDialect.get_table_commentz0Iterable[Tuple[TableKey, ReflectedTableComment]]cKs
tƒ‚dS)aÁReturn information about the table comment in all tables
        in the given ``schema``.
 
        This is an internal dialect method. Applications should use
        :meth:`_engine.Inspector.get_multi_table_comment`.
 
        .. note:: The :class:`_engine.DefaultDialect` provides a default
          implementation that will call the single table method for
          each object returned by :meth:`Dialect.get_table_names`,
          :meth:`Dialect.get_view_names` or
          :meth:`Dialect.get_materialized_view_names` depending on the
          provided ``kind``. Dialects that want to support a faster
          implementation should implement this method.
 
        .. versionadded:: 2.0
 
        Nr¦rÈrIrIrJÚget_multi_table_commentészDialect.get_multi_table_comment)rŒrPcCs
tƒ‚dS)z»convert the given name to lowercase if it is detected as
        case insensitive.
 
        This method is only used if the dialect defines
        requires_name_normalize=True.
 
        Nr¦©rSrŒrIrIrJÚnormalize_nameszDialect.normalize_namecCs
tƒ‚dS)zØconvert the given name to a case insensitive identifier
        for the backend if it is an all-lowercase name.
 
        This method is only used if the dialect defines
        requires_name_normalize=True.
 
        Nr¦rãrIrIrJÚdenormalize_nameszDialect.denormalize_namecKs
tƒ‚dS)aFor internal dialect use, check the existence of a particular table
        or view in the database.
 
        Given a :class:`_engine.Connection` object, a string table_name and
        optional schema name, return True if the given table exists in the
        database, False otherwise.
 
        This method serves as the underlying implementation of the
        public facing :meth:`.Inspector.has_table` method, and is also used
        internally to implement the "checkfirst" behavior for methods like
        :meth:`_schema.Table.create` and :meth:`_schema.MetaData.create_all`.
 
        .. note:: This method is used internally by SQLAlchemy, and is
           published so that third-party dialects may provide an
           implementation. It is **not** the public API for checking for table
           presence. Please use the :meth:`.Inspector.has_table` method.
 
        .. versionchanged:: 2.0:: :meth:`_engine.Dialect.has_table` now
           formally supports checking for additional table-like objects:
 
           * any type of views (plain or materialized)
           * temporary tables of any kind
 
           Previously, these two checks were not formally specified and
           different dialects would vary in their behavior.   The dialect
           testing suite now includes tests for all of these object types,
           and dialects to the degree that the backing database supports views
           or temporary tables should seek to support locating these objects
           for full compliance.
 
        Nr¦rÅrIrIrJÚ    has_tables'zDialect.has_table)r½rÂÚ
index_namerÃrÄrPcKs
tƒ‚dS)aCheck the existence of a particular index name in the database.
 
        Given a :class:`_engine.Connection` object, a string
        ``table_name`` and string index name, return ``True`` if an index of
        the given name on the given table exists, ``False`` otherwise.
 
        The :class:`.DefaultDialect` implements this in terms of the
        :meth:`.Dialect.has_table` and :meth:`.Dialect.get_indexes` methods,
        however dialects can implement a more performant version.
 
        This is an internal dialect method. Applications should use
        :meth:`_engine.Inspector.has_index`.
 
        .. versionadded:: 1.4
 
        Nr¦)rSr½rÂrçrÃrÄrIrIrJÚ    has_indexAszDialect.has_index)r½Ú sequence_namerÃrÄrPcKs
tƒ‚dS)apCheck the existence of a particular sequence in the database.
 
        Given a :class:`_engine.Connection` object and a string
        `sequence_name`, return ``True`` if the given sequence exists in
        the database, ``False`` otherwise.
 
        This is an internal dialect method. Applications should use
        :meth:`_engine.Inspector.has_sequence`.
        Nr¦)rSr½rérÃrÄrIrIrJÚ has_sequence\szDialect.has_sequence)r½Ú schema_namerÄrPcKs
tƒ‚dS)avCheck the existence of a particular schema name in the database.
 
        Given a :class:`_engine.Connection` object, a string
        ``schema_name``, return ``True`` if a schema of the
        given exists, ``False`` otherwise.
 
        The :class:`.DefaultDialect` implements this by checking
        the presence of ``schema_name`` among the schemas returned by
        :meth:`.Dialect.get_schema_names`,
        however dialects can implement a more performant version.
 
        This is an internal dialect method. Applications should use
        :meth:`_engine.Inspector.has_schema`.
 
        .. versionadded:: 2.0
 
        Nr¦)rSr½rërÄrIrIrJÚ
has_schemaoszDialect.has_schemacCs
tƒ‚dS)zèRetrieve the server version info from the given connection.
 
        This is used by the default implementation to populate the
        "server_version_info" attribute and is called exactly
        once upon first connect.
 
        Nr¦r¾rIrIrJÚ_get_server_version_info†s    z Dialect._get_server_version_infocCs
tƒ‚dS)aReturn the string name of the currently selected schema from
        the given connection.
 
        This is used by the default implementation to populate the
        "default_schema_name" attribute and is called exactly
        once upon first connect.
 
        Nr¦r¾rIrIrJÚ_get_default_schema_name‘s
z Dialect._get_default_schema_namer)Údbapi_connectionrPcCs
tƒ‚dS)a¢Provide an implementation of ``connection.begin()``, given a
        DB-API connection.
 
        The DBAPI has no dedicated "begin" method and it is expected
        that transactions are implicit.  This hook is provided for those
        DBAPIs that might need additional help in this area.
 
        :param dbapi_connection: a DBAPI connection, typically
         proxied within a :class:`.ConnectionFairy`.
 
        Nr¦©rSrïrIrIrJÚdo_begins zDialect.do_begincCs
tƒ‚dS)zÙProvide an implementation of ``connection.rollback()``, given
        a DB-API connection.
 
        :param dbapi_connection: a DBAPI connection, typically
         proxied within a :class:`.ConnectionFairy`.
 
        Nr¦rðrIrIrJÚ do_rollback¬s    zDialect.do_rollbackcCs
tƒ‚dS)z×Provide an implementation of ``connection.commit()``, given a
        DB-API connection.
 
        :param dbapi_connection: a DBAPI connection, typically
         proxied within a :class:`.ConnectionFairy`.
 
        Nr¦rðrIrIrJÚ    do_commit·s    zDialect.do_commitrMcCs
tƒ‚dS)aÄProvide an implementation of ``connection.close()`` that tries as
        much as possible to not block, given a DBAPI
        connection.
 
        In the vast majority of cases this just calls .close(), however
        for some asyncio dialects may call upon different API features.
 
        This hook is called by the :class:`_pool.Pool`
        when a connection is being recycled or has been invalidated.
 
        .. versionadded:: 1.4.41
 
        Nr¦rðrIrIrJÚ do_terminateÂszDialect.do_terminatecCs
tƒ‚dS)a Provide an implementation of ``connection.close()``, given a DBAPI
        connection.
 
        This hook is called by the :class:`_pool.Pool`
        when a connection has been
        detached from the pool, or is being returned beyond the normal
        capacity of the pool.
 
        Nr¦rðrIrIrJÚdo_closeÓs zDialect.do_closecCs
tƒ‚dSrQr¦rðrIrIrJÚ_do_ping_w_eventàszDialect._do_ping_w_eventcCs
tƒ‚dS)zNping the DBAPI connection and return True if the connection is
        usable.Nr¦rðrIrIrJÚdo_pingãszDialect.do_pingrVÚ_GenericSetInputSizesTypeÚExecutionContext)rWÚlist_of_tuplesÚcontextrPcCs
tƒ‚dS)aJinvoke the cursor.setinputsizes() method with appropriate arguments
 
        This hook is called if the :attr:`.Dialect.bind_typing` attribute is
        set to the
        :attr:`.BindTyping.SETINPUTSIZES` value.
        Parameter data is passed in a list of tuples (paramname, dbtype,
        sqltype), where ``paramname`` is the key of the parameter in the
        statement, ``dbtype`` is the DBAPI datatype and ``sqltype`` is the
        SQLAlchemy type. The order of tuples is in the correct parameter order.
 
        .. versionadded:: 1.4
 
        .. versionchanged:: 2.0  - setinputsizes mode is now enabled by
           setting :attr:`.Dialect.bind_typing` to
           :attr:`.BindTyping.SETINPUTSIZES`.  Dialects which accept
           a ``use_setinputsizes`` parameter should set this value
           appropriately.
 
 
        Nr¦)rSrWrúrûrIrIrJÚdo_set_input_sizesèszDialect.do_set_input_sizescCs
tƒ‚dS)z½Create a two-phase transaction ID.
 
        This id will be passed to do_begin_twophase(),
        do_rollback_twophase(), do_commit_twophase().  Its format is
        unspecified.
        Nr¦rRrIrIrJÚ
create_xidszDialect.create_xid)r½rŒrPcCs
tƒ‚dS)z‘Create a savepoint with the given name.
 
        :param connection: a :class:`_engine.Connection`.
        :param name: savepoint name.
 
        Nr¦©rSr½rŒrIrIrJÚ do_savepointszDialect.do_savepointcCs
tƒ‚dS)z—Rollback a connection to the named savepoint.
 
        :param connection: a :class:`_engine.Connection`.
        :param name: savepoint name.
 
        Nr¦rþrIrIrJÚdo_rollback_to_savepoints
z Dialect.do_rollback_to_savepointcCs
tƒ‚dS)z•Release the named savepoint on a connection.
 
        :param connection: a :class:`_engine.Connection`.
        :param name: savepoint name.
        Nr¦rþrIrIrJÚdo_release_savepoint$szDialect.do_release_savepoint)r½ÚxidrPcCs
tƒ‚dS)z“Begin a two phase transaction on the given connection.
 
        :param connection: a :class:`_engine.Connection`.
        :param xid: xid
 
        Nr¦©rSr½rrIrIrJÚdo_begin_twophase-szDialect.do_begin_twophasecCs
tƒ‚dS)z•Prepare a two phase transaction on the given connection.
 
        :param connection: a :class:`_engine.Connection`.
        :param xid: xid
 
        Nr¦rrIrIrJÚdo_prepare_twophase7szDialect.do_prepare_twophase)r½rÚ is_preparedÚrecoverrPcCs
tƒ‚dS)a3Rollback a two phase transaction on the given connection.
 
        :param connection: a :class:`_engine.Connection`.
        :param xid: xid
        :param is_prepared: whether or not
         :meth:`.TwoPhaseTransaction.prepare` was called.
        :param recover: if the recover flag was passed.
 
        Nr¦©rSr½rrrrIrIrJÚdo_rollback_twophaseAszDialect.do_rollback_twophasecCs
tƒ‚dS)a2Commit a two phase transaction on the given connection.
 
 
        :param connection: a :class:`_engine.Connection`.
        :param xid: xid
        :param is_prepared: whether or not
         :meth:`.TwoPhaseTransaction.prepare` was called.
        :param recover: if the recover flag was passed.
 
        Nr¦rrIrIrJÚdo_commit_twophaseTszDialect.do_commit_twophasez    List[Any]cCs
tƒ‚dS)z¬Recover list of uncommitted prepared two phase transaction
        identifiers on the given connection.
 
        :param connection: a :class:`_engine.Connection`.
 
        Nr¦r¾rIrIrJÚdo_recover_twophasehszDialect.do_recover_twophaseÚ_DBAPIMultiExecuteParamsz#Optional[_GenericSetInputSizesType]z Iterator[_InsertManyValuesBatch])rWÚ    statementrbÚgeneric_setinputsizesrûrPcCs
tƒ‚dS)z¡convert executemany parameters for an INSERT into an iterator
        of statement/single execute values, used by the insertmanyvalues
        feature.
 
        Nr¦)rSrWr rbrrûrIrIrJÚ!_deliver_insertmanyvalues_batchesrs z)Dialect._deliver_insertmanyvalues_batchesúOptional[ExecutionContext])rWr rbrûrPcCs
tƒ‚dS)zSProvide an implementation of ``cursor.executemany(statement,
        parameters)``.Nr¦©rSrWr rbrûrIrIrJÚdo_executemanys
zDialect.do_executemanyr`cCs
tƒ‚dS)zOProvide an implementation of ``cursor.execute(statement,
        parameters)``.Nr¦rrIrIrJÚ
do_executes
zDialect.do_execute)rWr rûrPcCs
tƒ‚dS)z{Provide an implementation of ``cursor.execute(statement)``.
 
        The parameter collection should not be sent.
 
        Nr¦)rSrWr rûrIrIrJÚdo_execute_no_params™s zDialect.do_execute_no_paramsÚ    Exceptionz7Optional[Union[PoolProxiedConnection, DBAPIConnection]]úOptional[DBAPICursor])Úer½rWrPcCs
tƒ‚dS)zMReturn True if the given DB-API error indicates an invalid
        connectionNr¦)rSrr½rWrIrIrJÚ is_disconnect§s    zDialect.is_disconnect)ÚcargsÚcparamsrPcOs
tƒ‚dS)aìEstablish a connection using this dialect's DBAPI.
 
        The default implementation of this method is::
 
            def connect(self, *cargs, **cparams):
                return self.dbapi.connect(*cargs, **cparams)
 
        The ``*cargs, **cparams`` parameters are generated directly
        from this dialect's :meth:`.Dialect.create_connect_args` method.
 
        This method may be used for dialects that need to perform programmatic
        per-connection steps when a new connection is procured from the
        DBAPI.
 
 
        :param \*cargs: positional parameters returned from the
         :meth:`.Dialect.create_connect_args` method
 
        :param \*\*cparams: keyword parameters returned from the
         :meth:`.Dialect.create_connect_args` method.
 
        :return: a DBAPI connection, typically from the :pep:`249` module
         level ``.connect()`` function.
 
        .. seealso::
 
            :meth:`.Dialect.create_connect_args`
 
            :meth:`.Dialect.on_connect`
 
        Nr¦)rSrrrIrIrJÚconnect²s zDialect.connectzOptional[Callable[[Any], Any]]cCs| ¡S)a&    return a callable which sets up a newly created DBAPI connection.
 
        This method is a new hook that supersedes the
        :meth:`_engine.Dialect.on_connect` method when implemented by a
        dialect.   When not implemented by a dialect, it invokes the
        :meth:`_engine.Dialect.on_connect` method directly to maintain
        compatibility with existing dialects.   There is no deprecation
        for :meth:`_engine.Dialect.on_connect` expected.
 
        The callable should accept a single argument "conn" which is the
        DBAPI connection itself.  The inner callable has no
        return value.
 
        E.g.::
 
            class MyDialect(default.DefaultDialect):
                # ...
 
                def on_connect_url(self, url):
                    def do_on_connect(connection):
                        connection.execute("SET SPECIAL FLAGS etc")
 
                    return do_on_connect
 
        This is used to set dialect-wide per-connection options such as
        isolation modes, Unicode modes, etc.
 
        This method differs from :meth:`_engine.Dialect.on_connect` in that
        it is passed the :class:`_engine.URL` object that's relevant to the
        connect args.  Normally the only way to get this is from the
        :meth:`_engine.Dialect.on_connect` hook is to look on the
        :class:`_engine.Engine` itself, however this URL object may have been
        replaced by plugins.
 
        .. note::
 
            The default implementation of
            :meth:`_engine.Dialect.on_connect_url` is to invoke the
            :meth:`_engine.Dialect.on_connect` method. Therefore if a dialect
            implements this method, the :meth:`_engine.Dialect.on_connect`
            method **will not be called** unless the overriding dialect calls
            it directly from here.
 
        .. versionadded:: 1.4.3 added :meth:`_engine.Dialect.on_connect_url`
           which normally calls into :meth:`_engine.Dialect.on_connect`.
 
        :param url: a :class:`_engine.URL` object representing the
         :class:`_engine.URL` that was passed to the
         :meth:`_engine.Dialect.create_connect_args` method.
 
        :return: a callable that accepts a single DBAPI connection as an
         argument, or None.
 
        .. seealso::
 
            :meth:`_engine.Dialect.on_connect`
 
        )Ú
on_connectr¶rIrIrJÚon_connect_urlÔs;zDialect.on_connect_urlcCsdS)areturn a callable which sets up a newly created DBAPI connection.
 
        The callable should accept a single argument "conn" which is the
        DBAPI connection itself.  The inner callable has no
        return value.
 
        E.g.::
 
            class MyDialect(default.DefaultDialect):
                # ...
 
                def on_connect(self):
                    def do_on_connect(connection):
                        connection.execute("SET SPECIAL FLAGS etc")
 
                    return do_on_connect
 
        This is used to set dialect-wide per-connection options such as
        isolation modes, Unicode modes, etc.
 
        The "do_on_connect" callable is invoked by using the
        :meth:`_events.PoolEvents.connect` event
        hook, then unwrapping the DBAPI connection and passing it into the
        callable.
 
        .. versionchanged:: 1.4 the on_connect hook is no longer called twice
           for the first connection of a dialect.  The on_connect hook is still
           called before the :meth:`_engine.Dialect.initialize` method however.
 
        .. versionchanged:: 1.4.3 the on_connect hook is invoked from a new
           method on_connect_url that passes the URL that was used to create
           the connect args.   Dialects can implement on_connect_url instead
           of on_connect if they need the URL object that was used for the
           connection in order to get additional context.
 
        If None is returned, no event listener is generated.
 
        :return: a callable that accepts a single DBAPI connection as an
         argument, or None.
 
        .. seealso::
 
            :meth:`.Dialect.connect` - allows the DBAPI ``connect()`` sequence
            itself to be controlled.
 
            :meth:`.Dialect.on_connect_url` - supersedes
            :meth:`.Dialect.on_connect` to also receive the
            :class:`_engine.URL` object in context.
 
        NrIrRrIrIrJr    s3zDialect.on_connectcCs
tƒ‚dS)a2Given a DBAPI connection, revert its isolation to the default.
 
        Note that this is a dialect-level method which is used as part
        of the implementation of the :class:`_engine.Connection` and
        :class:`_engine.Engine`
        isolation level facilities; these APIs should be preferred for
        most typical use cases.
 
        .. seealso::
 
            :meth:`_engine.Connection.get_isolation_level`
            - view current level
 
            :attr:`_engine.Connection.default_isolation_level`
            - view default level
 
            :paramref:`.Connection.execution_options.isolation_level` -
            set per :class:`_engine.Connection` isolation level
 
            :paramref:`_sa.create_engine.isolation_level` -
            set per :class:`_engine.Engine` isolation level
 
        Nr¦rðrIrIrJÚreset_isolation_levelF    szDialect.reset_isolation_levelr{)rïÚlevelrPcCs
tƒ‚dS)a2Given a DBAPI connection, set its isolation level.
 
        Note that this is a dialect-level method which is used as part
        of the implementation of the :class:`_engine.Connection` and
        :class:`_engine.Engine`
        isolation level facilities; these APIs should be preferred for
        most typical use cases.
 
        If the dialect also implements the
        :meth:`.Dialect.get_isolation_level_values` method, then the given
        level is guaranteed to be one of the string names within that sequence,
        and the method will not need to anticipate a lookup failure.
 
        .. seealso::
 
            :meth:`_engine.Connection.get_isolation_level`
            - view current level
 
            :attr:`_engine.Connection.default_isolation_level`
            - view default level
 
            :paramref:`.Connection.execution_options.isolation_level` -
            set per :class:`_engine.Connection` isolation level
 
            :paramref:`_sa.create_engine.isolation_level` -
            set per :class:`_engine.Engine` isolation level
 
        Nr¦)rSrïrrIrIrJÚset_isolation_levela    s zDialect.set_isolation_levelcCs
tƒ‚dS)aéGiven a DBAPI connection, return its isolation level.
 
        When working with a :class:`_engine.Connection` object,
        the corresponding
        DBAPI connection may be procured using the
        :attr:`_engine.Connection.connection` accessor.
 
        Note that this is a dialect-level method which is used as part
        of the implementation of the :class:`_engine.Connection` and
        :class:`_engine.Engine` isolation level facilities;
        these APIs should be preferred for most typical use cases.
 
 
        .. seealso::
 
            :meth:`_engine.Connection.get_isolation_level`
            - view current level
 
            :attr:`_engine.Connection.default_isolation_level`
            - view default level
 
            :paramref:`.Connection.execution_options.isolation_level` -
            set per :class:`_engine.Connection` isolation level
 
            :paramref:`_sa.create_engine.isolation_level` -
            set per :class:`_engine.Engine` isolation level
 
 
        Nr¦rðrIrIrJÚget_isolation_levelƒ    s!zDialect.get_isolation_level)Ú
dbapi_connrPcCs
tƒ‚dS)a˜Given a DBAPI connection, return its isolation level, or
        a default isolation level if one cannot be retrieved.
 
        This method may only raise NotImplementedError and
        **must not raise any other exception**, as it is used implicitly upon
        first connect.
 
        The method **must return a value** for a dialect that supports
        isolation level settings, as this level is what will be reverted
        towards when a per-connection isolation level change is made.
 
        The method defaults to using the :meth:`.Dialect.get_isolation_level`
        method unless overridden by a dialect.
 
        .. versionadded:: 1.3.22
 
        Nr¦©rSr"rIrIrJÚget_default_isolation_level¦    sz#Dialect.get_default_isolation_levelzList[IsolationLevel]cCs
tƒ‚dS)areturn a sequence of string isolation level names that are accepted
        by this dialect.
 
        The available names should use the following conventions:
 
        * use UPPERCASE names.   isolation level methods will accept lowercase
          names but these are normalized into UPPERCASE before being passed
          along to the dialect.
        * separate words should be separated by spaces, not underscores, e.g.
          ``REPEATABLE READ``.  isolation level names will have underscores
          converted to spaces before being passed along to the dialect.
        * The names for the four standard isolation names to the extent that
          they are supported by the backend should be ``READ UNCOMMITTED``
          ``READ COMMITTED``, ``REPEATABLE READ``, ``SERIALIZABLE``
        * if the dialect supports an autocommit option it should be provided
          using the isolation level name ``AUTOCOMMIT``.
        * Other isolation modes may also be present, provided that they
          are named in UPPERCASE and use spaces not underscores.
 
        This function is used so that the default dialect can check that
        a given isolation level parameter is valid, else raises an
        :class:`_exc.ArgumentError`.
 
        A DBAPI connection is passed to the method, in the unlikely event that
        the dialect needs to interrogate the connection itself to determine
        this list, however it is expected that most backends will return
        a hardcoded list of values.  If the dialect supports "AUTOCOMMIT",
        that value should also be present in the sequence returned.
 
        The method raises ``NotImplementedError`` by default.  If a dialect
        does not implement this method, then the default dialect will not
        perform any checking on a given isolation level value before passing
        it onto the :meth:`.Dialect.set_isolation_level` method.  This is
        to allow backwards-compatibility with third party dialects that may
        not yet be implementing this method.
 
        .. versionadded:: 2.0
 
        Nr¦r#rIrIrJÚget_isolation_level_values¼    s*z"Dialect.get_isolation_level_values)r"rrPcCs
tƒ‚dSrQr¦)rSr"rrIrIrJÚ_assert_and_set_isolation_levelè    sz'Dialect._assert_and_set_isolation_levelú Type[Dialect]cCs|S)a}Given a URL, return the :class:`.Dialect` that will be used.
 
        This is a hook that allows an external plugin to provide functionality
        around an existing dialect, by allowing the plugin to be loaded
        from the url based on an entrypoint, and then the plugin returns
        the actual dialect to be used.
 
        By default this just returns the cls.
 
        rI©r¹rµrIrIrJÚget_dialect_clsí    s zDialect.get_dialect_clscCs
| |¡S)a²Given a URL, return the :class:`.Dialect` that will be used by
        an async engine.
 
        By default this is an alias of :meth:`.Dialect.get_dialect_cls` and
        just returns the cls. It may be used if a dialect provides
        both a sync and async version under the same name, like the
        ``psycopg`` driver.
 
        .. versionadded:: 2
 
        .. seealso::
 
            :meth:`.Dialect.get_dialect_cls`
 
        )r)r(rIrIrJÚget_async_dialect_clsû    szDialect.get_async_dialect_clscCsdS)aJset up the provision.py module for this dialect.
 
        For dialects that include a provision.py module that sets up
        provisioning followers, this method should initiate that process.
 
        A typical implementation would be::
 
            @classmethod
            def load_provisioning(cls):
                __import__("mydialect.provision")
 
        The default method assumes a module named ``provision.py`` inside
        the owning package of the current dialect, based on the ``__module__``
        attribute::
 
            @classmethod
            def load_provisioning(cls):
                package = ".".join(cls.__module__.split(".")[0:-1])
                try:
                    __import__(package + ".provision")
                except ImportError:
                    pass
 
        .. versionadded:: 1.3.14
 
        NrIr¸rIrIrJÚload_provisioning
szDialect.load_provisioningr'©ÚenginerPcCsdS)a_A convenience hook called before returning the final
        :class:`_engine.Engine`.
 
        If the dialect returned a different class from the
        :meth:`.get_dialect_cls`
        method, then the hook is called on both classes, first on
        the dialect class returned by the :meth:`.get_dialect_cls` method and
        then on the class on which the method was called.
 
        The hook should be used by dialects and/or wrappers to apply special
        events to the engine or its components.   In particular, it allows
        a dialect-wrapping class to apply dialect-level events.
 
        NrI)r¹r-rIrIrJÚengine_created+
szDialect.engine_createdcCs
tƒ‚dS)aÎReturns the connection object as returned by the external driver
        package.
 
        For normal dialects that use a DBAPI compliant driver this call
        will just return the ``connection`` passed as argument.
        For dialects that instead adapt a non DBAPI compliant driver, like
        when adapting an asyncio driver, this call will return the
        connection-like object as returned by the driver.
 
        .. versionadded:: 1.4.24
 
        Nr¦r¾rIrIrJÚget_driver_connection<
s zDialect.get_driver_connectionÚCoreExecuteOptionsParameter)r-ÚoptsrPcCs
tƒ‚dS)aaEstablish execution options for a given engine.
 
        This is implemented by :class:`.DefaultDialect` to establish
        event hooks for new :class:`.Connection` instances created
        by the given :class:`.Engine` which will then invoke the
        :meth:`.Dialect.set_connection_execution_options` method for that
        connection.
 
        Nr¦)rSr-r1rIrIrJÚset_engine_execution_optionsK
s z$Dialect.set_engine_execution_options)r½r1rPcCs
tƒ‚dS)aEstablish execution options for a given connection.
 
        This is implemented by :class:`.DefaultDialect` in order to implement
        the :paramref:`_engine.Connection.execution_options.isolation_level`
        execution option.  Dialects can intercept various execution options
        which may need to modify state on a particular DBAPI connection.
 
        .. versionadded:: 1.4
 
        Nr¦)rSr½r1rIrIrJÚ set_connection_execution_optionsY
s z(Dialect.set_connection_execution_optionsú
Type[Pool]cCs
tƒ‚dS)z*return a Pool class to use for a given URLNr¦r¶rIrIrJÚget_dialect_pool_classh
szDialect.get_dialect_pool_class)N)NN)N)NN)N)NN)N)N)N)N)N)N)N)N)NN)N)NN)N)NN)N)NN)N)NN)N)N)N)TF)TF)N)N)N)grArBrCrLr>rDrErFrGrHrZrZnon_memoized_propertyr¨r¬r­r¯Ú
EMPTY_DICTr°Z _has_eventsr±r¢r£Z bind_typingr²r·Ú classmethodrºr¼r¿rrÁrÆrÉrÊrËrÌrÍrÏrÐrÑrÒrÓrÔrÕr×rØrÙrÚrÛrÜrÝrßràrárârärårærèrêrìrírîrñròrórôrõrör÷rürýrÿrrrrr    r
r rrrrrrrrrr r!r$r%r&r)r*r+r.r/r2r3r5rIrIrIrJr¤€s¬
        
 
    
%          
!üüüüüüÿ ÿÿÿÿÿ  üüüüüüüüüüü
ü.ûü     
 
     
ûû
$û"û"ü  "=5"#, r¤c@sdeZdZdZdddœdd„Zdddœdd    „Zd
dd d œd d„Zddd dœdd„Zdd dœdd„ZdS)ÚCreateEnginePlugina A set of hooks intended to augment the construction of an
    :class:`_engine.Engine` object based on entrypoint names in a URL.
 
    The purpose of :class:`_engine.CreateEnginePlugin` is to allow third-party
    systems to apply engine, pool and dialect level event listeners without
    the need for the target application to be modified; instead, the plugin
    names can be added to the database URL.  Target applications for
    :class:`_engine.CreateEnginePlugin` include:
 
    * connection and SQL performance tools, e.g. which use events to track
      number of checkouts and/or time spent with statements
 
    * connectivity plugins such as proxies
 
    A rudimentary :class:`_engine.CreateEnginePlugin` that attaches a logger
    to an :class:`_engine.Engine` object might look like::
 
 
        import logging
 
        from sqlalchemy.engine import CreateEnginePlugin
        from sqlalchemy import event
 
        class LogCursorEventsPlugin(CreateEnginePlugin):
            def __init__(self, url, kwargs):
                # consume the parameter "log_cursor_logging_name" from the
                # URL query
                logging_name = url.query.get("log_cursor_logging_name", "log_cursor")
 
                self.log = logging.getLogger(logging_name)
 
            def update_url(self, url):
                "update the URL to one that no longer includes our parameters"
                return url.difference_update_query(["log_cursor_logging_name"])
 
            def engine_created(self, engine):
                "attach an event listener after the new Engine is constructed"
                event.listen(engine, "before_cursor_execute", self._log_event)
 
 
            def _log_event(
                self,
                conn,
                cursor,
                statement,
                parameters,
                context,
                executemany):
 
                self.log.info("Plugin logged cursor event: %s", statement)
 
 
 
    Plugins are registered using entry points in a similar way as that
    of dialects::
 
        entry_points={
            'sqlalchemy.plugins': [
                'log_cursor_plugin = myapp.plugins:LogCursorEventsPlugin'
            ]
 
    A plugin that uses the above names would be invoked from a database
    URL as in::
 
        from sqlalchemy import create_engine
 
        engine = create_engine(
            "mysql+pymysql://scott:tiger@localhost/test?"
            "plugin=log_cursor_plugin&log_cursor_logging_name=mylogger"
        )
 
    The ``plugin`` URL parameter supports multiple instances, so that a URL
    may specify multiple plugins; they are loaded in the order stated
    in the URL::
 
        engine = create_engine(
          "mysql+pymysql://scott:tiger@localhost/test?"
          "plugin=plugin_one&plugin=plugin_twp&plugin=plugin_three")
 
    The plugin names may also be passed directly to :func:`_sa.create_engine`
    using the :paramref:`_sa.create_engine.plugins` argument::
 
        engine = create_engine(
          "mysql+pymysql://scott:tiger@localhost/test",
          plugins=["myplugin"])
 
    .. versionadded:: 1.2.3  plugin names can also be specified
       to :func:`_sa.create_engine` as a list
 
    A plugin may consume plugin-specific arguments from the
    :class:`_engine.URL` object as well as the ``kwargs`` dictionary, which is
    the dictionary of arguments passed to the :func:`_sa.create_engine`
    call.  "Consuming" these arguments includes that they must be removed
    when the plugin initializes, so that the arguments are not passed along
    to the :class:`_engine.Dialect` constructor, where they will raise an
    :class:`_exc.ArgumentError` because they are not known by the dialect.
 
    As of version 1.4 of SQLAlchemy, arguments should continue to be consumed
    from the ``kwargs`` dictionary directly, by removing the values with a
    method such as ``dict.pop``. Arguments from the :class:`_engine.URL` object
    should be consumed by implementing the
    :meth:`_engine.CreateEnginePlugin.update_url` method, returning a new copy
    of the :class:`_engine.URL` with plugin-specific parameters removed::
 
        class MyPlugin(CreateEnginePlugin):
            def __init__(self, url, kwargs):
                self.my_argument_one = url.query['my_argument_one']
                self.my_argument_two = url.query['my_argument_two']
                self.my_argument_three = kwargs.pop('my_argument_three', None)
 
            def update_url(self, url):
                return url.difference_update_query(
                    ["my_argument_one", "my_argument_two"]
                )
 
    Arguments like those illustrated above would be consumed from a
    :func:`_sa.create_engine` call such as::
 
        from sqlalchemy import create_engine
 
        engine = create_engine(
          "mysql+pymysql://scott:tiger@localhost/test?"
          "plugin=myplugin&my_argument_one=foo&my_argument_two=bar",
          my_argument_three='bat'
        )
 
    .. versionchanged:: 1.4
 
        The :class:`_engine.URL` object is now immutable; a
        :class:`_engine.CreateEnginePlugin` that needs to alter the
        :class:`_engine.URL` should implement the newly added
        :meth:`_engine.CreateEnginePlugin.update_url` method, which
        is invoked after the plugin is constructed.
 
        For migration, construct the plugin in the following way, checking
        for the existence of the :meth:`_engine.CreateEnginePlugin.update_url`
        method to detect which version is running::
 
            class MyPlugin(CreateEnginePlugin):
                def __init__(self, url, kwargs):
                    if hasattr(CreateEnginePlugin, "update_url"):
                        # detect the 1.4 API
                        self.my_argument_one = url.query['my_argument_one']
                        self.my_argument_two = url.query['my_argument_two']
                    else:
                        # detect the 1.3 and earlier API - mutate the
                        # URL directly
                        self.my_argument_one = url.query.pop('my_argument_one')
                        self.my_argument_two = url.query.pop('my_argument_two')
 
                    self.my_argument_three = kwargs.pop('my_argument_three', None)
 
                def update_url(self, url):
                    # this method is only called in the 1.4 version
                    return url.difference_update_query(
                        ["my_argument_one", "my_argument_two"]
                    )
 
        .. seealso::
 
            :ref:`change_5526` - overview of the :class:`_engine.URL` change which
            also includes notes regarding :class:`_engine.CreateEnginePlugin`.
 
 
    When the engine creation process completes and produces the
    :class:`_engine.Engine` object, it is again passed to the plugin via the
    :meth:`_engine.CreateEnginePlugin.engine_created` hook.  In this hook, additional
    changes can be made to the engine, most typically involving setup of
    events (e.g. those defined in :ref:`core_event_toplevel`).
 
    r)rÞ)rµÚkwargscCs
||_dS)aùConstruct a new :class:`.CreateEnginePlugin`.
 
        The plugin object is instantiated individually for each call
        to :func:`_sa.create_engine`.  A single :class:`_engine.
        Engine` will be
        passed to the :meth:`.CreateEnginePlugin.engine_created` method
        corresponding to this URL.
 
        :param url: the :class:`_engine.URL` object.  The plugin may inspect
         the :class:`_engine.URL` for arguments.  Arguments used by the
         plugin should be removed, by returning an updated :class:`_engine.URL`
         from the :meth:`_engine.CreateEnginePlugin.update_url` method.
 
         .. versionchanged::  1.4
 
            The :class:`_engine.URL` object is now immutable, so a
            :class:`_engine.CreateEnginePlugin` that needs to alter the
            :class:`_engine.URL` object should implement the
            :meth:`_engine.CreateEnginePlugin.update_url` method.
 
        :param kwargs: The keyword arguments passed to
         :func:`_sa.create_engine`.
 
        N)rµ)rSrµr9rIrIrJÚ__init__ szCreateEnginePlugin.__init__r´cCs
tƒ‚dS)aUpdate the :class:`_engine.URL`.
 
        A new :class:`_engine.URL` should be returned.   This method is
        typically used to consume configuration arguments from the
        :class:`_engine.URL` which must be removed, as they will not be
        recognized by the dialect.  The
        :meth:`_engine.URL.difference_update_query` method is available
        to remove these arguments.   See the docstring at
        :class:`_engine.CreateEnginePlugin` for an example.
 
 
        .. versionadded:: 1.4
 
        Nr¦r¶rIrIrJÚ
update_url5 szCreateEnginePlugin.update_urlr'rN)Ú dialect_clsÚ dialect_argsrPcCsdS)zparse and modify dialect kwargsNrI)rSr<r=rIrIrJÚhandle_dialect_kwargsF sz(CreateEnginePlugin.handle_dialect_kwargsr4)Úpool_clsÚ    pool_argsrPcCsdS)zparse and modify pool kwargsNrI)rSr?r@rIrIrJÚhandle_pool_kwargsK sz%CreateEnginePlugin.handle_pool_kwargsr'r,cCsdS)z×Receive the :class:`_engine.Engine`
        object when it is fully constructed.
 
        The plugin may make additional changes to the engine, such as
        registering engine or connection pool events.
 
        NrI)rSr-rIrIrJr.P sz!CreateEnginePlugin.engine_createdN)    rArBrCrLr:r;r>rAr.rIrIrIrJr8m
s-r8c @sÖeZdZUdZded<ded<ded<ded<d    ed
<d ed <d ed<ded<ded<ded<ded<ded<ded<ded<ded<ded<eddddddd œd!d"„ƒZeejfddddd#d$d%d&d'dd(œ
d)d*„ƒZ    eddddd d+dd,œd-d.„ƒZ
edddddd/œd0d1„ƒZ d2d3d4d5d6œd7d8„Z d9d:œd;d<„Z d d:œd=d>„Zd?d:œd@dA„ZdBdCdDdEœdFdG„Zd    d:œdHdI„ZdJd:œdKdL„ZdMdNdOœdPdQ„ZdJd:œdRdS„ZdTdJdUœdVdW„Zdd:œdXdY„ZdZd:œd[d\„Zd    dNd]œd^d_„Zd`S)arùzRA messenger object for a Dialect that corresponds to a single
    execution.
 
    r'r-r&r½Zroot_connectionr¤ÚdialectrVrWzOptional[Compiled]Úcompiledror zOptional[Executable]Úinvoked_statementÚ_AnyMultiExecuteParamsrbrYr|ZisinsertZisupdaterKZ execute_stylerez;util.generic_fn_descriptor[Optional[Sequence[Column[Any]]]]Z prefetch_colsZpostfetch_colsrÚ_ExecuteOptionsr/)rBr½rïÚexecution_optionsÚ compiled_ddlrPcCs
tƒ‚dSrQr¦)r¹rBr½rïrGrHrIrIrJÚ    _init_ddl³ s    zExecutionContext._init_ddlr3Ú_CoreMultiExecuteParamsr-z&Optional[Sequence[BindParameter[Any]]]r>)
rBr½rïrGrCrbrDÚextracted_parametersÚ    cache_hitrPc
 
Cs
tƒ‚dSrQr¦)
r¹rBr½rïrGrCrbrDrKrLrIrIrJÚ_init_compiled¾ s zExecutionContext._init_compiledr )rBr½rïrGr rbrPcCs
tƒ‚dSrQr¦)r¹rBr½rïrGr rbrIrIrJÚ_init_statementÍ s
z ExecutionContext._init_statement)rBr½rïrGrPcCs
tƒ‚dSrQr¦)r¹rBr½rïrGrIrIrJÚ _init_defaultÙ szExecutionContext._init_defaultzOptional[Column[Any]]r7zOptional[TypeEngine[Any]]r)rmrÚtype_rPcCs
tƒ‚dSrQr¦)rSrmrrPrIrIrJÚ _exec_defaultã szExecutionContext._exec_defaultz0Optional[List[Tuple[str, Any, TypeEngine[Any]]]]rOcCs
tƒ‚dSrQr¦rRrIrIrJÚ_prepare_set_input_sizesë sz)ExecutionContext._prepare_set_input_sizescCs
tƒ‚dSrQr¦rRrIrIrJÚ_get_cache_statsð sz!ExecutionContext._get_cache_statszCursorResult[Any]cCs
tƒ‚dSrQr¦rRrIrIrJÚ_setup_result_proxyó sz$ExecutionContext._setup_result_proxyÚSequence_SchemaItemr9r^)ÚseqrPrPcCs
tƒ‚dS)zKgiven a :class:`.Sequence`, invoke it and return the next int
        valueNr¦)rSrVrPrIrIrJÚ fire_sequenceö szExecutionContext.fire_sequencecCs
tƒ‚dS)zõReturn a new cursor generated from this ExecutionContext's
        connection.
 
        Some dialects may wish to change the behavior of
        connection.cursor(), such as postgresql which may return a PG
        "server side" cursor.
        Nr¦rRrIrIrJÚ create_cursorû s    zExecutionContext.create_cursorrNcCs
tƒ‚dS)zõCalled before an execution of a compiled statement.
 
        If a compiled statement was passed to this ExecutionContext,
        the `statement` and `parameters` datamembers must be
        initialized after this statement is complete.
        Nr¦rRrIrIrJÚpre_exec szExecutionContext.pre_execr®rg)Úout_param_namesrPcCs
tƒ‚dS)a!Return a sequence of OUT parameter values from a cursor.
 
        For dialects that support OUT parameters, this method will be called
        when there is a :class:`.SQLCompiler` object which has the
        :attr:`.SQLCompiler.has_out_parameters` flag set.  This flag in turn
        will be set to True if the statement itself has :class:`.BindParameter`
        objects that have the ``.isoutparam`` flag set which are consumed by
        the :meth:`.SQLCompiler.visit_bindparam` method.  If the dialect
        compiler produces :class:`.BindParameter` objects with ``.isoutparam``
        set which are not handled by :meth:`.SQLCompiler.visit_bindparam`, it
        should set this flag explicitly.
 
        The list of names that were rendered for each bound parameter
        is passed to the method.  The method should then return a sequence of
        values corresponding to the list of parameter objects. Unlike in
        previous SQLAlchemy versions, the values can be the **raw values** from
        the DBAPI; the execution context will apply the appropriate type
        handler based on what's present in self.compiled.binds and update the
        values.  The processed dictionary will then be made available via the
        ``.out_parameters`` collection on the result object.  Note that
        SQLAlchemy 1.4 has multiple kinds of result object as part of the 2.0
        transition.
 
        .. versionadded:: 1.4 - added
           :meth:`.ExecutionContext.get_out_parameter_values`, which is invoked
           automatically by the :class:`.DefaultExecutionContext` when there
           are :class:`.BindParameter` objects with the ``.isoutparam`` flag
           set.  This replaces the practice of setting out parameters within
           the now-removed ``get_result_proxy()`` method.
 
        Nr¦)rSrZrIrIrJÚget_out_parameter_values s"z)ExecutionContext.get_out_parameter_valuescCs
tƒ‚dS)aCalled after the execution of a compiled statement.
 
        If a compiled statement was passed to this ExecutionContext,
        the `last_insert_ids`, `last_inserted_params`, etc.
        datamembers should be available after this method completes.
        Nr¦rRrIrIrJÚ    post_exec4 szExecutionContext.post_execÚ BaseException)rrPcCs
tƒ‚dS)zQReceive a DBAPI exception which occurred upon execute, result
        fetch, etc.Nr¦)rSrrIrIrJÚhandle_dbapi_exception> sz'ExecutionContext.handle_dbapi_exceptioncCs
tƒ‚dS)zjReturn True if the last INSERT or UPDATE row contained
        inlined or database-side defaults.
        Nr¦rRrIrIrJÚlastrow_has_defaultsD sz%ExecutionContext.lastrow_has_defaultsr„cCs
tƒ‚dS)z¬Return the DBAPI ``cursor.rowcount`` value, or in some
        cases an interpreted value.
 
        See :attr:`_engine.CursorResult.rowcount` for details on this.
 
        Nr¦rRrIrIrJÚ get_rowcountK szExecutionContext.get_rowcount)rWrPcCs
tƒ‚dS)aFor a RETURNING result, deliver cursor.fetchall() from the
        DBAPI cursor.
 
        This is a dialect-specific hook for dialects that have special
        considerations when calling upon the rows delivered for a
        "RETURNING" statement.   Default implementation is
        ``cursor.fetchall()``.
 
        This hook is currently used only by the :term:`insertmanyvalues`
        feature.   Dialects that don't set ``use_insertmanyvalues=True``
        don't need to consider this hook.
 
        .. versionadded:: 2.0.10
 
        Nr¦)rSrWrIrIrJÚfetchall_for_returningU sz'ExecutionContext.fetchall_for_returningN)rArBrCrLrZr7rIr>rFrMrNrOrQrRrSrTrWrXrYr[r\r^r_r`rarIrIrIrJrùZ sN
     
 
 ö$      
$
 
rùc@seZdZUdZded<dS)ÚConnectionEventsTargetzªAn object which can accept events from :class:`.ConnectionEvents`.
 
    Includes :class:`_engine.Connection` and :class:`_engine.Engine`.
 
    .. versionadded:: 2.0
 
    z"dispatcher[ConnectionEventsTarget]r¥Nr‡rIrIrIrJrbh s
rbc@s~eZdZUdZdZded<ded<ded<d    ed
<d ed <d ed<ded<ded<ded<ded<ded<ded<ded<dS)ÚExceptionContextaEncapsulate information about an error condition in progress.
 
    This object exists solely to be passed to the
    :meth:`_events.DialectEvents.handle_error` event,
    supporting an interface that
    can be extended without backwards-incompatibility.
 
 
    rIr¤rBzOptional[Connection]r½zOptional[Engine]r-rrWrŽr z Optional[_DBAPIAnyExecuteParams]rbr]Zoriginal_exceptionzOptional[StatementError]Zsqlalchemy_exceptionzOptional[BaseException]Zchained_exceptionrZexecution_contextrYrZinvalidate_pool_on_disconnectZ is_pre_pingN)rArBrCrLÚ    __slots__rZrIrIrIrJrcw s 
 
     
 rcc@sNeZdZUdZdZded<eddœdd„ƒZdd    d
œd d „Zd dœdd„Z    dS)ÚAdaptedConnectionzùInterface of an adapted connection object to support the DBAPI protocol.
 
    Used by asyncio dialects to provide a sync-style pep-249 facade on top
    of the asyncio connection/cursor API provided by the driver.
 
    .. versionadded:: 1.4.24
 
    ©Ú _connectionrrgrOcCs|jS)z@The connection object as returned by the driver after a connect.rfrRrIrIrJÚdriver_connection+ sz#AdaptedConnection.driver_connectionzCallable[[Any], Awaitable[_T]]r<)ÚfnrPcCst||jƒƒS)aRun the awaitable returned by the given function, which is passed
        the raw asyncio driver connection.
 
        This is used to invoke awaitable-only methods on the driver connection
        within the context of a "synchronous" method, like a connection
        pool event handler.
 
        E.g.::
 
            engine = create_async_engine(...)
 
            @event.listens_for(engine.sync_engine, "connect")
            def register_custom_types(dbapi_connection, ...):
                dbapi_connection.run_async(
                    lambda connection: connection.set_type_codec(
                        'MyCustomType', encoder, decoder, ...
                    )
                )
 
        .. versionadded:: 1.4.30
 
        .. seealso::
 
            :ref:`asyncio_events_run_async`
 
        )r rg)rSrirIrIrJÚ    run_async0 szAdaptedConnection.run_asyncrocCs
d|jS)Nz<AdaptedConnection %s>rfrRrIrIrJÚ__repr__M szAdaptedConnection.__repr__N)
rArBrCrLrdrZrurhrjrkrIrIrIrJre s
    reN)rLÚ
__future__rÚenumrÚtypesrÚtypingrrrrr    r
r r r rrrrrrrrrrÚrÚeventrÚpoolrrZ sql.compilerrrrZutil.concurrencyr Z util.typingr!r"r#r$Úbaser&r'rWr(rµr)r*r+Úexcr,Zsqlr-r.r/r0r1r2r3Z sql.elementsr4r5Z
sql.schemar6r7r8rUZ sql.sqltypesr9Z sql.type_apir:r;ror³r<r>rKrMr[rVZ_CoreSingleExecuteParamsZ_MutableCoreSingleExecuteParamsrJZ_CoreAnyExecuteParamsZ_DBAPISingleExecuteParamsr Z_DBAPIAnyExecuteParamsr^rYr\Z_AnySingleExecuteParamsrEZ_AnyExecuteParamsZCompiledCacheTypeZSchemaTranslateMapTypeZ_ImmutableExecuteOptionsZ _ParamStylerør{rzrFr0rrˆr‹r•r–r—ršrœržr r¢ZVersionInfoTypeZTableKeyr¤r8rùrbZ ConnectablercrerIrIrIrJÚ<module>s*                                                             M  ÿÿÿúÿÿ   ÿÿ     ÿ.:4 <|n '