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