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

Function insert

lib/sqlalchemy/dialects/postgresql/dml.py:41–58  ·  view source on GitHub ↗

Construct a PostgreSQL-specific variant :class:`_postgresql.Insert` construct. .. container:: inherited_member The :func:`sqlalchemy.dialects.postgresql.insert` function creates a :class:`sqlalchemy.dialects.postgresql.Insert`. This class is based on the dialect-ag

(table: _DMLTableArgument)

Source from the content-addressed store, hash-verified

39
40
41def insert(table: _DMLTableArgument) -> Insert:
42 """Construct a PostgreSQL-specific variant :class:`_postgresql.Insert`
43 construct.
44
45 .. container:: inherited_member
46
47 The :func:`sqlalchemy.dialects.postgresql.insert` function creates
48 a :class:`sqlalchemy.dialects.postgresql.Insert`. This class is based
49 on the dialect-agnostic :class:`_sql.Insert` construct which may
50 be constructed using the :func:`_sql.insert` function in
51 SQLAlchemy Core.
52
53 The :class:`_postgresql.Insert` construct includes additional methods
54 :meth:`_postgresql.Insert.on_conflict_do_update`,
55 :meth:`_postgresql.Insert.on_conflict_do_nothing`.
56
57 """
58 return Insert(table)
59
60
61class Insert(StandardInsert):

Calls 1

InsertClass · 0.70