$viewsCache
$viewsCache : \ManaPHP\Caching\CacheInterface
modelsAction(array $services = array(), string $namespace = 'App\Models', boolean $optimized = false, integer $sample = 1000, array $db = array())
generate models file from data files or online data
array | $services | explicit the mongodb service name |
string | $namespace | namespaces of models |
boolean | $optimized | output as more methods as possible |
integer | $sample | sample size |
array | $db | db name list |
listAction(array $services = array(), string $collection_pattern = '', string $field = '', array $db = array())
list databases and collections
array | $services | services list |
string | $collection_pattern | match collection against a pattern |
string | $field | collection must contains one this field |
array | $db |