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

Method insert

lib/sqlalchemy/sql/selectable.py:3280–3292  ·  view source on GitHub ↗

Generate an :class:`_sql.Insert` construct against this :class:`_expression.TableClause`. E.g.:: table.insert().values(name="foo") See :func:`_expression.insert` for argument and usage information.

(self)

Source from the content-addressed store, hash-verified

3278
3279 @util.preload_module("sqlalchemy.sql.dml")
3280 def insert(self) -> util.preloaded.sql_dml.Insert:
3281 """Generate an :class:`_sql.Insert` construct against this
3282 :class:`_expression.TableClause`.
3283
3284 E.g.::
3285
3286 table.insert().values(name="foo")
3287
3288 See :func:`_expression.insert` for argument and usage information.
3289
3290 """
3291
3292 return util.preloaded.sql_dml.Insert(self)
3293
3294 @util.preload_module("sqlalchemy.sql.dml")
3295 def update(self) -> Update:

Callers 3

_append_new_columnMethod · 0.45
replaceMethod · 0.45
visitFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected