浏览代码

add function get mongo names and get internal names to parseMapping

tsteuer 5 年之前
父节点
当前提交
5db7bf63c6
共有 1 个文件被更改,包括 10 次插入0 次删除
  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:
         '''