dsw-database 4.18.3__tar.gz → 4.19.1__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dsw-database
3
- Version: 4.18.3
3
+ Version: 4.19.1
4
4
  Summary: Library for managing DSW database
5
5
  Author-email: Marek Suchánek <marek.suchanek@ds-wizard.org>
6
6
  License: Apache License 2.0
@@ -20,7 +20,7 @@ Description-Content-Type: text/markdown
20
20
  License-File: LICENSE
21
21
  Requires-Dist: psycopg[binary]
22
22
  Requires-Dist: tenacity
23
- Requires-Dist: dsw-config==4.18.3
23
+ Requires-Dist: dsw-config==4.19.1
24
24
  Dynamic: license-file
25
25
 
26
26
  # Data Stewardship Wizard: Database
@@ -9,9 +9,9 @@ BuildInfo = namedtuple(
9
9
  )
10
10
 
11
11
  BUILD_INFO = BuildInfo(
12
- version='v4.18.3~312000e',
13
- built_at='2025-05-24 06:12:08Z',
14
- sha='312000e4bc3deae312e1af2f76e5406fc1eb36fd',
12
+ version='v4.19.1~c54bb99',
13
+ built_at='2025-06-06 15:13:51Z',
14
+ sha='c54bb99f978b4c35c727dce8a2384474b6eaf51d',
15
15
  branch='HEAD',
16
- tag='v4.18.3',
16
+ tag='v4.19.1',
17
17
  )
@@ -1,3 +1,4 @@
1
+ # pylint: disable=no-member
1
2
  import datetime
2
3
  import logging
3
4
  import typing
@@ -619,8 +620,10 @@ class PostgresConnection:
619
620
  self._connect_db()
620
621
 
621
622
  @property
622
- def connection(self):
623
+ def connection(self) -> psycopg.Connection:
623
624
  self.connect()
625
+ if not self._connection:
626
+ raise RuntimeError('Connection is not established')
624
627
  return self._connection
625
628
 
626
629
  def new_cursor(self, use_dict: bool = False):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dsw-database
3
- Version: 4.18.3
3
+ Version: 4.19.1
4
4
  Summary: Library for managing DSW database
5
5
  Author-email: Marek Suchánek <marek.suchanek@ds-wizard.org>
6
6
  License: Apache License 2.0
@@ -20,7 +20,7 @@ Description-Content-Type: text/markdown
20
20
  License-File: LICENSE
21
21
  Requires-Dist: psycopg[binary]
22
22
  Requires-Dist: tenacity
23
- Requires-Dist: dsw-config==4.18.3
23
+ Requires-Dist: dsw-config==4.19.1
24
24
  Dynamic: license-file
25
25
 
26
26
  # Data Stewardship Wizard: Database
@@ -1,3 +1,3 @@
1
1
  psycopg[binary]
2
2
  tenacity
3
- dsw-config==4.18.3
3
+ dsw-config==4.19.1
@@ -4,7 +4,7 @@ build-backend = 'setuptools.build_meta'
4
4
 
5
5
  [project]
6
6
  name = 'dsw-database'
7
- version = "4.18.3"
7
+ version = "4.19.1"
8
8
  description = 'Library for managing DSW database'
9
9
  readme = 'README.md'
10
10
  keywords = ['dsw', 'database']
@@ -26,7 +26,7 @@ dependencies = [
26
26
  'psycopg[binary]',
27
27
  'tenacity',
28
28
  # DSW
29
- "dsw-config==4.18.3",
29
+ "dsw-config==4.19.1",
30
30
  ]
31
31
 
32
32
  [project.urls]
File without changes
File without changes
File without changes
File without changes