MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / _insert_col_impl

Method _insert_col_impl

lib/sqlalchemy/sql/selectable.py:3251–3264  ·  view source on GitHub ↗
(
        self,
        c: ColumnClause[Any],
        *,
        index: Optional[int] = None,
    )

Source from the content-addressed store, hash-verified

3249 return self.name
3250
3251 def _insert_col_impl(
3252 self,
3253 c: ColumnClause[Any],
3254 *,
3255 index: Optional[int] = None,
3256 ) -> None:
3257 existing = c.table
3258 if existing is not None and existing is not self:
3259 raise exc.ArgumentError(
3260 "column object '%s' already assigned to table '%s'"
3261 % (c.key, existing)
3262 )
3263 self._columns.add(c, index=index)
3264 c.table = self
3265
3266 def append_column(self, column: ColumnClause[Any]) -> None:
3267 """Append a :class:`.ColumnClause` to this :class:`.TableClause`."""

Callers 2

append_columnMethod · 0.95
insert_columnMethod · 0.95

Calls 1

addMethod · 0.45

Tested by

no test coverage detected