@_generative()
def with_hint(self, selectable, text, dialect_name='*'):
    'Add an indexing or other executional context\n        hint for the given entity or selectable to\n        this :class:`.Query`.\n\n        Functionality is passed straight through to\n        :meth:`~sqlalchemy.sql.expression.Select.with_hint`,\n        with the addition that ``selectable`` can be a\n        :class:`.Table`, :class:`.Alias`, or ORM entity / mapped class\n        /etc.\n\n        .. seealso::\n\n            :meth:`.Query.with_statement_hint`\n\n        '
    if (selectable is not None):
        selectable = inspect(selectable).selectable
    self._with_hints += ((selectable, text, dialect_name),)
Add an indexing or other executional context
hint for the given entity or selectable to
this :class:`.Query`.

Functionality is passed straight through to
:meth:`~sqlalchemy.sql.expression.Select.with_hint`,
with the addition that ``selectable`` can be a
:class:`.Table`, :class:`.Alias`, or ORM entity / mapped class
/etc.

.. seealso::

    :meth:`.Query.with_statement_hint`
@_generative()
def with_hint(self, selectable, text, dialect_name='*'):
    'Add an indexing or other executional context\n        hint for the given entity or selectable to\n        this :class:`.Query`.\n\n        Functionality is passed straight through to\n        :meth:`~sqlalchemy.sql.expression.Select.with_hint`,\n        with the addition that ``selectable`` can be a\n        :class:`.Table`, :class:`.Alias`, or ORM entity / mapped class\n        /etc.\n\n        .. seealso::\n\n            :meth:`.Query.with_statement_hint`\n\n        '
    if (selectable is not None):
        selectable = inspect(selectable).selectable
    self._with_hints += ((selectable, text, dialect_name),)