MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _copy

Method _copy

lib/sqlalchemy/sql/schema.py:6510–6520  ·  view source on GitHub ↗
(
        self, *, target_table: Optional[Table] = None, **kw: Any
    )

Source from the content-addressed store, hash-verified

6508 return self._copy(target_table=target_table, **kw)
6509
6510 def _copy(
6511 self, *, target_table: Optional[Table] = None, **kw: Any
6512 ) -> Computed:
6513 sqltext = _copy_expression(
6514 self.sqltext,
6515 self.column.table if self.column is not None else None,
6516 target_table,
6517 )
6518 g = Computed(sqltext, persisted=self.persisted)
6519
6520 return self._schema_item_copy(g)
6521
6522
6523class Identity(IdentityOptions, FetchedValue, SchemaItem):

Callers 1

copyMethod · 0.95

Calls 3

_copy_expressionFunction · 0.85
ComputedClass · 0.85
_schema_item_copyMethod · 0.80

Tested by

no test coverage detected