Browse Source

add function get mongo names and get internal names to parseMapping

tsteuer 5 years ago
parent
commit
5db7bf63c6
1 changed files with 10 additions and 0 deletions
  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")
         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:
     def get_types(self) -> dict:
         '''
         '''