2016-06-28 90 views

回答

0
$all = Yii::$app->mongodb->createCommand()->listDatabases(); 

其中mongodb的被配置蒙戈實例。響應可能如下所示:

$all:array = 
    0: array = 
    name: string = local 
    sizeOnDisk: double = 83886080 
    empty: bool = FALSE 
    1: array = 
    name: string = testDD 
    sizeOnDisk: double = 19268632576 
    empty: bool = FALSE 
    2: array = 
    name: string = admin 
    sizeOnDisk: double = 1 
    empty: bool = TRUE 
+0

您需要展開任務 –

相關問題