PHPSQLParser\PHPSQLParser::__construct PHP Method

__construct() public method

Use the public variable $parsed to get the output.
public __construct ( String | boolean $sql = false, boolean $calcPositions = false, array $options = [] )
$sql String | boolean The SQL statement.
$calcPositions boolean True, if the output should contain [position], false otherwise.
$options array
    public function __construct($sql = false, $calcPositions = false, array $options = [])
    {
        $this->options = new Options($options);
        if ($sql) {
            $this->parse($sql, $calcPositions);
        }
    }