class_docstr: event interface for execution-replacement functions.
  
  These events allow direct instrumentation and replacement
  of key dialect functions which interact with the DBAPI.
  
  .. note::
  
      :class:`.DialectEvents` hooks should be considered **semi-public**
      and experimental.
      These hooks are not for general use and are only for those situations
      where intricate re-statement of DBAPI mechanics must be injected onto
      an existing dialect.  For general-use statement-interception events,
      please use the :class:`_events.ConnectionEvents` interface.
  
  .. seealso::
  
      :meth:`_events.ConnectionEvents.before_cursor_execute`
  
      :meth:`_events.ConnectionEvents.before_execute`
  
      :meth:`_events.ConnectionEvents.after_cursor_execute`
  
      :meth:`_events.ConnectionEvents.after_execute`
class_docstr_tok: ["event","interface","for","execution-replacement","functions",".","These","events","allow","direct","instrumentation","and","replacement","of","key","dialect","functions","which","interact","with","the","DBAPI",".","..","note",":",":",":","class",":","`",".DialectEvents","`","hooks","should","be","considered","*","*","semi-public","*","*","and","experimental",".","These","hooks","are","not","for","general","use","and","are","only","for","those","situations","where","intricate","re-statement","of","DBAPI","mechanics","must","be","injected","onto","an","existing","dialect",".","For","general-use","statement-interception","events",",","please","use","the",":","class",":","`","_events.ConnectionEvents","`","interface",".","..","seealso",":",":",":","meth",":","`","_events.ConnectionEvents.before_cursor_execute","`",":","meth",":","`","_events.ConnectionEvents.before_execute","`",":","meth",":","`","_events.ConnectionEvents.after_cursor_execute","`",":","meth",":","`","_events.ConnectionEvents.after_execute","`"]
docstr: Receive a cursor to have execute() called.
  
  Return the value True to halt further events from invoking,
  and to indicate that the cursor execution has already taken
  place within the event handler.
docstr_tok: ["Receive","a","cursor","to","have","execute","(",")","called",".","Return","the","value","True","to","halt","further","events","from","invoking",",","and","to","indicate","that","the","cursor","execution","has","already","taken","place","within","the","event","handler","."]
code: def do_execute(
      self,
      cursor: DBAPICursor,
      statement: str,
      parameters: _DBAPISingleExecuteParams,
      context: ExecutionContext,
  ) -> Optional[Literal[True]]:
      """Receive a cursor to have execute() called.
  
      Return the value True to halt further events from invoking,
      and to indicate that the cursor execution has already taken
      place within the event handler.
  
      """
  
imports: from __future__ import annotations
  import typing
  from typing import Any
  from typing import Dict
  from typing import Optional
  from typing import Tuple
  from typing import Type
  from typing import Union
  from .base import Connection
  from .base import Engine
  from .interfaces import ConnectionEventsTarget
  from .interfaces import DBAPIConnection
  from .interfaces import DBAPICursor
  from .interfaces import Dialect
  from ..None import event
  from ..None import exc
  from ..util.typing import Literal
label_desc: Use image node_id 7 for calling the DialectEvents obj's underlying member method code with example usage: obj.do_execute(cursor, statement, parameters, context) without return types