Explorar o código

add function get mongo names and get internal names to parseMapping

tsteuer %!s(int64=5) %!d(string=hai) anos
pai
achega
5db7bf63c6
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  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:
         '''