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 3a11fc1Copy full SHA for 3a11fc1
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
@@ -5,6 +5,7 @@
5
namespace MongoDB\Laravel\Schema;
6
7
use Closure;
8
+use Illuminate\Database\Connection;
9
use MongoDB\Model\CollectionInfo;
10
use MongoDB\Model\IndexInfo;
11
@@ -289,4 +290,13 @@ protected function getAllCollections()
289
290
291
return $collections;
292
293
294
+ public function getConnectionCount(Connection $connection)
295
296
+ $status = $connection->getMongoDB()
297
+ ->command(['serverStatus' => 1])
298
+ ->toArray();
299
300
+ return $status[0]['connections']['current'];
301
302
0 commit comments