Skip to content

Latest commit

 

History

History
196 lines (71 loc) · 1.41 KB

Client.md

File metadata and controls

196 lines (71 loc) · 1.41 KB

Client

Client object.

  • Full name: \MongoLite\Client

Properties

databases

protected array $databases

path

protected string $path

options

protected array $options

Methods

__construct

Constructor

public __construct(string $path, array $options = []): mixed

Parameters:

Parameter Type Description
$path string - Pathname to database file or :memory:
$options array

listDBs

List Databases

public listDBs(): array

Return Value:

List of database names


selectCollection

Select Collection

public selectCollection(string $database, string $collection): \MongoLite\Collection

Parameters:

Parameter Type Description
$database string
$collection string

selectDB

Select database

public selectDB(string $name): \MongoLite\Database

Parameters:

Parameter Type Description
$name string

__get

public __get(mixed $database): mixed

Parameters:

Parameter Type Description
$database mixed