MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / inline

Method inline

lib/sqlalchemy/sql/dml.py:1295–1313  ·  view source on GitHub ↗

Make this :class:`_expression.Insert` construct "inline" . When set, no attempt will be made to retrieve the SQL-generated default values to be provided within the statement; in particular, this allows SQL expressions to be rendered 'inline' within the statem

(self)

Source from the content-addressed store, hash-verified

1293
1294 @_generative
1295 def inline(self) -> Self:
1296 """Make this :class:`_expression.Insert` construct "inline" .
1297
1298 When set, no attempt will be made to retrieve the
1299 SQL-generated default values to be provided within the statement;
1300 in particular,
1301 this allows SQL expressions to be rendered 'inline' within the
1302 statement without the need to pre-execute them beforehand; for
1303 backends that support "returning", this turns off the "implicit
1304 returning" feature for the statement.
1305
1306
1307 .. versionchanged:: 1.4 the :paramref:`_expression.Insert.inline`
1308 parameter
1309 is now superseded by the :meth:`_expression.Insert.inline` method.
1310
1311 """
1312 self._inline = True
1313 return self
1314
1315 @_generative
1316 def from_select(

Calls

no outgoing calls