Property | Type | Description | |
---|---|---|---|
$connection | object |
Property | Type | Description | |
---|---|---|---|
$collections | array | ||
$document_criterias | array | ||
$path | string |
Method | Description | |
---|---|---|
__construct ( string $path = ":memory:", array $options = [] ) | Constructor | |
__get ( $collection ) | ||
callCriteriaFunction ( string $id, array $document ) : boolean | Execute registred criteria function | |
createCollection ( string $name ) | Create a collection | |
drop ( ) | Drop database | |
dropCollection ( string $name ) | Drop a collection | |
getCollectionNames ( ) : array | Get all collection names in the database | |
listCollections ( ) : array | Get all collections in the database | |
registerCriteriaFunction ( mixed $criteria ) : mixed | Register Criteria function | |
selectCollection ( string $name ) : object | Select collection | |
vacuum ( ) | Vacuum database |
public __construct ( string $path = ":memory:", array $options = [] ) | ||
$path | string | |
$options | array |
public createCollection ( string $name ) | ||
$name | string |
public dropCollection ( string $name ) | ||
$name | string |
public getCollectionNames ( ) : array | ||
return | array |
public listCollections ( ) : array | ||
return | array |
public registerCriteriaFunction ( mixed $criteria ) : mixed | ||
$criteria | mixed | |
return | mixed |
public selectCollection ( string $name ) : object | ||
$name | string | |
return | object |