src/SQL/Compiler.php
public function insert(SQLStatement $insert): string
    {
        $columns = $this->handleColumns($insert->getColumns());

        $sql = 'INSERT INTO ';
        $sql .= $this->handleTables($insert->getTables());
        $sql .= ($columns === '*') ? '' : ' (' . $columns . ')';
        $sql .= $this->handleInsertValues($insert->getValues());

        return $sql;
    }
public function insert(SQLStatement $insert): string
    {
        $columns = $this->handleColumns($insert->getColumns());

        $sql = 'INSERT INTO ';
        $sql .= $this->handleTables($insert->getTables());
        $sql .= ($columns === '*') ? '' : ' (' . $columns . ')';
        $sql .= $this->handleInsertValues($insert->getValues());

        return $sql;
    }
public function insert ( SQLStatement $ insert ) : string { $ columns = $ this -> handleColumns ( $ insert -> getColumns ( ) ) ; $ sql = 'INSERT INTO ' ; $ sql .= $ this -> handleTables ( $ insert -> getTables ( ) ) ; $ sql .= ( $ columns === '*' ) ? '' : ' (' . $ columns . ')' ; $ sql .= $ this -> handleInsertValues ( $ insert -> getValues ( ) ) ; return $ sql ; }
Returns the SQL for an insert statement

@param SQLStatement $insert
@return string
Returns the SQL for an insert statement