@@ -6,6 +6,43 @@ list](https://github.com/trinodb/trino-python-client/tags), the
6
6
[ README] ( https://github.com/trinodb/trino-python-client/blob/master/README.md )
7
7
and the [ PyPI page] ( https://pypi.org/project/trino/ ) .
8
8
9
+ ## Release 0.321.0
10
+
11
+ * Add support for SQLAlchemy 2.0.
12
+ ([ #307 ] ( https://github.com/trinodb/trino-python-client/issues/307 ) )
13
+ * Add support for ` varbinary ` query parameters.
14
+ ([ #299 ] ( https://github.com/trinodb/trino-python-client/issues/299 ) )
15
+ * Add ` Cursor.describe ` method to return some metadata about the results of a
16
+ query.
17
+ ([ #302 ] ( https://github.com/trinodb/trino-python-client/issues/302 ) )
18
+ * Add ` internal_size ` , ` precision ` and ` scale ` in ` Cursor.description ` .
19
+ ([ #315 ] ( https://github.com/trinodb/trino-python-client/issues/315 ) )
20
+ * Add support for chaining methods on ` Cursor.execute ` .
21
+ ([ #279 ] ( https://github.com/trinodb/trino-python-client/issues/279 ) )
22
+ * Fix bug where passing ` roles ` to ` Connection ` did not enable the provided roles.
23
+ ([ #311 ] ( https://github.com/trinodb/trino-python-client/issues/311 ) )
24
+
25
+ ### Breaking Changes
26
+
27
+ * The client now maps query results to Python types by default. In older
28
+ versions this could be enabled explicitly by passing
29
+ ` experimental_python_types=True ` to the ` trino.dbapi.connect ` method. To
30
+ restore the old behaviour of mapping results to primitive types you can pass
31
+ ` legacy_primitive_types=True ` to the ` trino.dbapi.connect ` method. See the
32
+ [ documentation] ( https://github.com/trinodb/trino-python-client#legacy-primitive-types )
33
+ to learn more.
34
+ ([ #305 ] ( https://github.com/trinodb/trino-python-client/issues/305 ) )
35
+ * Add support for setting the session timezone. When not set explicitly it
36
+ defaults to the client side local timezone. This changes the behaviour of the
37
+ client in backward-incompatible way. To preserve the behaviour from client
38
+ versions older than 0.321.0 you can explicitly pass ` timezone='UTC' ` to
39
+ ` trino.dbapi.connect ` when creating the connection.
40
+ ([ #27 ] ( https://github.com/trinodb/trino-python-client/issues/27 ) )
41
+ * Add support for variable precision datetime types. This change makes temporal
42
+ types contain the correct precision as computed by Trino instead of being
43
+ always limited to millisecond precision.
44
+ ([ #300 ] ( https://github.com/trinodb/trino-python-client/issues/300 ) )
45
+
9
46
## Release 0.320.0
10
47
11
48
* Fix handling of expired access tokens when using OAuth 2 authentication.
0 commit comments