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)
| 42 | |
| 43 | |
| 44 | def 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 | |
| 64 | class Insert(StandardInsert): |