commons-metrics 0.0.7__py3-none-any.whl → 0.0.9__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.
@@ -3,4 +3,4 @@ from .database import DatabaseConnection
3
3
  from .repositories import ComponentRepository
4
4
 
5
5
  __all__ = ['Util', 'DatabaseConnection', 'ComponentRepository']
6
- __version__ = '0.0.7'
6
+ __version__ = '0.0.9'
@@ -8,8 +8,8 @@ class ComponentRepository:
8
8
  Initialize repository with database connection
9
9
  """
10
10
  self.db = db_connection
11
-
12
- def save_component(self, technical_name, id_type, status):
11
+
12
+ def save_component(self, technical_name, functional_name, id_type, folder, class_name, status):
13
13
  """
14
14
  Inserts a new component into schmesys.component table
15
15
 
@@ -23,12 +23,12 @@ class ComponentRepository:
23
23
  cursor = self.db.connection.cursor()
24
24
 
25
25
  insert_query = """
26
- INSERT INTO schmesys.component(technical_name, id_type, status)
27
- VALUES (%s, %s, %s)
26
+ INSERT INTO schmesys.component(technical_name,functional_name, id_type, folder, class_name, status)
27
+ VALUES (%s, %s, %s, %s, %s, %s)
28
28
  RETURNING id;
29
29
  """
30
-
31
- cursor.execute(insert_query, (technical_name, id_type, status))
30
+
31
+ cursor.execute(insert_query, (technical_name, functional_name, id_type, folder, class_name, status))
32
32
  component_id = cursor.fetchone()[0]
33
33
  self.db.commit_transaction()
34
34
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: commons_metrics
3
- Version: 0.0.7
3
+ Version: 0.0.9
4
4
  Summary: A simple library for basic statistical calculations
5
5
  Author: Bancolombia
6
6
  Author-email: omar.david.pino@email.com
@@ -0,0 +1,9 @@
1
+ commons_metrics/__init__.py,sha256=GdTtRHszpEkb-1smZfNDg1XOSZLuyWJlx1WTKvRK4uo,196
2
+ commons_metrics/database.py,sha256=570TtLZ9psNzvIp75UFLYph34cKVEz6eGJgxXyRyjW4,1285
3
+ commons_metrics/repositories.py,sha256=2spfLDfzg6p0HW_bZVhfrWv6i66vCwfKhLpYz5pLq14,2665
4
+ commons_metrics/util.py,sha256=98zuynalXumQRh-BB0Bcjyoh6vS2BTOUM8tVgr7iS9Q,1225
5
+ commons_metrics-0.0.9.dist-info/licenses/LICENSE,sha256=jsHZ2Sh1wCL74HC25pDDGXCyQ0xgsTAy62FvEnehKIg,1067
6
+ commons_metrics-0.0.9.dist-info/METADATA,sha256=mYw-3-l43Xe9id5Z3-YbN-pORVid5JUBMNeGMuaoyBc,401
7
+ commons_metrics-0.0.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
+ commons_metrics-0.0.9.dist-info/top_level.txt,sha256=lheUN-3OKdU3A8Tg8Y-1IEB_9i_vVRA0g_FOiUsTQz8,16
9
+ commons_metrics-0.0.9.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- commons_metrics/__init__.py,sha256=elSwj8Oszh-JG6ZSZD0_GLgw0DJRjjBpsFUgsJNcLIM,196
2
- commons_metrics/database.py,sha256=570TtLZ9psNzvIp75UFLYph34cKVEz6eGJgxXyRyjW4,1285
3
- commons_metrics/repositories.py,sha256=GtAsVMbcfyftKQlMhyxLqxwVi3B7EwbopmHafZgxxJE,2559
4
- commons_metrics/util.py,sha256=98zuynalXumQRh-BB0Bcjyoh6vS2BTOUM8tVgr7iS9Q,1225
5
- commons_metrics-0.0.7.dist-info/licenses/LICENSE,sha256=jsHZ2Sh1wCL74HC25pDDGXCyQ0xgsTAy62FvEnehKIg,1067
6
- commons_metrics-0.0.7.dist-info/METADATA,sha256=Vq78qEafWd7_XZUvuJEPV5OEq-e4dSrTPCu4u8nguMo,401
7
- commons_metrics-0.0.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
- commons_metrics-0.0.7.dist-info/top_level.txt,sha256=lheUN-3OKdU3A8Tg8Y-1IEB_9i_vVRA0g_FOiUsTQz8,16
9
- commons_metrics-0.0.7.dist-info/RECORD,,