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

Function insert

lib/sqlalchemy/dialects/mysql/dml.py:34–50  ·  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

32
33
34def insert(table: _DMLTableArgument) -> Insert:
35 """Construct a MySQL/MariaDB-specific variant :class:`_mysql.Insert`
36 construct.
37
38 .. container:: inherited_member
39
40 The :func:`sqlalchemy.dialects.mysql.insert` function creates
41 a :class:`sqlalchemy.dialects.mysql.Insert`. This class is based
42 on the dialect-agnostic :class:`_sql.Insert` construct which may
43 be constructed using the :func:`_sql.insert` function in
44 SQLAlchemy Core.
45
46 The :class:`_mysql.Insert` construct includes additional methods
47 :meth:`_mysql.Insert.on_duplicate_key_update`.
48
49 """
50 return Insert(table)
51
52
53class Insert(StandardInsert):

Calls 1

InsertClass · 0.70