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

Method inline

lib/sqlalchemy/sql/dml.py:1255–1273  ·  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

1253
1254 @_generative
1255 def inline(self) -> Self:
1256 """Make this :class:`_expression.Insert` construct "inline" .
1257
1258 When set, no attempt will be made to retrieve the
1259 SQL-generated default values to be provided within the statement;
1260 in particular,
1261 this allows SQL expressions to be rendered 'inline' within the
1262 statement without the need to pre-execute them beforehand; for
1263 backends that support "returning", this turns off the "implicit
1264 returning" feature for the statement.
1265
1266
1267 .. versionchanged:: 1.4 the :paramref:`_expression.Insert.inline`
1268 parameter
1269 is now superseded by the :meth:`_expression.Insert.inline` method.
1270
1271 """
1272 self._inline = True
1273 return self
1274
1275 @_generative
1276 def from_select(

Calls

no outgoing calls