From 47e1671feffc2101222d822c1cb6e449bb1b2d4c Mon Sep 17 00:00:00 2001 From: LimingFang Date: Tue, 2 Jul 2019 14:26:29 +0800 Subject: [PATCH] mod_some_table --- .DS_Store | Bin 0 -> 8196 bytes docs/database.md | 84 +++++++++++++++++++++++------------------------ 2 files changed, 42 insertions(+), 42 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..813f7f98e33dcbc26d59d415fc6dc6646067ad7e GIT binary patch literal 8196 zcmeHM&u<$=6n>MYblo(~CQX_kKw4ptDm98yl{5#0*g6TwP?``&B~enGUGK(OvEDJe z>!fZ7@`b+v!4(OKKY%L|M=o4Ba^N38LY&JtvlG`|CpTJ!GGooW=b87-oB4Kr_^pYE zm0I2{q8TDGkcBiyP@IxPyT}7+NYzY2GT@1PY7?iJ<{)*_3}^;41DXNNfM(!4GJrc< zB;$;GKWo*cW#3L$X(coZS^+tjVCfe6Pw;cv|pnnXZOQdcJ5))RQ>(pHp3uE=jVT8Ll=fG zzI4eb6pX@X;bCQ;A68N)Z6zfq-WK21oOIt+`UdA=S9jb8fqz&vCzp7XIzi;e5*&Cw zOm;pAB99-Icq{S}*-s^FkdCV6%+b;9#f4dGVgAnXtaY@wI6rH>b^Ffoalx2=^VU1% z-A4QI(HF;Gej}$!Or1M4mVNJ*-$LsW5!4RU1ldm~6a3vYyHmV8a%J@Dm^nUiZG3Wk z>iX35%+$*hue@3{uena`vwAEByTn5tm%^4`HOCT6zg*+dTI?TSs++0*D6IsK(KL|* ztoz=lPpdZCP1sC6t&p9*ANzi^U5^8Ab#E{6(@o)_7V|J%<4KSPJlg7M-P)1fQ@>G; z_BcF>5v(?aS@OV-6UYJl=9Ux3PE_|x?T4Y``r&F+;%Ukon*nAaMlKyxnocc<>cw~e z%xEkW?Hie9Qt^b@qP=TN-7wik#3LV8YguE_{!m#Nbd&Bd@Ep9sNi@)35Xg z{Y_8UD7(&HXE)g_TVRXKW@YvPyT?9e>ufv251l;K*HnK>Fb_)isUB3~DCAKcb;91j zHhF|C)4-Mqq34!An}$vAHW{#gQMbXsM03QAP(TqSl!CkvpE+`&rTwP|`zuG^$|iJ^a>CS@^T02@#b^6wInTlRR8 z=QCZ%hBYJN|CO`f|DVsn>rrV2Gz0$%18jJ?vRpz}C%=aBy^2`dLf%CdN!WEVDIq9? riKv(1IAr$^L+F-jvz6>*5-mv2{Y8Mj|MmUv#LpxOR6m6N6Zii=KZUNg literal 0 HcmV?d00001 diff --git a/docs/database.md b/docs/database.md index 282e0e20..de435df6 100644 --- a/docs/database.md +++ b/docs/database.md @@ -13,17 +13,17 @@ VN Trader目前支持以下四种数据库: ## SQLite 需要填写以下字段: - | 字段名 | 值 | - --------- |---- | - database.driver | sqlite | - database.database | 数据库文件(相对于trader目录) | +| 字段名 | 值 | +|--------- |---- | +|database.driver | sqlite | +|database.database | 数据库文件(相对于trader目录) | SQLite的例子: - | 字段名 | 值 | - --------- |---- | - database.driver | sqlite | - database.database | database.db | +| 字段名 | 值 | +|--------- |---- | +|database.driver | sqlite | +|database.database | database.db | --- @@ -31,25 +31,25 @@ SQLite的例子: 需要填写以下字段: - | 字段名 | 值 | - --------- |---- | - database.driver | "mysql"或"postgresql" | - database.host | 地址 | - database.port | 端口 | - database.database | 数据库名 | - database.user | 用户名 | - database.password | 密码 | +| 字段名 | 值 | +|--------- |---- | +|database.driver | "mysql"或"postgresql" | +|database.host | 地址 | +|database.port | 端口 | +|database.database | 数据库名 | +|database.user | 用户名 | +|database.password | 密码 | MySQL的例子: - | 字段名 | 值 | - --------- |---- | - database.driver | mysql | - database.host | localhost | - database.port | 3306 | - database.database | vnpy | - database.user | root | - database.password | .... | +| 字段名 | 值 | +|--------- |---- | +|database.driver | mysql | +|database.host | localhost | +|database.port | 3306 | +|database.database | vnpy | +|database.user | root | +|database.password | .... | > vnpy不会主动为关系型数据库创建数据库,所以请确保你所填的database.database字段对应的数据库已经创建好了 > 若未创建数据库,请手动连上数据库并运行该命令:```create database <你填的database.database>;``` @@ -59,27 +59,27 @@ MySQL的例子: 需要填写以下字段: - | 字段名 | 值 | 是否必填| - --------- |---- | ---| - database.driver | "mysql"或"postgresql" | 必填 | - database.host | 地址| 必填 | - database.port | 端口| 必填 | - database.database | 数据库名| 必填 | - database.user | 用户名| 可选 | - database.password | 密码| 可选 | - database.authentication_source | [创建用户所用的数据库][AuthSource]| 可选 | +| 字段名 | 值 | 是否必填| +|--------- |---- | ---| +|database.driver | "mysql"或"postgresql" | 必填 | +|database.host | 地址| 必填 | +|database.port | 端口| 必填 | +|database.database | 数据库名| 必填 | +|database.user | 用户名| 可选 | +|database.password | 密码| 可选 | +|database.authentication_source | [创建用户所用的数据库][AuthSource]| 可选 | MongoDB的带认证例子: - | 字段名 | 值 | - --------- |---- | - database.driver | mongodb | - database.host | localhost | - database.port | 27017 | - database.database | vnpy | - database.user | root | - database.password | .... | - database.authentication_source | vnpy | +| 字段名 | 值 | +|--------- |---- | +|database.driver | mongodb | +|database.host | localhost | +|database.port | 27017 | +|database.database | vnpy | +|database.user | root | +|database.password | .... | +|database.authentication_source | vnpy | [AuthSource]: https://docs.mongodb.com/manual/core/security-users/#user-authentication-database \ No newline at end of file