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

Method _copy

lib/sqlalchemy/dialects/postgresql/ext.py:317–334  ·  view source on GitHub ↗
(self, target_table=None, **kw)

Source from the content-addressed store, hash-verified

315 ]
316
317 def _copy(self, target_table=None, **kw):
318 elements = [
319 (
320 schema._copy_expression(expr, self.parent, target_table),
321 operator,
322 )
323 for expr, _, operator in self._render_exprs
324 ]
325 c = self.__class__(
326 *elements,
327 name=self.name,
328 deferrable=self.deferrable,
329 initially=self.initially,
330 where=self.where,
331 using=self.using,
332 )
333 c.dispatch._update(self.dispatch)
334 return c
335
336
337def array_agg(*arg, **kw):

Callers 1

Calls 1

_updateMethod · 0.45

Tested by 1