@_uses_db<EOL><INDENT>def search(self, query):<DEDENT>
results = self.session.query(Domain).filter(Domain.name.ilike('<STR_LIT>' % query)).all()<EOL>return results<EOL>
Search the database for the given query. Will find partial matches.