Pārlūkot izejas kodu

add function get mongo names and get internal names to parseMapping

tsteuer 5 gadi atpakaļ
vecāks
revīzija
5db7bf63c6
1 mainītis faili ar 10 papildinājumiem un 0 dzēšanām
  1. 10 0
      cdplib/db_migration/ParseMapping.py

+ 10 - 0
cdplib/db_migration/ParseMapping.py

@@ -97,6 +97,16 @@ class ParseMapping:
         '''
         '''
         return self._get_info(key="date_format")
+    
+    def get_internal_names(self) -> dict:
+        '''
+        '''
+        return self._get_info(key="internal_name")
+
+    def get_mongo_names(self) -> dict:
+        '''
+        '''
+        return self._get_info(key="mongo_name")
 
     def get_types(self) -> dict:
         '''