code: def captureQuery(self, query, params=(), engine=None, **kwargs):
          
          return self.capture(
              'raven.events.Query', query=query, params=params, engine=engine,
              **kwargs)
docs: Creates an event for a SQL query.
  
          >>> client.captureQuery('SELECT * FROM foo')