We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 046b92a commit 5aafee5Copy full SHA for 5aafee5
src/Connection.php
@@ -361,4 +361,9 @@ private static function lookupVersion(): string
361
return self::$version = 'error';
362
}
363
364
+
365
+ public function getDriverTitle()
366
+ {
367
+ return 'MongoDB';
368
+ }
369
src/Schema/Builder.php
@@ -289,4 +289,14 @@ protected function getAllCollections()
289
290
return $collections;
291
292
293
+ public function getConnectionsCount()
294
295
+ $status = $this->connection
296
+ ->getMongoDB()
297
+ ->command(['serverStatus' => 1])
298
+ ->toArray();
299
300
+ return $status[0]['connections']['current'];
301
302
0 commit comments