Свойство | Type | Description | |
---|---|---|---|
$connection | object |
Свойство | Type | Description | |
---|---|---|---|
$collections | array | ||
$document_criterias | array | ||
$path | string |
Méthode | 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 | ||
Résultat | array |
public listCollections ( ) : array | ||
Résultat | array |
public registerCriteriaFunction ( mixed $criteria ) : mixed | ||
$criteria | mixed | |
Résultat | mixed |
public selectCollection ( string $name ) : object | ||
$name | string | |
Résultat | object |