PHP 的新 MongoDB 驱动程序中的数字类型管理
Number type managment in new MongoDB driver for PHP
旧驱动程序具有数据类型包装器 MongoInt32()
、MongoInt64()
如何在新 moongodb
驱动程序中指定 int
长度?
http://php.net/manual/en/set.mongodb.php
The driver picks the right type automatically depending on the
size of the value:
https://github.com/mongodb/mongo-php-driver/blob/master/src/bson.c#L48
We decided that, as there are no differences in handling NumberInt vs.
NumberLong in the database, this functionality was no longer needed.
旧驱动程序具有数据类型包装器 MongoInt32()
、MongoInt64()
如何在新 moongodb
驱动程序中指定 int
长度?
http://php.net/manual/en/set.mongodb.php
The driver picks the right type automatically depending on the size of the value: https://github.com/mongodb/mongo-php-driver/blob/master/src/bson.c#L48 We decided that, as there are no differences in handling NumberInt vs. NumberLong in the database, this functionality was no longer needed.