Ver Fonte

小修小补

Joey há 5 meses atrás
pai
commit
04508cf8fa
1 ficheiros alterados com 16 adições e 0 exclusões
  1. 16 0
      modules/dataSaver.dos

+ 16 - 0
modules/dataSaver.dos

@@ -33,6 +33,22 @@ def save_table(tb, table_name, isToMySQL) {
 }
 
 /*
+ *  【临时】 用于将dolphin table 存到 mysql
+ * 
+ */
+def save_table2(tb, table_name, isCreateTable) {
+
+    tb.addColumn(['creatorid', 'createtime', 'updaterid', 'updatetime'], [INT, DATETIME, INT, DATETIME]);
+
+    conn = connect_mysql('raw_db');
+        
+    odbc::append(conn, tb, table_name , isCreateTable, false);
+        
+    conn.close()
+    
+}
+
+/*
  * 存私募基金净值到本地dolphindb
  *
  * save_hedge_fund_nav_to_local(tb_nav)