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

Method _copy

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

Source from the content-addressed store, hash-verified

6055 return self._copy(target_table=target_table, **kw)
6056
6057 def _copy(
6058 self, *, target_table: Optional[Table] = None, **kw: Any
6059 ) -> Computed:
6060 sqltext = _copy_expression(
6061 self.sqltext,
6062 self.column.table if self.column is not None else None,
6063 target_table,
6064 )
6065 g = Computed(sqltext, persisted=self.persisted)
6066
6067 return self._schema_item_copy(g)
6068
6069
6070class 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