Свойство | Type | Description | |
---|---|---|---|
$KEYWORD_PARSERS | array | Array of classes that are used in parsing SQL components. | |
$STATEMENT_PARSERS | array | Array of classes that are used in parsing the SQL statements. | |
$brackets | integer | The number of opened brackets. | |
$errors | Usually, the parsing does not stop once an error occurred because that error might be a false positive or a partial result (even a bad one) might be needed. | ||
$list | The list of tokens that are parsed. | ||
$statements | List of statements parsed. | ||
$strict | boolean | Whether errors should throw exceptions or just be stored. |
Méthode | Description | |
---|---|---|
__construct ( string | |
Constructor. | |
error ( string $msg = '', |
Creates a new error log. | |
parse ( ) : void | Builds the parse trees. |
public __construct ( string | |
||
$list | string | |
The list of tokens to be parsed. |
$strict | boolean | Whether strict mode should be enabled or not. |
public static array $KEYWORD_PARSERS | ||
Résultat | array |
public static array $STATEMENT_PARSERS | ||
Résultat | array |
public ParserException[],SqlParser\Exceptions $errors | ||
Résultat |
public TokensList,sqlparser $list | ||
Résultat |
public Statement[],sqlparser $statements | ||
Résultat |
public bool $strict | ||
Résultat | boolean |