MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / insert

Function insert

lib/sqlalchemy/dialects/postgresql/dml.py:44–61  ·  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

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

Calls 1

InsertClass · 0.70