database-wrapper 0.1.73__py3-none-any.whl → 0.1.74__py3-none-any.whl
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.
- database_wrapper/config.py +3 -3
- database_wrapper/db_backend.py +11 -1
- {database_wrapper-0.1.73.dist-info → database_wrapper-0.1.74.dist-info}/METADATA +5 -5
- {database_wrapper-0.1.73.dist-info → database_wrapper-0.1.74.dist-info}/RECORD +6 -6
- {database_wrapper-0.1.73.dist-info → database_wrapper-0.1.74.dist-info}/WHEEL +0 -0
- {database_wrapper-0.1.73.dist-info → database_wrapper-0.1.74.dist-info}/top_level.txt +0 -0
database_wrapper/config.py
CHANGED
|
@@ -3,7 +3,7 @@ from typing import Any
|
|
|
3
3
|
CONFIG: dict[str, Any] = {
|
|
4
4
|
# These are supposed to be set automatically by a git pre-compile script
|
|
5
5
|
# They are one git commit hash behind, if used automatically
|
|
6
|
-
"git_commit_hash": "
|
|
7
|
-
"git_commit_date": "
|
|
8
|
-
"app_version": "0.1.
|
|
6
|
+
"git_commit_hash": "1d7d0a02147ef79e7d346e2144746e4f23c46eb4",
|
|
7
|
+
"git_commit_date": "22.12.2024 02:09",
|
|
8
|
+
"app_version": "0.1.74",
|
|
9
9
|
}
|
database_wrapper/db_backend.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import logging
|
|
2
2
|
import socket
|
|
3
3
|
|
|
4
|
-
from typing import Any
|
|
4
|
+
from typing import Any, Coroutine
|
|
5
5
|
from threading import Event
|
|
6
6
|
from contextvars import ContextVar
|
|
7
7
|
|
|
@@ -180,6 +180,16 @@ class DatabaseBackend:
|
|
|
180
180
|
"""
|
|
181
181
|
raise Exception("Not implemented")
|
|
182
182
|
|
|
183
|
+
def ping(self) -> bool | Coroutine[Any, Any, bool]:
|
|
184
|
+
"""
|
|
185
|
+
Check if connection is alive.
|
|
186
|
+
This should be done in try except block and bool should be returned.
|
|
187
|
+
|
|
188
|
+
Returns:
|
|
189
|
+
bool: Connection status
|
|
190
|
+
"""
|
|
191
|
+
raise Exception("Not implemented")
|
|
192
|
+
|
|
183
193
|
###############
|
|
184
194
|
### Helpers ###
|
|
185
195
|
###############
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: database_wrapper
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.74
|
|
4
4
|
Summary: A Different Approach to Database Wrappers in Python
|
|
5
5
|
Author-email: Gints Murans <gm@gm.lv>
|
|
6
6
|
License: GNU General Public License v3.0 (GPL-3.0)
|
|
@@ -33,13 +33,13 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
33
33
|
Requires-Python: >=3.8
|
|
34
34
|
Description-Content-Type: text/markdown
|
|
35
35
|
Provides-Extra: pgsql
|
|
36
|
-
Requires-Dist: database_wrapper_pgsql==0.1.
|
|
36
|
+
Requires-Dist: database_wrapper_pgsql==0.1.74; extra == "pgsql"
|
|
37
37
|
Provides-Extra: mysql
|
|
38
|
-
Requires-Dist: database_wrapper_mysql==0.1.
|
|
38
|
+
Requires-Dist: database_wrapper_mysql==0.1.74; extra == "mysql"
|
|
39
39
|
Provides-Extra: mssql
|
|
40
|
-
Requires-Dist: database_wrapper_mssql==0.1.
|
|
40
|
+
Requires-Dist: database_wrapper_mssql==0.1.74; extra == "mssql"
|
|
41
41
|
Provides-Extra: sqlite
|
|
42
|
-
Requires-Dist: database_wrapper_sqlite==0.1.
|
|
42
|
+
Requires-Dist: database_wrapper_sqlite==0.1.74; extra == "sqlite"
|
|
43
43
|
Provides-Extra: all
|
|
44
44
|
Requires-Dist: database_wrapper[mssql,mysql,pgsql,sqlite]; extra == "all"
|
|
45
45
|
Provides-Extra: dev
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
database_wrapper/__init__.py,sha256=p-HLz9_zByIUeAS1tVxS7ZieslsryHSLw_IKZphqB7w,1200
|
|
2
2
|
database_wrapper/abc.py,sha256=JiQo6Yfv7xALrrHeICJCSgmyP2gHrp16Ov83mPBTGbE,2058
|
|
3
3
|
database_wrapper/common.py,sha256=fsxe28o_4xCrotPbB274dmzQ9rOyes0sBtcHog-9RVc,258
|
|
4
|
-
database_wrapper/config.py,sha256=
|
|
5
|
-
database_wrapper/db_backend.py,sha256=
|
|
4
|
+
database_wrapper/config.py,sha256=rqGxPKP9XcnxMigO4VXmgZmUXcMeQtD5W1qF-LL5tmk,334
|
|
5
|
+
database_wrapper/db_backend.py,sha256=TGqnRJ1Jsk3GZibpXRanMDTEJlkc4POEoZZH506vtVs,7480
|
|
6
6
|
database_wrapper/db_data_model.py,sha256=boLYcSJZhSUMeeUd21iEERIo5K-oERPG_gBAdfNOKDQ,14077
|
|
7
7
|
database_wrapper/db_wrapper.py,sha256=wjdoBqoR4OucmntsYW4cmvFe3VGo7Ca16fGb2RQnCg4,14355
|
|
8
8
|
database_wrapper/db_wrapper_async.py,sha256=iUcvRZ1L3wNBt0MCx6tSYbtcuN7Kzgq37HkShqnOoXA,14739
|
|
@@ -11,7 +11,7 @@ database_wrapper/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
11
11
|
database_wrapper/serialization.py,sha256=_yA1srkS6Vec3TMOAYpsCAbJFuB6nrblt8uJrY-7s0E,2046
|
|
12
12
|
database_wrapper/utils/__init__.py,sha256=uC8YaJqfyFIZIeNdTRTbZwcOUVhmnS5eyOG-9gMs70c,96
|
|
13
13
|
database_wrapper/utils/dataclass_addons.py,sha256=r8DD40tXA_DLMQJx62UqVaRe4Gr9BSOmChLRhxawet4,770
|
|
14
|
-
database_wrapper-0.1.
|
|
15
|
-
database_wrapper-0.1.
|
|
16
|
-
database_wrapper-0.1.
|
|
17
|
-
database_wrapper-0.1.
|
|
14
|
+
database_wrapper-0.1.74.dist-info/METADATA,sha256=nIbfdvAU4Oe0svNvvNlHzkwYHlddKn0luPBSL0klC7E,3440
|
|
15
|
+
database_wrapper-0.1.74.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
16
|
+
database_wrapper-0.1.74.dist-info/top_level.txt,sha256=QcnS4ocJygxcKE5eoOqriuja306oVu-zJRn6yjRRhBw,17
|
|
17
|
+
database_wrapper-0.1.74.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|