MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / get_indexes

Method get_indexes

lib/sqlalchemy/engine/interfaces.py:1619–1637  ·  view source on GitHub ↗

Return information about indexes in ``table_name``. Given a :class:`_engine.Connection`, a string ``table_name`` and an optional string ``schema``, return index information as a list of dictionaries corresponding to the :class:`.ReflectedIndex` dictionary. T

(
        self,
        connection: Connection,
        table_name: str,
        schema: Optional[str] = None,
        **kw: Any,
    )

Source from the content-addressed store, hash-verified

1617 raise NotImplementedError()
1618
1619 def get_indexes(
1620 self,
1621 connection: Connection,
1622 table_name: str,
1623 schema: Optional[str] = None,
1624 **kw: Any,
1625 ) -> List[ReflectedIndex]:
1626 """Return information about indexes in ``table_name``.
1627
1628 Given a :class:`_engine.Connection`, a string
1629 ``table_name`` and an optional string ``schema``, return index
1630 information as a list of dictionaries corresponding to the
1631 :class:`.ReflectedIndex` dictionary.
1632
1633 This is an internal dialect method. Applications should use
1634 :meth:`.Inspector.get_indexes`.
1635 """
1636
1637 raise NotImplementedError()
1638
1639 def get_multi_indexes(
1640 self,

Callers 15

ixMethod · 0.45
test_get_indexesMethod · 0.45
test_get_indexesMethod · 0.45
test_get_noncol_indexMethod · 0.45
test_get_namesMethod · 0.45

Calls

no outgoing calls

Tested by 15

ixMethod · 0.36
test_get_indexesMethod · 0.36
test_get_indexesMethod · 0.36
test_get_noncol_indexMethod · 0.36
test_get_namesMethod · 0.36