| @@ 17-25 (lines=9) @@ | ||
| 14 | /** |
|
| 15 | * {@inheritdoc} |
|
| 16 | */ |
|
| 17 | public function selectDatabase($databaseName, array $options = []) |
|
| 18 | { |
|
| 19 | $debug = $this->__debugInfo(); |
|
| 20 | $options += [ |
|
| 21 | 'typeMap' => $debug['typeMap'], |
|
| 22 | ]; |
|
| 23 | ||
| 24 | return new Database($debug['manager'], $databaseName, $options); |
|
| 25 | } |
|
| 26 | ||
| 27 | /** |
|
| 28 | * {@inheritdoc} |
|
| @@ 30-38 (lines=9) @@ | ||
| 27 | /** |
|
| 28 | * {@inheritdoc} |
|
| 29 | */ |
|
| 30 | public function selectCollection($databaseName, $collectionName, array $options = []) |
|
| 31 | { |
|
| 32 | $debug = $this->__debugInfo(); |
|
| 33 | $options += [ |
|
| 34 | 'typeMap' => $debug['typeMap'], |
|
| 35 | ]; |
|
| 36 | ||
| 37 | return new Collection($debug['manager'], $databaseName, $collectionName, $options); |
|
| 38 | } |
|
| 39 | } |
|
| 40 | ||