'Check if DatabaseWrapper holds in memory database.'

def _is_in_memory_db(self, connection):

    if (connection.vendor == 'sqlite'):
        if (django.VERSION >= (1, 11)):
            return connection.is_in_memory_db()
        else:
            return connection.is_in_memory_db(connection.settings_dict['NAME'])
