You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -469,6 +469,32 @@ conn = connect(
469
469
)
470
470
```
471
471
472
+
## Spooled protocol
473
+
474
+
The client spooling protocol requires [a Trino server with spooling protocol support](https://trino.io/docs/current/client/client-protocol.html#spooling-protocol).
475
+
476
+
Enable the spooling protocol by specifying a supported encoding in the `encoding` parameter:
477
+
478
+
Supported encodings are `json`, `json+lz4`and`json+zstd`.
479
+
480
+
```python
481
+
from trino.dbapi import connect
482
+
483
+
conn= connect(
484
+
encoding="json+zstd"
485
+
)
486
+
```
487
+
488
+
or a list of supported encodings in order of preference:
489
+
490
+
```python
491
+
from trino.dbapi import connect
492
+
493
+
conn= connect(
494
+
encoding=["json+zstd", "json"]
495
+
)
496
+
```
497
+
472
498
## Transactions
473
499
474
500
The client runs by default in*autocommit* mode. To enable transactions, set
0 commit comments