final class ModuleArguments
Restricted visibility: declared "@visibility SqlSemantics\Platform\Sqlite". Code outside that scope must not name this declaration.

Reads the argument texts of a virtual table module from a parse tree, and checks a text against the grammar.

Rule: SQLITE-MODULE-ARGUMENT-TEXT-001. The arguments are the items of the argument list, separated by its top-level commas. The text of an argument is the text of its first token followed, for each further token, by the white space and comments before that token and the token itself: the span SQLite hands to the module. A text is one argument when the grammar, given the text between the parentheses of a virtual table definition, reads exactly one argument with that span and nothing before or after it. Terminates: the list is flattened iteratively and a text is parsed once. Source: https://sqlite.org/lang_createvtab.html (and sqlite3VtabArgExtend() in vtab.c of the release). Status: Implemented.

Methods§

public function single(string $text): bool

Tells whether SQLite reads a text as exactly one argument with that text.

Parameters

$textstring

Returns

bool
Test cases 2
Called from 1
Calls 5

Private surface 1§

Implementation details, listed for orientation only.

private static ?SqliteParser $parser = null

Test cases 5§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 5

Relations§

Instantiated in 2
Method calls 2