'Set up the insert query from the \'insert_values\' dictionary. The
dictionary gives the model field names and their target values.
If \'raw_values\' is True, the values in the \'insert_values\' dictionary
are inserted directly into the query, rather than passed as SQL
parameters. This provides a way to insert NULL and DEFAULT keywords
into the query, for example.'

def insert_values(self, insert_values, raw_values=False):

    (placeholders, values) = ([], [])
    for (field, val) in insert_values:
        placeholders.append((field, val))
        self.columns.append(field.column)
        values.append(val)
    if raw_values:
        self.values.extend([(None, v) for v in values])
    else:
        self.params += tuple(values)
        self.values.extend(placeholders)
