This commit is contained in:
wangjinlei
2020-11-12 17:15:37 +08:00
parent 824380664c
commit 1abf99316f
893 changed files with 278997 additions and 0 deletions

26
vendor/topthink/think-mongo/README.md vendored Normal file
View File

@@ -0,0 +1,26 @@
ThinkPHP 5.0 MongoDb驱动
===============
首先安装官方的mongodb扩展
http://pecl.php.net/package/mongodb
然后,配置应用的数据库配置文件`database.php``type`参数为:
~~~
'type' => '\think\mongo\Connection',
~~~
即可正常使用MongoDb例如
~~~
Db::name('demo')
->find();
Db::name('demo')
->field('id,name')
->limit(10)
->order('id','desc')
->select();
~~~
1.*版本支持ThinkPHP 5.0
2.*版本支持ThinkPHP 5.1