def query_file(self, path, fetchall=False, **params):
with self.get_connection() as conn:<EOL><INDENT>return conn.query_file(path, fetchall, **params)<EOL><DEDENT>
Like Database.query, but takes a filename to load a query from.