zvtvz / zvt

modular quant framework.
https://zvt.readthedocs.io/en/latest/
MIT License
3.13k stars 856 forks source link

support mysql db as engine #75

Closed markqiu closed 3 years ago

markqiu commented 4 years ago

add the following configuration in config.json: "db_engine": "mysql", "mysql_password": "???", "mysql_username": "???", "mysql_server_address": "???", "mysql_server_port": ???, "db_name": "???"

codecov[bot] commented 4 years ago

Codecov Report

Merging #75 (640e317) into master (05c17e3) will decrease coverage by 0.00%. The diff coverage is 86.36%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #75      +/-   ##
==========================================
- Coverage   53.15%   53.15%   -0.01%     
==========================================
  Files         163      163              
  Lines        6596     6598       +2     
==========================================
+ Hits         3506     3507       +1     
- Misses       3090     3091       +1     
Impacted Files Coverage Δ
zvt/app.py 0.00% <ø> (ø)
zvt/contract/zvt_context.py 87.50% <66.66%> (-12.50%) :arrow_down:
zvt/contract/register.py 89.23% <83.33%> (-0.33%) :arrow_down:
zvt/contract/schema.py 68.10% <100.00%> (ø)
zvt/domain/meta/stock_meta.py 94.11% <100.00%> (ø)
zvt/domain/trader_info.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 05c17e3...1bcfb71. Read the comment docs.

foolcage commented 3 years ago

目前和主分支相差有点多,其他sql类型db的支持我会给一个参考实现。 你那边joinquant等其他数据的集成可以以插件的方式来分享?

markqiu commented 3 years ago

可以的,以什么形式分享都可以。只是需要有文档或者有人指导一下就好啦。 @foolcage