Skip to content

Commit 7f1cb3e

Browse files
committed
Release 1.3.0
1 parent efbb1b1 commit 7f1cb3e

17 files changed

+1427
-790
lines changed

docs/changelog.txt

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,53 @@
22
Changelog
33
#########
44

5+
Version 1.3.0
6+
=============
7+
8+
* Fix (#4): exeption returns non ascii-127 symbols.
9+
The error message decode uses `.fbapi.err_encoding` value that is initialized to
10+
`locale.getpreferredencoding`. Also, the decode is now done with `errors="replace"`.
11+
* Fix unregistered bug: wrong handling of milliseconds in TIME and TEMEPSTAMP datatype.
12+
* Sync _VERSION_ value with package version
13+
* Fix unregistered bug: Do not raise exception if accessed `.Statement.plan` is `None`.
14+
* Fix unregistered bug: `.get_statistics()` does not send `tables` correctly.
15+
* Fix annotations.
16+
* `.ServerTraceServices` methods now have return values.
17+
* User name added to `.TraceSession`.
18+
* Fix unregistered bug: `auth_plugin_list` configuration option is ignored
19+
* All methods of `.ServerDbServices3` except 3 related to limbo transactions have new
20+
optional keyword-only parameter `role` that is passed to called utility.
21+
* Function `.connect_server()` has new optional keyword-only parameter `expected_db`,
22+
to access services with non-default security database.
23+
24+
* Improved Firebird 4 support.
25+
26+
- Version-specific classes introduced. Internal classes `.DatabaseInfoProvider`,
27+
`.TransactionInfoProvider` and `.ServerDbServices` now implement only Firebird 4 features
28+
and descend from Firebird 3 versions. The proper variant is returned according to
29+
connected server.
30+
- New `.DatabaseConfig` options `session_time_zone`, `set_bind`, `decfloat_round` and
31+
`decfloat_traps`.
32+
- New `.DPB` parameters `session_time_zone`, `set_db_replica`, `set_bind`, `decfloat_round`
33+
and `decfloat_traps`.
34+
- New `session_time_zone` keyword parameter for `.connect()`.
35+
- Added explicit support for READ COMMITTED READ CONSISTENCY isolation (when disabled in
36+
Firebird configuration).
37+
- Support for transactions started at specified snapshot number.
38+
New `.TransactionInfoProvider.snapshot_number` property.
39+
The `.TPB` has new `at_snapshot_number` parameter.
40+
- `.backup()` and `.local_backup()` have new optional keyword-only arguments
41+
`include_data`, `keyhoder`, `keyname` and `crypt`, and `ZIP` value was added to `SrvBackupFlag`.
42+
- `.restore()` and `.local_restore()` have new optional keyword-only
43+
arguments `include_data`, `keyhoder`, `keyname`, `crypt` and `replica_mode`.
44+
- `.nbackup()` has new optional keyword-only parameter `guid`.
45+
- Support for new services.
46+
New methods `.ServerDbServices.nfix_database()` and `.set_replica_mode()`.
47+
- Support for `.Statement.timeout`, and `idle_timeout` and `statement_timeout` in `.Connection.info`.
48+
- New types: `.Features`, `.ReplicaMode`, `.CancelType`, `.DecfloatRound`, `.DecfloatTraps`,
49+
`.ConnectionFlag` and `.EncryptionFlag`. Firebird 4-related values added to some other
50+
enum types.
51+
552
Version 1.2.1
653
=============
754

@@ -10,9 +57,9 @@ Version 1.2.1
1057
Version 1.2.0
1158
=============
1259

13-
* Fix unregistered bug: `sql_dialect` is used instead `db_sql_dialect` in `create_database`.
60+
* Fix unregistered bug: `sql_dialect` is used instead `db_sql_dialect` in `.create_database`.
1461
* Fix (#2): error when handling input parameters with value None
15-
* Added `Server.mode` attribute to allow fetching service output using LINE or TO_EOF method.
62+
* Added `.Server.mode` attribute to allow fetching service output using LINE or TO_EOF method.
1663
Default mode is TO_EOF.
1764

1865
Version 1.1.0

docs/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
# -- Project information -----------------------------------------------------
2020

2121
project = 'firebird-driver'
22-
copyright = '2020, The Firebird Project'
22+
copyright = '2020-2021, The Firebird Project'
2323
author = 'Pavel Císař'
2424

2525
# The short X.Y version
26-
version = '1.2.1'
26+
version = '1.3.0'
2727

2828
# The full version, including alpha/beta/rc tags
29-
release = '1.2.1'
29+
release = '1.3.0'
3030

3131

3232
# -- General configuration ---------------------------------------------------

docs/ref-core.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ ServerServiceProvider
9696
---------------------
9797
.. autoclass:: ServerServiceProvider
9898

99+
ServerDbServices3
100+
-----------------
101+
.. autoclass:: ServerDbServices3
102+
99103
ServerDbServices
100104
----------------
101105
.. autoclass:: ServerDbServices

docs/ref-fbapi.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,12 @@ Basic types
260260
:no-show-inheritance:
261261
:no-inherited-members:
262262

263+
Variables
264+
=========
265+
266+
.. autodata:: err_encoding
267+
:no-value:
268+
263269
Functions
264270
=========
265271

docs/ref-main.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,17 @@ Exceptions:
4646
and `NotSupportedError`
4747

4848
Enums:
49-
`NetProtocol`, `DirectoryCode`, `PageSize`, `DBKeyScope`, `DbInfoCode`, `TraInfoCode`,
50-
`TraInfoIsolation`, `TraInfoReadCommitted`, `TraInfoAccess`, `TraIsolation`, `TraReadCommitted`,
49+
`NetProtocol`, `DirectoryCode`, `PageSize`, `DBKeyScope`, `DbInfoCode`, `Features`,
50+
`TraInfoCode`, `ReplicaMode`, `StmtInfoCode`, `TraInfoIsolation`,
51+
`TraInfoReadCommitted`, `TraInfoAccess`, `TraIsolation`, `TraReadCommitted`,
5152
`TraLockResolution`, `TraAccessMode`, `TableShareMode`, `TableAccessMode`, `Isolation`,
5253
`DefaultAction`, `StatementType`, `BlobType`, `DbAccessMode`, `DbSpaceReservation`,
53-
`DbWriteMode`, `ShutdownMode`, `OnlineMode` and `ShutdownMethod`
54+
`DbWriteMode`, `ShutdownMode`, `OnlineMode`, `ShutdownMethod`, `CancelType`,
55+
`DecfloatRound` and `DecfloatTraps`
5456

5557
Flags:
5658
`ServerCapability`, `SrvRepairFlag`, `SrvStatFlag`, `SrvBackupFlag`,
57-
`SrvRestoreFlag` and `SrvNBackupFlag`
59+
`SrvRestoreFlag`, `SrvNBackupFlag`, `ConnectionFlag` and `EncryptionFlag`
5860

5961
Globals and other objects required by Python DB API 2.0:
6062
`apilevel`, `threadsafety`, `paramstyle`, `Date`, `Time`, `Timestamp`,
@@ -67,7 +69,7 @@ Helper constants:
6769
and `DESCRIPTION_NULL_OK`
6870

6971
Helper functions:
70-
`get_timezone`
72+
`get_timezone()`
7173

7274
fbapi
7375
-----

docs/ref-types.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,14 @@ DbInfoCode
167167
----------
168168
.. autoclass:: DbInfoCode
169169

170+
Features
171+
--------
172+
.. autoclass:: Features
173+
174+
ReplicaMode
175+
-----------
176+
.. autoclass:: ReplicaMode
177+
170178
StmtInfoCode
171179
------------
172180
.. autoclass:: StmtInfoCode
@@ -343,6 +351,18 @@ ImpCompiler
343351
-----------
344352
.. autoclass:: ImpCompiler
345353

354+
CancelType
355+
----------
356+
.. autoclass:: CancelType
357+
358+
DecfloatRound
359+
-------------
360+
.. autoclass:: DecfloatRound
361+
362+
DecfloatTraps
363+
-------------
364+
.. autoclass:: DecfloatTraps
365+
346366
Flags
347367
=====
348368

@@ -366,6 +386,10 @@ ConnectionFlag
366386
--------------
367387
.. autoclass:: ConnectionFlag
368388

389+
EncryptionFlag
390+
--------------
391+
.. autoclass:: EncryptionFlag
392+
369393
ServerCapability
370394
----------------
371395
.. autoclass:: ServerCapability

docs/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
sphinx-bootstrap-theme>=0.7.1
2-
sphinx-autodoc-typehints>=1.10.3
1+
sphinx-bootstrap-theme>=0.8.0
2+
sphinx-autodoc-typehints>=1.12.0
33
.

0 commit comments

Comments
 (0)