MongoDB的Motor驅動器進度情況
Motor, my async driver for MongoDB and Tornado, is now compatible with all the same CPython versions as Tornado: 2.5, 2.6, 2.7, and 3.2!
PyPy support is coming soon. Update: PyPy is supported, too. Motor now supports exactly the same Python versions Tornado does.
To get Motor working with Python 3 I had to make a backwards breaking change: MotorCursor.next is now next_object. So this:
2.cursor.next(my_callback)... must now be:
2.cursor.next_object(my_callback)I had to do this to neatly support Python 3, because 2to3 was unhelpfully transforming MotorCursor.next into __next__. But the change was worthy even without that problem: next_object is closer to nextObject in the Node.js MongoDB driver, whose API I'm trying to emulate. Besides, I wasn't using next the way Python intends, so I went ahead and renamed it. I'm sorry if this breaks your code.
PyPy support is coming soon. Update: PyPy is supported, too. Motor now supports exactly the same Python versions Tornado does.
To get Motor working with Python 3 I had to make a backwards breaking change: MotorCursor.next is now next_object. So this:
CODE:
1.cursor = db.collection.find()2.cursor.next(my_callback)... must now be:
CODE:
1.cursor = db.collection.find()2.cursor.next_object(my_callback)I had to do this to neatly support Python 3, because 2to3 was unhelpfully transforming MotorCursor.next into __next__. But the change was worthy even without that problem: next_object is closer to nextObject in the Node.js MongoDB driver, whose API I'm trying to emulate. Besides, I wasn't using next the way Python intends, so I went ahead and renamed it. I'm sorry if this breaks your code.
This is what the alpha phase is for.
The only remaining feature to implement is GridFS, which I'll do within the month. There's some more testing and documentation to do, and then we'll move from alpha to beta.
I know a few people are trying out Motor. I've received no bug reports so far, but some users have reported omissions in the docs which I've filled in. If you're using Motor, get in touch and let me know:jesse@10gen.com.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/301743/viewspace-742773/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Motor——一個非同步MongoDB驅動器非同步MongoDB
- Mongodb記憶體管理和使用情況情況查詢MongoDB記憶體
- SELinux on Android的進展情況LinuxAndroid
- 伺服器的連線情況?伺服器
- Log新增MongoDB驅動2MongoDB
- 什麼情況下不能使用最壞情況評估演算法的複雜度?演算法複雜度
- Motor-CAD— 新能源驅動電機快速設計與優化工具優化
- mongodb的java驅動與spring的整合MongoDBJavaSpring
- 快速掌握mongoDB(四)—— C#驅動MongoDB用法演示MongoDBC#
- 如何從最壞、平均、最好的情況分析複雜度?複雜度
- laravel6 Log新增MongoDB驅動LaravelMongoDB
- mongodb c++ 驅動庫編譯MongoDBC++編譯
- 監測伺服器php-fpm情況,自動重啟。伺服器PHP
- 解決maven打包時手動新增的依賴jar包打不進去的情況MavenJAR
- 如何處理瀏覽器的斷網情況?瀏覽器
- Oracle資料庫的監聽器掛起情況Oracle資料庫
- MongoDB叢集設定集合分片生效及檢視集合分片情況MongoDB
- MongoDB Python官方驅動 PyMongo 的簡單封裝MongoDBPython封裝
- 在不使用 mv 命令的情況下移動檔案
- 被動式監控oracle的rman備份情況Oracle
- Python多版本情況下四種快速進入互動式命令列的操作技巧Python命令列
- mysql索引失效的情況MySql索引
- NoClassDefFoundError的兩種情況Error
- 觸發JVM進行Full GC的情況及應對策略JVMGC
- 一文讀懂 MongoDB驅動程式 APIMongoDBAPI
- 在C#中使用官方驅動操作MongoDBC#MongoDB
- 天美劇情策劃:遊戲碎片化敘事下的情緒驅動遊戲
- 在pos:a元素不設定寬度的情況下,他的最大寬度是受父元素的寬度所限制的。
- 使用PHP驅動的MongoDB的單點查詢效能測試PHPMongoDB
- 動態sql查詢結果多行的處理情況SQL
- 伺服器狀態出錯情況有哪些?伺服器
- IT職場:哪些情況下需要進行詳細的價值流分析?
- Mysql 可能鎖表的情況MySql
- Oracle其它情況的恢復Oracle
- DOM對映的特殊情況
- EMC 故障情況下ORACLE 救火行動(之二)Oracle
- angular控制器的執行順序和服務的注入情況Angular
- win10驅動器加密怎麼解除_win10驅動器加密解除的方法Win10加密