MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _reflect_table_comment

Method _reflect_table_comment

lib/sqlalchemy/engine/reflection.py:1951–1960  ·  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

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

Callers 1

reflect_tableMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected