Skip to content

Commit 237f6f3

Browse files
committed
Release 1.6.0
1 parent 3b3e732 commit 237f6f3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+27722
-7136
lines changed

docs/_static/basic.css

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,3 +641,63 @@ dt.field-even:after {
641641
dd.field-list {
642642
grid-column-start: 2;
643643
}
644+
645+
hr.docutils {
646+
font-weight: bold;
647+
/* border: 2px solid #7a9eec; */
648+
border: 2px solid grey;
649+
border-left-style: none;
650+
border-right-style: none;
651+
border-top-style: none;
652+
}
653+
654+
div.versionadded {
655+
color: black;
656+
/* padding: 10px 0 0 10px; */
657+
font-weight: bold;
658+
margin: 5px 0;
659+
}
660+
661+
div.versionchanged {
662+
color: black;
663+
/* padding: 0 10px 0 0; */
664+
font-weight: bold;
665+
margin: 5px 0;
666+
}
667+
668+
span.added {
669+
background: #eeffcc ;
670+
border: 2px solid #aacc99;
671+
border-left-style: none;
672+
border-right-style: none;
673+
padding: 5px;
674+
}
675+
676+
span.changed {
677+
background: #fbe3e4 ;
678+
border: 2px solid #fbc2c4;
679+
border-left-style: none;
680+
border-right-style: none;
681+
padding: 5px;
682+
}
683+
684+
dl.class, dl.exception, dl.data, dl.function {
685+
/* background: #fbe3e4 ;*/
686+
border: 1px solid grey;
687+
border-top-style: none;
688+
border-left-style: none;
689+
border-right-style: none;
690+
/* padding: 3px;*/
691+
}
692+
693+
dt.py {
694+
background: #f8f8f8;
695+
/* border: 2px solid #aacc99;*/
696+
/* border: 2px solid #ffcccc; /*#ffd324;*/
697+
/* border: 2px solid #fbc2c4;*/
698+
border: 1px solid #e1e1e8;
699+
border-top-style: none;
700+
border-left-style: none;
701+
/* border-right-style: none; */
702+
padding: 2px 5px;
703+
}

docs/changelog.txt

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

5+
Version 1.6.0
6+
=============
7+
8+
* Further code optimizations.
9+
* Addressing issues reported by pylint.
10+
* Updated Firebird OO API (interface extensions between 3.0.7->3.0.10, 4.0.0->4.0.2)
11+
* Improved documentation.
12+
513
Version 1.5.2
614
=============
715

@@ -16,8 +24,8 @@ Version 1.5.1
1624
Version 1.5.0
1725
=============
1826

19-
* Fix: `.create_database()` now use server configuration user/password if either is not
20-
specified in database configuration (like `.connect()`)
27+
* Fix: `~firebird.driver.core.create_database()` now use server configuration user/password
28+
if either is not specified in database configuration (like `.connect()`)
2129
* Fix: Problem in `.Server` processing incomplete LINE responses.
2230
* New: `verbint` parameter for `.ServerDbServices3.backup()` and `.ServerDbServices3.restore()`
2331

@@ -59,12 +67,13 @@ Version 1.4.0
5967
Improvements:
6068
-------------
6169

62-
* Added `role` parameter to `.connect_server` and `.SPB_ATTACH`.
63-
* Added `encoding` parameter to `.SPB_ATTACH` with default value `ascii` - used to encode
64-
`config`, `user`, `password` and `expected_db` values.
65-
* Added `encoding` parameter to `.TPB` with default value `ascii` - used to encode table names.
66-
* `.DPB` parameter `charset` is now used to determine encoding for `config`, `user`,
67-
`password` and `role` values.
70+
* Added `role` parameter to `.connect_server` and `~firebird.driver.core.SPB_ATTACH`.
71+
* Added `encoding` parameter to `~firebird.driver.core.SPB_ATTACH` with default value
72+
`ascii` - used to encode `config`, `user`, `password` and `expected_db` values.
73+
* Added `encoding` parameter to `~firebird.driver.core.TPB` with default value `ascii`
74+
- used to encode table names.
75+
* `~firebird.driver.core..DPB` parameter `charset` is now used to determine encoding for
76+
`config`, `user`, `password` and `role` values.
6877
* `.connect_server` has new `encoding` parameter with default value `ascii` that is passed
6978
to new `.Server.encoding` attribute. `.Server.encoding` is used to encode/decode various
7079
string values passed between client and server in parameter buffers (see below), and text
@@ -97,9 +106,12 @@ Version 1.3.4
97106
* User-defined encoding for string parameter and response values exchanged between driver
98107
and Firebird engine. This includes TPB, DPB, SPB and various service values:
99108

100-
- `.TPB`: New `encoding` constructor parameter & attribute. Used for `table names` in table reservation.
101-
- `.DPB`: Encoding based on connection charset for `config`, `user name`, `password` and `role`.
102-
- `.SPB`: New `encoding` constructor parameter & attribute. Used for `config`, `user name`, `password` and `expected database`.
109+
- `~firebird.driver.core.TPB`: New `encoding` constructor parameter & attribute. Used
110+
for `table names` in table reservation.
111+
- `~firebird.driver.core.DPB`: Encoding based on connection charset for `config`,
112+
`user name`, `password` and `role`.
113+
- `~firebird.driver.core..SPB`: New `encoding` constructor parameter & attribute. Used
114+
for `config`, `user name`, `password` and `expected database`.
103115
- Connection-related providers: Encoding based on connection charset.
104116
- Server and Service providers: New `.Server.encoding` attribute.
105117
* Fixed bug in `.ServerDbServices3.get_statistics` when `tables` are specified.
@@ -152,14 +164,14 @@ Version 1.3.0
152164
connected server.
153165
- New `.DatabaseConfig` options `session_time_zone`, `set_bind`, `decfloat_round` and
154166
`decfloat_traps`.
155-
- New `.DPB` parameters `session_time_zone`, `set_db_replica`, `set_bind`, `decfloat_round`
156-
and `decfloat_traps`.
167+
- New `~firebird.driver.core.DPB` parameters `session_time_zone`, `set_db_replica`,
168+
`set_bind`, `decfloat_round` and `decfloat_traps`.
157169
- New `session_time_zone` keyword parameter for `.connect()`.
158170
- Added explicit support for READ COMMITTED READ CONSISTENCY isolation (when disabled in
159171
Firebird configuration).
160172
- Support for transactions started at specified snapshot number.
161173
New `.TransactionInfoProvider.snapshot_number` property.
162-
The `.TPB` has new `at_snapshot_number` parameter.
174+
The `~firebird.driver.core.TPB` has new `at_snapshot_number` parameter.
163175
- `.backup()` and `.local_backup()` have new optional keyword-only arguments
164176
`include_data`, `keyhoder`, `keyname` and `crypt`, and `ZIP` value was added to `SrvBackupFlag`.
165177
- `.restore()` and `.local_restore()` have new optional keyword-only
@@ -180,7 +192,8 @@ Version 1.2.1
180192
Version 1.2.0
181193
=============
182194

183-
* Fix unregistered bug: `sql_dialect` is used instead `db_sql_dialect` in `.create_database`.
195+
* Fix unregistered bug: `sql_dialect` is used instead `db_sql_dialect` in
196+
`~firebird.driver.core.create_database`.
184197
* Fix (#2): error when handling input parameters with value None
185198
* Added `.Server.mode` attribute to allow fetching service output using LINE or TO_EOF method.
186199
Default mode is TO_EOF.

docs/conf.py

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
author = 'Pavel Císař'
2424

2525
# The short X.Y version
26-
version = '1.5.2'
26+
version = '1.6.0'
2727

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

3131

3232
# -- General configuration ---------------------------------------------------
@@ -35,11 +35,14 @@
3535
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3636
# ones.
3737
extensions = [
38-
'sphinx.ext.autodoc',
3938
'sphinx.ext.intersphinx',
39+
'sphinx.ext.autodoc',
4040
'sphinx.ext.napoleon',
41-
'sphinx_autodoc_typehints',
41+
'sphinx.ext.viewcode',
42+
'sphinx.ext.autosectionlabel',
43+
#'sphinx_autodoc_typehints',
4244
'sphinx.ext.todo',
45+
#'sphinx.ext.coverage',
4346
]
4447

4548
# Add any paths that contain templates here, relative to this directory.
@@ -157,6 +160,8 @@
157160

158161
# -- Extension configuration -------------------------------------------------
159162

163+
autosectionlabel_prefix_document = True
164+
160165
# Autodoc options
161166
# ---------------
162167
autodoc_default_options = {
@@ -167,9 +172,14 @@
167172
'exclude-members': '__weakref__',
168173
'show-inheritance': True,
169174
'no-inherited-members': True,
175+
'no-private-members': True,
170176
}
171177
set_type_checking_flag = True
172-
#always_document_param_types = True
178+
autodoc_class_signature = 'mixed'
179+
always_document_param_types = True
180+
autodoc_typehints = 'both' # default 'signature'
181+
autodoc_typehints_format = 'short'
182+
autodoc_typehints_description_target = 'all'
173183

174184
# Napoleon options
175185
# ----------------
@@ -181,13 +191,18 @@
181191
napoleon_use_admonition_for_references = True
182192
napoleon_use_ivar = False
183193
napoleon_use_rtype = True
194+
napoleon_use_param = True
195+
napoleon_use_keyword = True
184196
napoleon_attr_annotations = True
197+
napoleon_preprocess_types = True
185198

186199
# -- Options for intersphinx extension ---------------------------------------
187200

188201
# intersphinx
189202
intersphinx_mapping = {'python': ('https://docs.python.org/3', None),
190-
'base': ('https://firebird-base.rtfd.io/en/latest', None)}
203+
'base': ('https://firebird-base.rtfd.io/en/latest', None),
204+
'lib': ('https://firebird-lib.rtfd.io/en/latest', None),
205+
}
191206

192207
# -- Options for todo extension ----------------------------------------------
193208

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 3c3dc2b06609adf777633065a6873ca0
3+
config: 85d86d883df12c911984cba0c10182ef
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

0 commit comments

Comments
 (0)