-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from QUANTAXIS/master
pull fork to repo
- Loading branch information
Showing
157 changed files
with
267,073 additions
and
9,174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
*.html linguist-language=QUANTAXIS | ||
*.ipynb linguist-language=python | ||
*.h linguist-language=python | ||
*.cc linguist-language=python | ||
*.pb.cc linguist-language=python | ||
*.pc.h linguist-language=python | ||
*.h linguist-language=* | ||
*.cc linguist-language=* | ||
*.pb.cc linguist-language=* | ||
*.pc.h linguist-language=* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,7 +153,7 @@ kernel*.json | |
|
||
|
||
*.dad | ||
|
||
*.cover | ||
|
||
#future connections | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# motor | ||
|
||
|
||
## Motor Tornado API | ||
``` | ||
MotorClient – Connection to MongoDB | ||
MotorClientSession – Sequence of operations | ||
MotorDatabase | ||
MotorCollection | ||
MotorChangeStream | ||
MotorCursor | ||
MotorCommandCursor | ||
Motor GridFS Classes | ||
motor.web - Integrate Motor with the Tornado web framework | ||
``` | ||
## Motor asyncio API | ||
``` | ||
AsyncIOMotorClient – Connection to MongoDB | ||
AsyncIOMotorClientSession – Sequence of operations | ||
AsyncIOMotorDatabase | ||
AsyncIOMotorCollection | ||
AsyncIOMotorChangeStream | ||
AsyncIOMotorCursor | ||
AsyncIOMotorCommandCursor | ||
asyncio GridFS Classes | ||
motor.aiohttp - Integrate Motor with the aiohttp web framework | ||
``` | ||
很早就知道motor这个项目, 但是一直没有认真去读, 偶尔发现motor已经升级到2.0了, 仔细看了下他的api 太牛逼了, 于是准备翻译一下: | ||
|
||
|
||
motor分了两块, 主要是底层和平台兼容性的区别(感觉还是历史遗留问题) | ||
|
||
- tornado_base MotorClient | ||
|
||
- asyncio_base AsyncIOMotorClient | ||
|
||
|
||
因为asyncio是python3.4才引入的项目, 而motor在此之前就开始了, 于是最开始用的是基于tornado的异步底层 MotorClient, 而如今 asyncio | ||
越来越完善, 逐步的引入了AsyncioMotorClient的概念和内容.(区别是: tornado对windows的支持不是很完善,而asyncio较为完善, 因此motor官方推荐使用asyncio的client) | ||
|
||
|
||
参考文献 : [Motor Not Support](http://motor.readthedocs.io/en/stable/requirements.html#not-supported) | ||
|
||
|
||
|
||
## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,10 @@ | |
- 2018-05-04 *文(lid) | ||
- 2018-05-17 申长春 | ||
- 2018-06-06 stephen | ||
|
||
- 2018-07-13 W *薇 | ||
- 2018-07-13 *吉 | ||
- 2018-07-14 *剑 | ||
- 2018-07-14 叶鸿浩 | ||
- 2018-07-16 牧童 | ||
|
||
感谢@尧 [email protected] 对于1.0.32版本做出的巨大贡献 |
Oops, something went wrong.