assertCursorOption.php
Table of Contents
Functions
- assertCursorOption() : void
- Refuses a cursor option a caller may not name through `Arango::CURSOR_OPTIONS`, or a value of the wrong type.
Functions
assertCursorOption()
Refuses a cursor option a caller may not name through `Arango::CURSOR_OPTIONS`, or a value of the wrong type.
assertCursorOption(int|string $name, mixed $value) : void
Five options are a caller's : batchSize, memoryLimit and ttl (positive integers),
maxRuntime (a positive number) and stream (a boolean). Every refusal is ours, since
the server says nothing — an option it does not know and a value of the wrong type both
run as if absent (measured on ArangoDB 3.12). A few names are refused with their reason :
query / bindVars would replace the query the model builds, guards included ;
fullCount is decided by the read from its LIMIT ; profile goes through
Arango::PROFILE ; count is handed back by no read.
Parameters
- $name : int|string
-
The option name.
- $value : mixed
-
The option value.