commons-metrics 0.0.8__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.
- commons_metrics/__init__.py +1 -1
- commons_metrics/repositories.py +6 -6
- {commons_metrics-0.0.8.dist-info → commons_metrics-0.0.9.dist-info}/METADATA +1 -1
- commons_metrics-0.0.9.dist-info/RECORD +9 -0
- commons_metrics-0.0.8.dist-info/RECORD +0 -9
- {commons_metrics-0.0.8.dist-info → commons_metrics-0.0.9.dist-info}/WHEEL +0 -0
- {commons_metrics-0.0.8.dist-info → commons_metrics-0.0.9.dist-info}/licenses/LICENSE +0 -0
- {commons_metrics-0.0.8.dist-info → commons_metrics-0.0.9.dist-info}/top_level.txt +0 -0
commons_metrics/__init__.py
CHANGED
commons_metrics/repositories.py
CHANGED
|
@@ -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
|
|
|
@@ -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=mApyE6cnpgSAG-y5g7o1HsNdF7eywuyTjhKRoVSv0OU,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.8.dist-info/licenses/LICENSE,sha256=jsHZ2Sh1wCL74HC25pDDGXCyQ0xgsTAy62FvEnehKIg,1067
|
|
6
|
-
commons_metrics-0.0.8.dist-info/METADATA,sha256=GA0wFJ9p3TC5IgAoZJdj2DMGutO5OpXb-YWefmTforM,401
|
|
7
|
-
commons_metrics-0.0.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
-
commons_metrics-0.0.8.dist-info/top_level.txt,sha256=lheUN-3OKdU3A8Tg8Y-1IEB_9i_vVRA0g_FOiUsTQz8,16
|
|
9
|
-
commons_metrics-0.0.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|