Свойство | Тип | Описание | |
---|---|---|---|
$connection | object |
Свойство | Тип | Описание | |
---|---|---|---|
$collections | array | ||
$document_criterias | array | ||
$path | string |
Метод | Описание | |
---|---|---|
__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 | ||
Результат | array |
public listCollections ( ) : array | ||
Результат | array |
public registerCriteriaFunction ( mixed $criteria ) : mixed | ||
$criteria | mixed | |
Результат | mixed |
public selectCollection ( string $name ) : object | ||
$name | string | |
Результат | object |