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)
| 39 | |
| 40 | |
| 41 | def 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 | |
| 61 | class Insert(StandardInsert): |