MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / get_columns

Method get_columns

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

1360 def _overrides_default(self, method_name: str) -> bool: ...
1361
1362 def get_columns(
1363 self,
1364 connection: Connection,
1365 table_name: str,
1366 schema: Optional[str] = None,
1367 **kw: Any,
1368 ) -> List[ReflectedColumn]:
1369 """Return information about columns in ``table_name``.
1370
1371 Given a :class:`_engine.Connection`, a string
1372 ``table_name``, and an optional string ``schema``, return column
1373 information as a list of dictionaries
1374 corresponding to the :class:`.ReflectedColumn` dictionary.
1375
1376 This is an internal dialect method. Applications should use
1377 :meth:`.Inspector.get_columns`.
1378
1379 """
1380
1381 raise NotImplementedError()
1382
1383 def get_multi_columns(
1384 self,

Callers 15

test_without_metadataMethod · 0.45
test_with_labelsMethod · 0.45
test_reflect_identityMethod · 0.45
test_reflect_commentsMethod · 0.45
test_reflect_identityMethod · 0.45
test_reflect_commentsMethod · 0.45
test_get_columnsMethod · 0.45
test_get_columnsMethod · 0.45
test_comments_unicodeMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_without_metadataMethod · 0.36
test_with_labelsMethod · 0.36
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