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

Method __init__

lib/sqlalchemy/sql/dml.py:272–291  ·  view source on GitHub ↗
(
        self,
        statement: Insert,
        compiler: SQLCompiler,
        disable_implicit_returning: bool = False,
        **kw: Any,
    )

Source from the content-addressed store, hash-verified

270 _has_multi_parameters = False
271
272 def __init__(
273 self,
274 statement: Insert,
275 compiler: SQLCompiler,
276 disable_implicit_returning: bool = False,
277 **kw: Any,
278 ):
279 self.statement = statement
280 self._primary_table = statement.table
281
282 if disable_implicit_returning:
283 self._supports_implicit_returning = False
284
285 self.isinsert = True
286 if statement._select_names:
287 self._process_select_values(statement)
288 if statement._values is not None:
289 self._process_values(statement)
290 if statement._multi_values:
291 self._process_multi_values(statement)
292
293 @util.memoized_property
294 def _insert_col_keys(self) -> List[str]:

Callers

nothing calls this directly

Calls 3

_process_valuesMethod · 0.95
_process_multi_valuesMethod · 0.95

Tested by

no test coverage detected