@classmethod<EOL><INDENT>def get_records(cls, ids, with_deleted=False):<DEDENT>
with db.session.no_autoflush:<EOL><INDENT>query = RecordMetadata.query.filter(RecordMetadata.id.in_(ids))<EOL>if not with_deleted:<EOL><INDENT>query = query.filter(RecordMetadata.json != None)  <EOL><DEDENT>return [cls(obj.json, model=obj) for obj in query.all()]<EOL><DEDENT>
Retrieve multiple records by id.

        :param ids: List of record IDs.
        :param with_deleted: If `True` then it includes deleted records.
        :returns: A list of :class:`Record` instances.