def METHOD_NAME(self, cursor, batcher, oid, tid, data):
    """Store an object directly, without conflict detection.
    Used for copying transactions into this database.
    """
    if self.version_detector.requires_values_upsert_alias(cursor):
        alias = 'AS NEW'
        def VALUES(col):
            return 'NEW.' + col
    else:
        alias = ''
        def VALUES(col):
            return f'VALUES({col})'
    if self.keep_history:
        suffix = f"""
        {alias}
        ON DUPLICATE KEY UPDATE
            tid = {VALUES('tid')},
            prev_tid = {VALUES('prev_tid')},
            md5 = {VALUES('md5')},
            state_size = {VALUES('state_size')},
            state = {VALUES('state')}
        """
    else:
        suffix = f"""
        {alias}
        ON DUPLICATE KEY UPDATE
            tid = {VALUES('tid')},
            state_size = {VALUES('state_size')},
            state = {VALUES('state')}
        """
    self._generic_restore(batcher, oid, tid, data,
                          command='INSERT', suffix=suffix)