src/Spiritix/LadaCache/Reflector.php
public function getSql()
    {
        $compileFunction = $this->getCompileFunction();
        $grammar = $this->queryBuilder->getGrammar();

        $sql = call_user_func_array([$grammar, $compileFunction], [
            'builder'  => $this->queryBuilder,
            'values'   => $this->values,
            'sequence' => '',
        ]);

        // For some DBMS like SQLite Laravel issues two queries as an array instead of one string
        // This is seriously not ok, but anyway...
        if (is_array($sql)) {
            $sql = implode('; ', array_keys($sql));
        }

        return $sql;
    }
public function getSql()
    {
        $compileFunction = $this->getCompileFunction();
        $grammar = $this->queryBuilder->getGrammar();

        $sql = call_user_func_array([$grammar, $compileFunction], [
            'builder'  => $this->queryBuilder,
            'values'   => $this->values,
            'sequence' => '',
        ]);

        // For some DBMS like SQLite Laravel issues two queries as an array instead of one string
        // This is seriously not ok, but anyway...
        if (is_array($sql)) {
            $sql = implode('; ', array_keys($sql));
        }

        return $sql;
    }
public function getSql ( ) { $ compileFunction = $ this -> getCompileFunction ( ) ; $ grammar = $ this -> queryBuilder -> getGrammar ( ) ; $ sql = call_user_func_array ( [ $ grammar , $ compileFunction ] , [ 'builder' => $ this -> queryBuilder , 'values' => $ this -> values , 'sequence' => '' , ] ) ; // For some DBMS like SQLite Laravel issues two queries as an array instead of one string // This is seriously not ok, but anyway... if ( is_array ( $ sql ) ) { $ sql = implode ( '; ' , array_keys ( $ sql ) ) ; } return $ sql ; }
Returns the compiled SQL string.

@return string
Returns the compiled SQL string .