프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$defaultDatabase | string | The default database where mongolid will store the documents. |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$rawConnection | MongoDB\Client | The raw MongoDB\Client object that represents this connection. | |
$rawManager | MongoDB\Client | The raw MongoDB\Manager object to perform bulk operations. |
메소드 | 설명 | |
---|---|---|
__construct ( string $server = 'mongodb://localhost:27017', array $options = ['connect' => true], array $driver_options = [] ) | Constructs a new Mongolid connection. It uses the same constructor parameters as the original MongoDB\Client constructor. | |
getRawConnection ( ) : MongoDB\Client | Getter for Client instance. | |
getRawManager ( ) : MongoDB\Driver\Manager | Getter for Manager instance. |
메소드 | 설명 | |
---|---|---|
findDefaultDatabase ( string $connectionString ) : void | Find and stores the default database in the connection string. |
public __construct ( string $server = 'mongodb://localhost:27017', array $options = ['connect' => true], array $driver_options = [] ) | ||
$server | string | The specified connection string. |
$options | array | The mongodb client options. |
$driver_options | array | The mongodb driver options when opening a connection. |
protected findDefaultDatabase ( string $connectionString ) : void | ||
$connectionString | string | MongoDB connection string. |
리턴 | void |
public getRawConnection ( ) : MongoDB\Client | ||
리턴 | MongoDB\Client |
public getRawManager ( ) : MongoDB\Driver\Manager | ||
리턴 | MongoDB\Driver\Manager |
public string $defaultDatabase | ||
리턴 | string |
protected Client,MongoDB $rawConnection | ||
리턴 | MongoDB\Client |