def multi_replace(table_name, *rows):
return __multi_insert(table_name, rows, replace=True)<EOL>
Build a multi-replace query.
        Each row in rows should be a dict of { column_name: column_value }

    >>> multi_replace('foo_table', { 'a': 5, 'b': 2 }, { 'a': 5, 'b': 2 })
    "REPLACE INTO `foo_table` (`a`, `b`) VALUES (%(_QB_ROW_0)s), (%(_QB_ROW_1)s)"