database-wrapper-mysql 0.1.42__py3-none-any.whl → 0.1.44__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.
@@ -9,7 +9,7 @@ Part of the database_wrapper package
9
9
  import logging
10
10
 
11
11
  from .db_wrapper_mysql import DBWrapperMysql
12
- from .connector import MyConfig, MySQL
12
+ from .connector import MyConfig, MySQL, MySqlConnection, MySqlDictCursor
13
13
 
14
14
  # Set the logger to a quiet default, can be enabled if needed
15
15
  logger = logging.getLogger("database_wrapper_mysql")
@@ -18,7 +18,13 @@ if logger.level == logging.NOTSET:
18
18
 
19
19
 
20
20
  __all__ = [
21
+ # Wrappers
21
22
  "DBWrapperMysql",
22
- "MyConfig",
23
+ # Connectors
23
24
  "MySQL",
25
+ # Connection and Cursor types
26
+ "MySqlConnection",
27
+ "MySqlDictCursor",
28
+ # Helpers
29
+ "MyConfig",
24
30
  ]
@@ -76,7 +76,8 @@ class MySQL(DatabaseBackend):
76
76
  cursorclass=MySqlDictCursor,
77
77
  **self.config["kwargs"],
78
78
  )
79
- self.cursor = self.connection.cursor(MySqlDictCursor)
79
+ # TODO: Typings issue
80
+ self.cursor = self.connection.cursor(MySqlDictCursor) # type: ignore
80
81
 
81
82
  def lastInsertId(self) -> int:
82
83
  assert self.cursor, "Cursor is not initialized"
@@ -91,11 +92,13 @@ class MySQL(DatabaseBackend):
91
92
  assert self.connection, "Connection is not initialized"
92
93
 
93
94
  self.logger.debug("Commit DB queries..")
94
- self.connection.commit()
95
+ # TODO: Typings issue
96
+ self.connection.commit() # type: ignore
95
97
 
96
98
  def rollback(self) -> None:
97
99
  """Rollback DB queries"""
98
100
  assert self.connection, "Connection is not initialized"
99
101
 
100
102
  self.logger.debug("Rollback DB queries..")
101
- self.connection.rollback()
103
+ # TODO: Typings issue
104
+ self.connection.rollback() # type: ignore
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: database_wrapper_mysql
3
- Version: 0.1.42
3
+ Version: 0.1.44
4
4
  Summary: database_wrapper for MySQL database
5
5
  Author-email: Gints Murans <gm@gm.lv>
6
6
  License: GNU General Public License v3.0 (GPL-3.0)
@@ -32,7 +32,7 @@ Classifier: Topic :: Software Development
32
32
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
33
33
  Requires-Python: >=3.8
34
34
  Description-Content-Type: text/markdown
35
- Requires-Dist: database-wrapper ==0.1.42
35
+ Requires-Dist: database-wrapper ==0.1.44
36
36
  Requires-Dist: mysqlclient >=2.2.2
37
37
 
38
38
  # database_wrapper_mysql
@@ -0,0 +1,8 @@
1
+ database_wrapper_mysql/__init__.py,sha256=C_6Z9sbuvVF3Oy4xMlsekryRUZpReyOx0IhO-OCMVHY,649
2
+ database_wrapper_mysql/connector.py,sha256=OMr6iKOWYxQWW6AbZ51UcC6BRS3JFJJuV8x6Cy73gdw,3341
3
+ database_wrapper_mysql/db_wrapper_mysql.py,sha256=KjDPCEAZHuuZqaPj8w5RnZsliAR2QGA2-WoWOj1TaV0,2690
4
+ database_wrapper_mysql/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ database_wrapper_mysql-0.1.44.dist-info/METADATA,sha256=S1uvJHD1JNE8yb-vSzArngf5P4Vbt1puExOvCG67hug,2859
6
+ database_wrapper_mysql-0.1.44.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
7
+ database_wrapper_mysql-0.1.44.dist-info/top_level.txt,sha256=hYkDzASh4xmHyKkhvI7Dy7QNkBoBGy-_dSPFdAo3QcQ,23
8
+ database_wrapper_mysql-0.1.44.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- database_wrapper_mysql/__init__.py,sha256=64pcFK5IpxMmYNheQwQrBz9qSa0RGD2iqWyxcd0hZR8,489
2
- database_wrapper_mysql/connector.py,sha256=4j1oDQbruTBhlhn_Q5vhzKWAuxTEL2v28lccXKCOsmY,3203
3
- database_wrapper_mysql/db_wrapper_mysql.py,sha256=KjDPCEAZHuuZqaPj8w5RnZsliAR2QGA2-WoWOj1TaV0,2690
4
- database_wrapper_mysql/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- database_wrapper_mysql-0.1.42.dist-info/METADATA,sha256=Dsl1l49fnbTTSxfCvNXOHIgvFnopV6jIDPNeVwQzTZY,2859
6
- database_wrapper_mysql-0.1.42.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
7
- database_wrapper_mysql-0.1.42.dist-info/top_level.txt,sha256=hYkDzASh4xmHyKkhvI7Dy7QNkBoBGy-_dSPFdAo3QcQ,23
8
- database_wrapper_mysql-0.1.42.dist-info/RECORD,,