database-wrapper-mysql 0.2.13__tar.gz → 0.2.16__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: database_wrapper_mysql
3
- Version: 0.2.13
3
+ Version: 0.2.16
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.2.13
35
+ Requires-Dist: database_wrapper==0.2.16
36
36
  Requires-Dist: mysqlclient>=2.2.2
37
37
 
38
38
  # database_wrapper_mysql
@@ -81,12 +81,12 @@ class MySQL(DatabaseBackend):
81
81
  **self.config["kwargs"],
82
82
  )
83
83
  # TODO: Typings issue
84
- self.cursor = self.connection.cursor(MySqlDictCursor) # type: ignore[mysql does not have valid type hint]
84
+ self.cursor = self.connection.cursor(MySqlDictCursor)
85
85
 
86
86
  def ping(self) -> bool:
87
87
  try:
88
- self.cursor.execute("SELECT 1") # type: ignore[mysql does not have valid type hint]
89
- self.cursor.fetchone() # type: ignore[mysql does not have valid type hint]
88
+ self.cursor.execute("SELECT 1")
89
+ self.cursor.fetchone()
90
90
  except Exception as e:
91
91
  self.logger.debug(f"Error while pinging the database: {e}")
92
92
  return False
@@ -111,7 +111,7 @@ class MySQL(DatabaseBackend):
111
111
 
112
112
  self.logger.debug("Commit DB queries..")
113
113
  # TODO: Typings issue
114
- self.connection.commit() # type: ignore[mysql does not have valid type hint]
114
+ self.connection.commit()
115
115
 
116
116
  def rollback(self) -> None:
117
117
  """Rollback DB queries"""
@@ -119,4 +119,4 @@ class MySQL(DatabaseBackend):
119
119
 
120
120
  self.logger.debug("Rollback DB queries..")
121
121
  # TODO: Typings issue
122
- self.connection.rollback() # type: ignore[mysql does not have valid type hint]
122
+ self.connection.rollback()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: database_wrapper_mysql
3
- Version: 0.2.13
3
+ Version: 0.2.16
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.2.13
35
+ Requires-Dist: database_wrapper==0.2.16
36
36
  Requires-Dist: mysqlclient>=2.2.2
37
37
 
38
38
  # database_wrapper_mysql
@@ -0,0 +1,2 @@
1
+ database_wrapper==0.2.16
2
+ mysqlclient>=2.2.2
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "database_wrapper_mysql"
7
- version = "0.2.13"
7
+ version = "0.2.16"
8
8
  description = "database_wrapper for MySQL database"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -35,7 +35,7 @@ classifiers = [
35
35
  ]
36
36
  keywords = ["database", "wrapper", "python", "mysql", "mariadb"]
37
37
  dependencies = [
38
- "database_wrapper == 0.2.13",
38
+ "database_wrapper == 0.2.16",
39
39
  "mysqlclient >= 2.2.2"
40
40
  ]
41
41
 
@@ -1,2 +0,0 @@
1
- database_wrapper==0.2.13
2
- mysqlclient>=2.2.2
@@ -8,8 +8,8 @@ Part of the database_wrapper package
8
8
 
9
9
  import logging
10
10
 
11
- from .db_wrapper_mysql import DBWrapperMysql
12
11
  from .connector import MyConfig, MySQL, MySqlConnection, MySqlDictCursor
12
+ from .db_wrapper_mysql import DBWrapperMysql
13
13
 
14
14
  # Set the logger to a quiet default, can be enabled if needed
15
15
  logger = logging.getLogger("database_wrapper_mysql")