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

Function insert

lib/sqlalchemy/dialects/mysql/dml.py:86–102  ·  view source on GitHub ↗

Construct a MySQL/MariaDB-specific variant :class:`_mysql.Insert` construct. .. container:: inherited_member The :func:`sqlalchemy.dialects.mysql.insert` function creates a :class:`sqlalchemy.dialects.mysql.Insert`. This class is based on the dialect-agnostic :clas

(table: _DMLTableArgument)

Source from the content-addressed store, hash-verified

84
85
86def insert(table: _DMLTableArgument) -> Insert:
87 """Construct a MySQL/MariaDB-specific variant :class:`_mysql.Insert`
88 construct.
89
90 .. container:: inherited_member
91
92 The :func:`sqlalchemy.dialects.mysql.insert` function creates
93 a :class:`sqlalchemy.dialects.mysql.Insert`. This class is based
94 on the dialect-agnostic :class:`_sql.Insert` construct which may
95 be constructed using the :func:`_sql.insert` function in
96 SQLAlchemy Core.
97
98 The :class:`_mysql.Insert` construct includes additional methods
99 :meth:`_mysql.Insert.on_duplicate_key_update`.
100
101 """
102 return Insert(table)
103
104
105class Insert(StandardInsert):

Calls 1

InsertClass · 0.70