CI_DB_query_builder::get_compiled_insert PHP Method

get_compiled_insert() public method

Compiles an insert query and returns the sql
public get_compiled_insert ( $table = '', $reset = TRUE ) : string
return string
    public function get_compiled_insert($table = '', $reset = TRUE)
    {
        if ($this->_validate_insert($table) === FALSE) {
            return FALSE;
        }
        $sql = $this->_insert($this->protect_identifiers($this->qb_from[0], TRUE, NULL, FALSE), array_keys($this->qb_set), array_values($this->qb_set));
        if ($reset === TRUE) {
            $this->_reset_write();
        }
        return $sql;
    }