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

Method _reflect_table_comment

lib/sqlalchemy/engine/reflection.py:1953–1962  ·  view source on GitHub ↗
(
        self,
        _reflect_info: _ReflectionInfo,
        table_key: TableKey,
        table: sa_schema.Table,
        reflection_options: Dict[str, Any],
    )

Source from the content-addressed store, hash-verified

1951 table.append_constraint(sa_schema.CheckConstraint(**const_d))
1952
1953 def _reflect_table_comment(
1954 self,
1955 _reflect_info: _ReflectionInfo,
1956 table_key: TableKey,
1957 table: sa_schema.Table,
1958 reflection_options: Dict[str, Any],
1959 ) -> None:
1960 comment_dict = _reflect_info.table_comment.get(table_key)
1961 if comment_dict:
1962 table.comment = comment_dict["text"]
1963
1964 def _get_reflection_info(
1965 self,

Callers 1

reflect_tableMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected