MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / get_indexes

Method get_indexes

lib/sqlalchemy/engine/interfaces.py:1586–1604  ·  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

1584 raise NotImplementedError()
1585
1586 def get_indexes(
1587 self,
1588 connection: Connection,
1589 table_name: str,
1590 schema: Optional[str] = None,
1591 **kw: Any,
1592 ) -> List[ReflectedIndex]:
1593 """Return information about indexes in ``table_name``.
1594
1595 Given a :class:`_engine.Connection`, a string
1596 ``table_name`` and an optional string ``schema``, return index
1597 information as a list of dictionaries corresponding to the
1598 :class:`.ReflectedIndex` dictionary.
1599
1600 This is an internal dialect method. Applications should use
1601 :meth:`.Inspector.get_indexes`.
1602 """
1603
1604 raise NotImplementedError()
1605
1606 def get_multi_indexes(
1607 self,

Callers 15

has_indexMethod · 0.45
ixMethod · 0.45
test_get_indexesMethod · 0.45
test_get_indexesMethod · 0.45
test_get_noncol_indexMethod · 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