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

Method get_columns

lib/sqlalchemy/engine/interfaces.py:1329–1348  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1327 def _overrides_default(self, method_name: str) -> bool: ...
1328
1329 def get_columns(
1330 self,
1331 connection: Connection,
1332 table_name: str,
1333 schema: Optional[str] = None,
1334 **kw: Any,
1335 ) -> List[ReflectedColumn]:
1336 """Return information about columns in ``table_name``.
1337
1338 Given a :class:`_engine.Connection`, a string
1339 ``table_name``, and an optional string ``schema``, return column
1340 information as a list of dictionaries
1341 corresponding to the :class:`.ReflectedColumn` dictionary.
1342
1343 This is an internal dialect method. Applications should use
1344 :meth:`.Inspector.get_columns`.
1345
1346 """
1347
1348 raise NotImplementedError()
1349
1350 def get_multi_columns(
1351 self,

Calls

no outgoing calls

Tested by 15

test_reflect_identityMethod · 0.36
test_reflect_commentsMethod · 0.36
test_reflect_identityMethod · 0.36
test_reflect_commentsMethod · 0.36
test_get_columnsMethod · 0.36
test_get_columnsMethod · 0.36
test_comments_unicodeMethod · 0.36