swoft mongo db pool
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
MongoDB
.gitignore
readme.md

readme.md

swoft mongo db pool

config

create new file in config/properties. named mongo.php

return [
    'appName'          => 'mongodb-swoole-connection',
    'minActive'        => 5,
    'maxActive'        => 8,
    'userName'         => 'adminUser',
    'password'         => 'adminPass',
    'host'             => 'mongodb',
    'port'             => 27017,
    'dbName'           => 'test',
    'authMechanism'    => 'SCRAM-SHA-256'
];

add 'mongo' => require __DIR__ . DS . 'mongo.php', to config/properties/app.php