psqlpy 0.11.1__cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl → 0.11.3__cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of psqlpy might be problematic. Click here for more details.
- psqlpy/_internal/__init__.pyi +107 -12
- psqlpy/_internal.cpython-310-aarch64-linux-gnu.so +0 -0
- {psqlpy-0.11.1.dist-info → psqlpy-0.11.3.dist-info}/METADATA +1 -1
- {psqlpy-0.11.1.dist-info → psqlpy-0.11.3.dist-info}/RECORD +7 -7
- {psqlpy-0.11.1.dist-info → psqlpy-0.11.3.dist-info}/WHEEL +1 -1
- {psqlpy-0.11.1.dist-info → psqlpy-0.11.3.dist-info}/entry_points.txt +0 -0
- {psqlpy-0.11.1.dist-info → psqlpy-0.11.3.dist-info}/licenses/LICENSE +0 -0
psqlpy/_internal/__init__.pyi
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import types
|
|
2
|
+
import typing
|
|
2
3
|
from enum import Enum
|
|
3
4
|
from io import BytesIO
|
|
4
5
|
from ipaddress import IPv4Address, IPv6Address
|
|
@@ -18,15 +19,38 @@ ParamsT: TypeAlias = Sequence[Any] | Mapping[str, Any] | None
|
|
|
18
19
|
class QueryResult:
|
|
19
20
|
"""Result."""
|
|
20
21
|
|
|
22
|
+
@typing.overload
|
|
21
23
|
def result(
|
|
22
24
|
self: Self,
|
|
25
|
+
as_tuple: typing.Literal[None] = None,
|
|
23
26
|
custom_decoders: dict[str, Callable[[bytes], Any]] | None = None,
|
|
24
|
-
) -> list[dict[
|
|
25
|
-
|
|
27
|
+
) -> list[dict[str, Any]]: ...
|
|
28
|
+
@typing.overload
|
|
29
|
+
def result(
|
|
30
|
+
self: Self,
|
|
31
|
+
as_tuple: typing.Literal[False],
|
|
32
|
+
custom_decoders: dict[str, Callable[[bytes], Any]] | None = None,
|
|
33
|
+
) -> list[dict[str, Any]]: ...
|
|
34
|
+
@typing.overload
|
|
35
|
+
def result(
|
|
36
|
+
self: Self,
|
|
37
|
+
as_tuple: typing.Literal[True],
|
|
38
|
+
custom_decoders: dict[str, Callable[[bytes], Any]] | None = None,
|
|
39
|
+
) -> list[tuple[typing.Any, ...]]: ...
|
|
40
|
+
@typing.overload
|
|
41
|
+
def result(
|
|
42
|
+
self: Self,
|
|
43
|
+
custom_decoders: dict[str, Callable[[bytes], Any]] | None = None,
|
|
44
|
+
as_tuple: bool | None = None,
|
|
45
|
+
) -> list[dict[str, Any]]:
|
|
46
|
+
"""Return result from database.
|
|
47
|
+
|
|
48
|
+
By default it returns result as a list of dicts.
|
|
26
49
|
|
|
27
50
|
`custom_decoders` must be used when you use
|
|
28
51
|
PostgreSQL Type which isn't supported, read more in our docs.
|
|
29
52
|
"""
|
|
53
|
+
|
|
30
54
|
def as_class(
|
|
31
55
|
self: Self,
|
|
32
56
|
as_class: Callable[..., _CustomClass],
|
|
@@ -60,6 +84,7 @@ class QueryResult:
|
|
|
60
84
|
)
|
|
61
85
|
```
|
|
62
86
|
"""
|
|
87
|
+
|
|
63
88
|
def row_factory(
|
|
64
89
|
self,
|
|
65
90
|
row_factory: Callable[[dict[str, Any]], _RowFactoryRV],
|
|
@@ -84,15 +109,38 @@ class QueryResult:
|
|
|
84
109
|
class SingleQueryResult:
|
|
85
110
|
"""Single result."""
|
|
86
111
|
|
|
112
|
+
@typing.overload
|
|
113
|
+
def result(
|
|
114
|
+
self: Self,
|
|
115
|
+
as_tuple: typing.Literal[None] = None,
|
|
116
|
+
custom_decoders: dict[str, Callable[[bytes], Any]] | None = None,
|
|
117
|
+
) -> dict[str, Any]: ...
|
|
118
|
+
@typing.overload
|
|
87
119
|
def result(
|
|
88
120
|
self: Self,
|
|
121
|
+
as_tuple: typing.Literal[False],
|
|
89
122
|
custom_decoders: dict[str, Callable[[bytes], Any]] | None = None,
|
|
123
|
+
) -> dict[str, Any]: ...
|
|
124
|
+
@typing.overload
|
|
125
|
+
def result(
|
|
126
|
+
self: Self,
|
|
127
|
+
as_tuple: typing.Literal[True],
|
|
128
|
+
custom_decoders: dict[str, Callable[[bytes], Any]] | None = None,
|
|
129
|
+
) -> tuple[typing.Any, ...]: ...
|
|
130
|
+
@typing.overload
|
|
131
|
+
def result(
|
|
132
|
+
self: Self,
|
|
133
|
+
custom_decoders: dict[str, Callable[[bytes], Any]] | None = None,
|
|
134
|
+
as_tuple: bool | None = None,
|
|
90
135
|
) -> dict[Any, Any]:
|
|
91
|
-
"""Return result from database
|
|
136
|
+
"""Return result from database.
|
|
137
|
+
|
|
138
|
+
By default it returns result as a dict.
|
|
92
139
|
|
|
93
140
|
`custom_decoders` must be used when you use
|
|
94
141
|
PostgreSQL Type which isn't supported, read more in our docs.
|
|
95
142
|
"""
|
|
143
|
+
|
|
96
144
|
def as_class(
|
|
97
145
|
self: Self,
|
|
98
146
|
as_class: Callable[..., _CustomClass],
|
|
@@ -129,6 +177,7 @@ class SingleQueryResult:
|
|
|
129
177
|
)
|
|
130
178
|
```
|
|
131
179
|
"""
|
|
180
|
+
|
|
132
181
|
def row_factory(
|
|
133
182
|
self,
|
|
134
183
|
row_factory: Callable[[dict[str, Any]], _RowFactoryRV],
|
|
@@ -283,11 +332,13 @@ class Cursor:
|
|
|
283
332
|
|
|
284
333
|
Execute DECLARE command for the cursor.
|
|
285
334
|
"""
|
|
335
|
+
|
|
286
336
|
def close(self: Self) -> None:
|
|
287
337
|
"""Close the cursor.
|
|
288
338
|
|
|
289
339
|
Execute CLOSE command for the cursor.
|
|
290
340
|
"""
|
|
341
|
+
|
|
291
342
|
async def execute(
|
|
292
343
|
self: Self,
|
|
293
344
|
querystring: str,
|
|
@@ -298,10 +349,13 @@ class Cursor:
|
|
|
298
349
|
Method should be used instead of context manager
|
|
299
350
|
and `start` method.
|
|
300
351
|
"""
|
|
352
|
+
|
|
301
353
|
async def fetchone(self: Self) -> QueryResult:
|
|
302
354
|
"""Return next one row from the cursor."""
|
|
355
|
+
|
|
303
356
|
async def fetchmany(self: Self, size: int | None = None) -> QueryResult:
|
|
304
357
|
"""Return <size> rows from the cursor."""
|
|
358
|
+
|
|
305
359
|
async def fetchall(self: Self, size: int | None = None) -> QueryResult:
|
|
306
360
|
"""Return all remaining rows from the cursor."""
|
|
307
361
|
|
|
@@ -334,6 +388,7 @@ class Transaction:
|
|
|
334
388
|
|
|
335
389
|
`begin()` can be called only once per transaction.
|
|
336
390
|
"""
|
|
391
|
+
|
|
337
392
|
async def commit(self: Self) -> None:
|
|
338
393
|
"""Commit the transaction.
|
|
339
394
|
|
|
@@ -341,6 +396,7 @@ class Transaction:
|
|
|
341
396
|
|
|
342
397
|
`commit()` can be called only once per transaction.
|
|
343
398
|
"""
|
|
399
|
+
|
|
344
400
|
async def rollback(self: Self) -> None:
|
|
345
401
|
"""Rollback all queries in the transaction.
|
|
346
402
|
|
|
@@ -361,6 +417,7 @@ class Transaction:
|
|
|
361
417
|
await transaction.rollback()
|
|
362
418
|
```
|
|
363
419
|
"""
|
|
420
|
+
|
|
364
421
|
async def execute(
|
|
365
422
|
self: Self,
|
|
366
423
|
querystring: str,
|
|
@@ -398,6 +455,7 @@ class Transaction:
|
|
|
398
455
|
await transaction.commit()
|
|
399
456
|
```
|
|
400
457
|
"""
|
|
458
|
+
|
|
401
459
|
async def execute_batch(
|
|
402
460
|
self: Self,
|
|
403
461
|
querystring: str,
|
|
@@ -413,6 +471,7 @@ class Transaction:
|
|
|
413
471
|
### Parameters:
|
|
414
472
|
- `querystring`: querystrings separated by semicolons.
|
|
415
473
|
"""
|
|
474
|
+
|
|
416
475
|
async def execute_many(
|
|
417
476
|
self: Self,
|
|
418
477
|
querystring: str,
|
|
@@ -471,6 +530,7 @@ class Transaction:
|
|
|
471
530
|
- `prepared`: should the querystring be prepared before the request.
|
|
472
531
|
By default any querystring will be prepared.
|
|
473
532
|
"""
|
|
533
|
+
|
|
474
534
|
async def fetch_row(
|
|
475
535
|
self: Self,
|
|
476
536
|
querystring: str,
|
|
@@ -510,6 +570,7 @@ class Transaction:
|
|
|
510
570
|
await transaction.commit()
|
|
511
571
|
```
|
|
512
572
|
"""
|
|
573
|
+
|
|
513
574
|
async def fetch_val(
|
|
514
575
|
self: Self,
|
|
515
576
|
querystring: str,
|
|
@@ -550,6 +611,7 @@ class Transaction:
|
|
|
550
611
|
)
|
|
551
612
|
```
|
|
552
613
|
"""
|
|
614
|
+
|
|
553
615
|
async def pipeline(
|
|
554
616
|
self,
|
|
555
617
|
queries: list[tuple[str, list[Any] | None]],
|
|
@@ -614,6 +676,7 @@ class Transaction:
|
|
|
614
676
|
)
|
|
615
677
|
```
|
|
616
678
|
"""
|
|
679
|
+
|
|
617
680
|
async def create_savepoint(self: Self, savepoint_name: str) -> None:
|
|
618
681
|
"""Create new savepoint.
|
|
619
682
|
|
|
@@ -642,6 +705,7 @@ class Transaction:
|
|
|
642
705
|
await transaction.rollback_savepoint("my_savepoint")
|
|
643
706
|
```
|
|
644
707
|
"""
|
|
708
|
+
|
|
645
709
|
async def rollback_savepoint(self: Self, savepoint_name: str) -> None:
|
|
646
710
|
"""ROLLBACK to the specified `savepoint_name`.
|
|
647
711
|
|
|
@@ -667,6 +731,7 @@ class Transaction:
|
|
|
667
731
|
await transaction.rollback_savepoint("my_savepoint")
|
|
668
732
|
```
|
|
669
733
|
"""
|
|
734
|
+
|
|
670
735
|
async def release_savepoint(self: Self, savepoint_name: str) -> None:
|
|
671
736
|
"""Execute ROLLBACK TO SAVEPOINT.
|
|
672
737
|
|
|
@@ -691,6 +756,7 @@ class Transaction:
|
|
|
691
756
|
await transaction.release_savepoint
|
|
692
757
|
```
|
|
693
758
|
"""
|
|
759
|
+
|
|
694
760
|
def cursor(
|
|
695
761
|
self: Self,
|
|
696
762
|
querystring: str,
|
|
@@ -734,6 +800,7 @@ class Transaction:
|
|
|
734
800
|
await cursor.close()
|
|
735
801
|
```
|
|
736
802
|
"""
|
|
803
|
+
|
|
737
804
|
async def binary_copy_to_table(
|
|
738
805
|
self: Self,
|
|
739
806
|
source: bytes | bytearray | Buffer | BytesIO,
|
|
@@ -815,16 +882,7 @@ class Connection:
|
|
|
815
882
|
|
|
816
883
|
Return representation of prepared statement.
|
|
817
884
|
"""
|
|
818
|
-
async def commit(self: Self) -> None:
|
|
819
|
-
"""Commit the transaction.
|
|
820
|
-
|
|
821
|
-
Do nothing if there is no active transaction.
|
|
822
|
-
"""
|
|
823
|
-
async def rollback(self: Self) -> None:
|
|
824
|
-
"""Rollback the transaction.
|
|
825
885
|
|
|
826
|
-
Do nothing if there is no active transaction.
|
|
827
|
-
"""
|
|
828
886
|
async def execute(
|
|
829
887
|
self: Self,
|
|
830
888
|
querystring: str,
|
|
@@ -861,6 +919,7 @@ class Connection:
|
|
|
861
919
|
dict_result: List[Dict[Any, Any]] = query_result.result()
|
|
862
920
|
```
|
|
863
921
|
"""
|
|
922
|
+
|
|
864
923
|
async def execute_batch(
|
|
865
924
|
self: Self,
|
|
866
925
|
querystring: str,
|
|
@@ -876,6 +935,7 @@ class Connection:
|
|
|
876
935
|
### Parameters:
|
|
877
936
|
- `querystring`: querystrings separated by semicolons.
|
|
878
937
|
"""
|
|
938
|
+
|
|
879
939
|
async def execute_many(
|
|
880
940
|
self: Self,
|
|
881
941
|
querystring: str,
|
|
@@ -929,6 +989,7 @@ class Connection:
|
|
|
929
989
|
- `prepared`: should the querystring be prepared before the request.
|
|
930
990
|
By default any querystring will be prepared.
|
|
931
991
|
"""
|
|
992
|
+
|
|
932
993
|
async def fetch_row(
|
|
933
994
|
self: Self,
|
|
934
995
|
querystring: str,
|
|
@@ -965,6 +1026,7 @@ class Connection:
|
|
|
965
1026
|
dict_result: Dict[Any, Any] = query_result.result()
|
|
966
1027
|
```
|
|
967
1028
|
"""
|
|
1029
|
+
|
|
968
1030
|
async def fetch_val(
|
|
969
1031
|
self: Self,
|
|
970
1032
|
querystring: str,
|
|
@@ -1004,6 +1066,7 @@ class Connection:
|
|
|
1004
1066
|
)
|
|
1005
1067
|
```
|
|
1006
1068
|
"""
|
|
1069
|
+
|
|
1007
1070
|
def transaction(
|
|
1008
1071
|
self,
|
|
1009
1072
|
isolation_level: IsolationLevel | None = None,
|
|
@@ -1017,6 +1080,7 @@ class Connection:
|
|
|
1017
1080
|
- `read_variant`: configure read variant of the transaction.
|
|
1018
1081
|
- `deferrable`: configure deferrable of the transaction.
|
|
1019
1082
|
"""
|
|
1083
|
+
|
|
1020
1084
|
def cursor(
|
|
1021
1085
|
self: Self,
|
|
1022
1086
|
querystring: str,
|
|
@@ -1055,6 +1119,7 @@ class Connection:
|
|
|
1055
1119
|
... # do something with this result.
|
|
1056
1120
|
```
|
|
1057
1121
|
"""
|
|
1122
|
+
|
|
1058
1123
|
def close(self: Self) -> None:
|
|
1059
1124
|
"""Return connection back to the pool.
|
|
1060
1125
|
|
|
@@ -1199,6 +1264,7 @@ class ConnectionPool:
|
|
|
1199
1264
|
- `ca_file`: Loads trusted root certificates from a file.
|
|
1200
1265
|
The file should contain a sequence of PEM-formatted CA certificates.
|
|
1201
1266
|
"""
|
|
1267
|
+
|
|
1202
1268
|
def __iter__(self: Self) -> Self: ...
|
|
1203
1269
|
def __enter__(self: Self) -> Self: ...
|
|
1204
1270
|
def __exit__(
|
|
@@ -1213,6 +1279,7 @@ class ConnectionPool:
|
|
|
1213
1279
|
### Returns
|
|
1214
1280
|
`ConnectionPoolStatus`
|
|
1215
1281
|
"""
|
|
1282
|
+
|
|
1216
1283
|
def resize(self: Self, new_max_size: int) -> None:
|
|
1217
1284
|
"""Resize the connection pool.
|
|
1218
1285
|
|
|
@@ -1222,11 +1289,13 @@ class ConnectionPool:
|
|
|
1222
1289
|
### Parameters:
|
|
1223
1290
|
- `new_max_size`: new size for the connection pool.
|
|
1224
1291
|
"""
|
|
1292
|
+
|
|
1225
1293
|
async def connection(self: Self) -> Connection:
|
|
1226
1294
|
"""Create new connection.
|
|
1227
1295
|
|
|
1228
1296
|
It acquires new connection from the database pool.
|
|
1229
1297
|
"""
|
|
1298
|
+
|
|
1230
1299
|
def acquire(self: Self) -> Connection:
|
|
1231
1300
|
"""Create new connection for async context manager.
|
|
1232
1301
|
|
|
@@ -1244,6 +1313,7 @@ class ConnectionPool:
|
|
|
1244
1313
|
res = await connection.execute(...)
|
|
1245
1314
|
```
|
|
1246
1315
|
"""
|
|
1316
|
+
|
|
1247
1317
|
def listener(self: Self) -> Listener:
|
|
1248
1318
|
"""Create new listener."""
|
|
1249
1319
|
|
|
@@ -1355,6 +1425,7 @@ class ConnectionPoolBuilder:
|
|
|
1355
1425
|
|
|
1356
1426
|
def __init__(self: Self) -> None:
|
|
1357
1427
|
"""Initialize new instance of `ConnectionPoolBuilder`."""
|
|
1428
|
+
|
|
1358
1429
|
def build(self: Self) -> ConnectionPool:
|
|
1359
1430
|
"""
|
|
1360
1431
|
Build `ConnectionPool`.
|
|
@@ -1362,6 +1433,7 @@ class ConnectionPoolBuilder:
|
|
|
1362
1433
|
### Returns:
|
|
1363
1434
|
`ConnectionPool`
|
|
1364
1435
|
"""
|
|
1436
|
+
|
|
1365
1437
|
def max_pool_size(self: Self, pool_size: int) -> Self:
|
|
1366
1438
|
"""
|
|
1367
1439
|
Set maximum connection pool size.
|
|
@@ -1372,6 +1444,7 @@ class ConnectionPoolBuilder:
|
|
|
1372
1444
|
### Returns:
|
|
1373
1445
|
`ConnectionPoolBuilder`
|
|
1374
1446
|
"""
|
|
1447
|
+
|
|
1375
1448
|
def conn_recycling_method(
|
|
1376
1449
|
self: Self,
|
|
1377
1450
|
conn_recycling_method: ConnRecyclingMethod,
|
|
@@ -1387,6 +1460,7 @@ class ConnectionPoolBuilder:
|
|
|
1387
1460
|
### Returns:
|
|
1388
1461
|
`ConnectionPoolBuilder`
|
|
1389
1462
|
"""
|
|
1463
|
+
|
|
1390
1464
|
def user(self: Self, user: str) -> Self:
|
|
1391
1465
|
"""
|
|
1392
1466
|
Set username to `PostgreSQL`.
|
|
@@ -1397,6 +1471,7 @@ class ConnectionPoolBuilder:
|
|
|
1397
1471
|
### Returns:
|
|
1398
1472
|
`ConnectionPoolBuilder`
|
|
1399
1473
|
"""
|
|
1474
|
+
|
|
1400
1475
|
def password(self: Self, password: str) -> Self:
|
|
1401
1476
|
"""
|
|
1402
1477
|
Set password for `PostgreSQL`.
|
|
@@ -1407,6 +1482,7 @@ class ConnectionPoolBuilder:
|
|
|
1407
1482
|
### Returns:
|
|
1408
1483
|
`ConnectionPoolBuilder`
|
|
1409
1484
|
"""
|
|
1485
|
+
|
|
1410
1486
|
def dbname(self: Self, dbname: str) -> Self:
|
|
1411
1487
|
"""
|
|
1412
1488
|
Set database name for the `PostgreSQL`.
|
|
@@ -1417,6 +1493,7 @@ class ConnectionPoolBuilder:
|
|
|
1417
1493
|
### Returns:
|
|
1418
1494
|
`ConnectionPoolBuilder`
|
|
1419
1495
|
"""
|
|
1496
|
+
|
|
1420
1497
|
def options(self: Self, options: str) -> Self:
|
|
1421
1498
|
"""
|
|
1422
1499
|
Set command line options used to configure the server.
|
|
@@ -1427,6 +1504,7 @@ class ConnectionPoolBuilder:
|
|
|
1427
1504
|
### Returns:
|
|
1428
1505
|
`ConnectionPoolBuilder`
|
|
1429
1506
|
"""
|
|
1507
|
+
|
|
1430
1508
|
def application_name(self: Self, application_name: str) -> Self:
|
|
1431
1509
|
"""
|
|
1432
1510
|
Set the value of the `application_name` runtime parameter.
|
|
@@ -1437,6 +1515,7 @@ class ConnectionPoolBuilder:
|
|
|
1437
1515
|
### Returns:
|
|
1438
1516
|
`ConnectionPoolBuilder`
|
|
1439
1517
|
"""
|
|
1518
|
+
|
|
1440
1519
|
def ssl_mode(self: Self, ssl_mode: SslMode) -> Self:
|
|
1441
1520
|
"""
|
|
1442
1521
|
Set the SSL configuration.
|
|
@@ -1447,6 +1526,7 @@ class ConnectionPoolBuilder:
|
|
|
1447
1526
|
### Returns:
|
|
1448
1527
|
`ConnectionPoolBuilder`
|
|
1449
1528
|
"""
|
|
1529
|
+
|
|
1450
1530
|
def ca_file(self: Self, ca_file: str) -> Self:
|
|
1451
1531
|
"""
|
|
1452
1532
|
Set ca_file for SSL.
|
|
@@ -1457,6 +1537,7 @@ class ConnectionPoolBuilder:
|
|
|
1457
1537
|
### Returns:
|
|
1458
1538
|
`ConnectionPoolBuilder`
|
|
1459
1539
|
"""
|
|
1540
|
+
|
|
1460
1541
|
def host(self: Self, host: str) -> Self:
|
|
1461
1542
|
"""
|
|
1462
1543
|
Add a host to the configuration.
|
|
@@ -1474,6 +1555,7 @@ class ConnectionPoolBuilder:
|
|
|
1474
1555
|
### Returns:
|
|
1475
1556
|
`ConnectionPoolBuilder`
|
|
1476
1557
|
"""
|
|
1558
|
+
|
|
1477
1559
|
def hostaddr(self: Self, hostaddr: IPv4Address | IPv6Address) -> Self:
|
|
1478
1560
|
"""
|
|
1479
1561
|
Add a hostaddr to the configuration.
|
|
@@ -1489,6 +1571,7 @@ class ConnectionPoolBuilder:
|
|
|
1489
1571
|
### Returns:
|
|
1490
1572
|
`ConnectionPoolBuilder`
|
|
1491
1573
|
"""
|
|
1574
|
+
|
|
1492
1575
|
def port(self: Self, port: int) -> Self:
|
|
1493
1576
|
"""
|
|
1494
1577
|
Add a port to the configuration.
|
|
@@ -1505,6 +1588,7 @@ class ConnectionPoolBuilder:
|
|
|
1505
1588
|
### Returns:
|
|
1506
1589
|
`ConnectionPoolBuilder`
|
|
1507
1590
|
"""
|
|
1591
|
+
|
|
1508
1592
|
def connect_timeout(self: Self, connect_timeout: int) -> Self:
|
|
1509
1593
|
"""
|
|
1510
1594
|
Set the timeout applied to socket-level connection attempts.
|
|
@@ -1519,6 +1603,7 @@ class ConnectionPoolBuilder:
|
|
|
1519
1603
|
### Returns:
|
|
1520
1604
|
`ConnectionPoolBuilder`
|
|
1521
1605
|
"""
|
|
1606
|
+
|
|
1522
1607
|
def tcp_user_timeout(self: Self, tcp_user_timeout: int) -> Self:
|
|
1523
1608
|
"""
|
|
1524
1609
|
Set the TCP user timeout.
|
|
@@ -1534,6 +1619,7 @@ class ConnectionPoolBuilder:
|
|
|
1534
1619
|
### Returns:
|
|
1535
1620
|
`ConnectionPoolBuilder`
|
|
1536
1621
|
"""
|
|
1622
|
+
|
|
1537
1623
|
def target_session_attrs(
|
|
1538
1624
|
self: Self,
|
|
1539
1625
|
target_session_attrs: TargetSessionAttrs,
|
|
@@ -1551,6 +1637,7 @@ class ConnectionPoolBuilder:
|
|
|
1551
1637
|
### Returns:
|
|
1552
1638
|
`ConnectionPoolBuilder`
|
|
1553
1639
|
"""
|
|
1640
|
+
|
|
1554
1641
|
def load_balance_hosts(
|
|
1555
1642
|
self: Self,
|
|
1556
1643
|
load_balance_hosts: LoadBalanceHosts,
|
|
@@ -1566,6 +1653,7 @@ class ConnectionPoolBuilder:
|
|
|
1566
1653
|
### Returns:
|
|
1567
1654
|
`ConnectionPoolBuilder`
|
|
1568
1655
|
"""
|
|
1656
|
+
|
|
1569
1657
|
def keepalives(
|
|
1570
1658
|
self: Self,
|
|
1571
1659
|
keepalives: bool,
|
|
@@ -1583,6 +1671,7 @@ class ConnectionPoolBuilder:
|
|
|
1583
1671
|
### Returns:
|
|
1584
1672
|
`ConnectionPoolBuilder`
|
|
1585
1673
|
"""
|
|
1674
|
+
|
|
1586
1675
|
def keepalives_idle(
|
|
1587
1676
|
self: Self,
|
|
1588
1677
|
keepalives_idle: int,
|
|
@@ -1601,6 +1690,7 @@ class ConnectionPoolBuilder:
|
|
|
1601
1690
|
### Returns:
|
|
1602
1691
|
`ConnectionPoolBuilder`
|
|
1603
1692
|
"""
|
|
1693
|
+
|
|
1604
1694
|
def keepalives_interval(
|
|
1605
1695
|
self: Self,
|
|
1606
1696
|
keepalives_interval: int,
|
|
@@ -1620,6 +1710,7 @@ class ConnectionPoolBuilder:
|
|
|
1620
1710
|
### Returns:
|
|
1621
1711
|
`ConnectionPoolBuilder`
|
|
1622
1712
|
"""
|
|
1713
|
+
|
|
1623
1714
|
def keepalives_retries(
|
|
1624
1715
|
self: Self,
|
|
1625
1716
|
keepalives_retries: int,
|
|
@@ -1712,11 +1803,13 @@ class Listener:
|
|
|
1712
1803
|
|
|
1713
1804
|
Each listener MUST be started up.
|
|
1714
1805
|
"""
|
|
1806
|
+
|
|
1715
1807
|
async def shutdown(self: Self) -> None:
|
|
1716
1808
|
"""Shutdown the listener.
|
|
1717
1809
|
|
|
1718
1810
|
Abort listen and release underlying connection.
|
|
1719
1811
|
"""
|
|
1812
|
+
|
|
1720
1813
|
async def add_callback(
|
|
1721
1814
|
self: Self,
|
|
1722
1815
|
channel: str,
|
|
@@ -1779,7 +1872,9 @@ class Column:
|
|
|
1779
1872
|
class PreparedStatement:
|
|
1780
1873
|
async def execute(self: Self) -> QueryResult:
|
|
1781
1874
|
"""Execute prepared statement."""
|
|
1875
|
+
|
|
1782
1876
|
def cursor(self: Self) -> Cursor:
|
|
1783
1877
|
"""Create new server-side cursor based on prepared statement."""
|
|
1878
|
+
|
|
1784
1879
|
def columns(self: Self) -> list[Column]:
|
|
1785
1880
|
"""Return information about statement columns."""
|
|
Binary file
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
psqlpy-0.11.
|
|
2
|
-
psqlpy-0.11.
|
|
3
|
-
psqlpy-0.11.
|
|
4
|
-
psqlpy-0.11.
|
|
1
|
+
psqlpy-0.11.3.dist-info/METADATA,sha256=ZIE0FymLfdH_eGEn35_GNKqbp5bqw0yf0ZzPYzu64EM,3522
|
|
2
|
+
psqlpy-0.11.3.dist-info/WHEEL,sha256=pEltttHdPPnqgHTa5bF2yr93GvFbDDrJkZsucmwXjUs,131
|
|
3
|
+
psqlpy-0.11.3.dist-info/entry_points.txt,sha256=kNGHhl8cqbZ25PuaS-Ez-7jl3_b_4rIajMSmdJzmKNo,74
|
|
4
|
+
psqlpy-0.11.3.dist-info/licenses/LICENSE,sha256=UkxvzBjZdhB37ez6jaooRIOe3GON6A2MJ7RVsiOxlUc,1078
|
|
5
5
|
psqlpy/__init__.py,sha256=w0a1HvjkEGAmg5dax_hkrur8y3WZT0caFmFVfMmyvxs,838
|
|
6
|
-
psqlpy/_internal.cpython-310-aarch64-linux-gnu.so,sha256=
|
|
7
|
-
psqlpy/_internal/__init__.pyi,sha256=
|
|
6
|
+
psqlpy/_internal.cpython-310-aarch64-linux-gnu.so,sha256=gRrCf8tk4wBjfEH06626rPhfzfAs7sXNNO8gCguUveU,14738912
|
|
7
|
+
psqlpy/_internal/__init__.pyi,sha256=m2N4d8gV4MK-Vn-XaT0xa2ZSu11-uL6HUqcfXBPIExg,59535
|
|
8
8
|
psqlpy/_internal/exceptions.pyi,sha256=6GQls4kgEjd9JXl8B8i9ycf_ktYcXFeLAKp_qiwsdHk,4970
|
|
9
9
|
psqlpy/_internal/extra_types.pyi,sha256=47STvXQt2VQrPMCu3fmYR8-FmHD7fDh3NOerNjSCe6g,16999
|
|
10
10
|
psqlpy/_internal/row_factories.pyi,sha256=Viim3tpp1_7KrzZAAIJ6U9gaI_wKVWI4Y2UAO_OAlUA,1449
|
|
@@ -12,4 +12,4 @@ psqlpy/exceptions.py,sha256=A2TTXu7b4w8_j64ZIUfSJB-ywmWn9rJclANapflv6So,1973
|
|
|
12
12
|
psqlpy/extra_types.py,sha256=q51BPqYfsYic6j1RMfN8mAFg_FWiMF-5hfG2fhy8kIU,1613
|
|
13
13
|
psqlpy/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
psqlpy/row_factories.py,sha256=QtTUEF1oNSANT6HMyk7tAS-LluCfLC7w2mYoJ5c8X-0,107
|
|
15
|
-
psqlpy-0.11.
|
|
15
|
+
psqlpy-0.11.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|