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

Class DMLTargetCopy

lib/sqlalchemy/sql/elements.py:1992–2012  ·  view source on GitHub ↗

Refer to another column's VALUES or SET expression in an INSERT or UPDATE statement. See the public-facing :func:`_sql.from_dml_column` constructor for background. .. versionadded:: 2.1

Source from the content-addressed store, hash-verified

1990
1991
1992class DMLTargetCopy(roles.InElementRole, KeyedColumnElement[_T]):
1993 """Refer to another column's VALUES or SET expression in an INSERT or
1994 UPDATE statement.
1995
1996 See the public-facing :func:`_sql.from_dml_column` constructor for
1997 background.
1998
1999 .. versionadded:: 2.1
2000
2001
2002 """
2003
2004 def __init__(self, column: _OnlyColumnArgument[_T]):
2005 self.column = coercions.expect(roles.ColumnArgumentRole, column)
2006 self.type = self.column.type
2007
2008 __visit_name__ = "dmltargetcopy"
2009
2010 _traverse_internals: _TraverseInternalsType = [
2011 ("column", InternalTraversal.dp_clauseelement),
2012 ]
2013
2014
2015class BindParameter(roles.InElementRole, KeyedColumnElement[_T]):

Callers 2

CoreFixturesClass · 0.90
from_dml_columnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected