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
| 1990 | |
| 1991 | |
| 1992 | class 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 | |
| 2015 | class BindParameter(roles.InElementRole, KeyedColumnElement[_T]): |
no outgoing calls
no test coverage detected