Client
in package
Client object.
Table of Contents
- $databases : array<string|int, mixed>
- $options : array<string|int, mixed>
- $path : string
- __construct() : mixed
- Constructor
- __get() : mixed
- listDBs() : array<string|int, mixed>
- List Databases
- selectCollection() : Collection
- Select Collection
- selectDB() : Database
- Select database
Properties
$databases
protected
array<string|int, mixed>
$databases
= []
$options
protected
array<string|int, mixed>
$options
$path
protected
string
$path
Methods
__construct()
Constructor
public
__construct(string $path[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $path : string
-
- Pathname to database file or :memory:
- $options : array<string|int, mixed> = []
Return values
mixed —__get()
public
__get(mixed $database) : mixed
Parameters
- $database : mixed
Return values
mixed —listDBs()
List Databases
public
listDBs() : array<string|int, mixed>
Return values
array<string|int, mixed> —List of database names
selectCollection()
Select Collection
public
selectCollection(string $database, string $collection) : Collection
Parameters
- $database : string
- $collection : string
Return values
Collection —selectDB()
Select database
public
selectDB(string $name) : Database
Parameters
- $name : string