module documentation

Functions used by compiler.py to determine the parameters rendered within INSERT and UPDATE statements.
Constant REQUIRED Undocumented
Class ​_multiparam​_column Undocumented
Function ​_append​_param​_insert​_hasdefault Undocumented
Function ​_append​_param​_insert​_pk​_no​_returning Create a primary key expression in the INSERT statement where we want to populate result.inserted_primary_key and we cannot use RETURNING.
Function ​_append​_param​_insert​_pk​_returning Create a primary key expression in the INSERT statement where we want to populate result.inserted_primary_key and RETURNING is available.
Function ​_append​_param​_insert​_select​_hasdefault Undocumented
Function ​_append​_param​_parameter Undocumented
Function ​_append​_param​_update Undocumented
Function ​_create​_bind​_param Undocumented
Function ​_create​_insert​_prefetch​_bind​_param Undocumented
Function ​_create​_update​_prefetch​_bind​_param Undocumented
Function ​_extend​_values​_for​_multiparams Undocumented
Function ​_get​_crud​_params create a set of tuples representing column/string pairs for use in an INSERT or UPDATE statement.
Function ​_get​_returning​_modifiers Undocumented
Function ​_get​_stmt​_parameter​_tuples​_params Undocumented
Function ​_get​_update​_multitable​_params Undocumented
Function ​_handle​_values​_anonymous​_param Undocumented
Function ​_key​_getters​_for​_crud​_column Undocumented
Function ​_process​_multiparam​_default​_bind Undocumented
Function ​_scan​_cols Undocumented
Function ​_scan​_insert​_from​_select​_cols Undocumented
Function ​_warn​_pk​_with​_no​_anticipated​_value Undocumented
REQUIRED =

Undocumented

Value
util.symbol('REQUIRED',
            '''
Placeholder for the value within a :class:`.BindParameter`
which is required to be present when the statement is passed
to :meth:`_engine.Connection.execute`.

This symbol is typically used when a :func:`_expression.insert`
...
def _append_param_insert_hasdefault(compiler, stmt, c, implicit_return_defaults, values, kw):

Undocumented

def _append_param_insert_pk_no_returning(compiler, stmt, c, values, kw):

Create a primary key expression in the INSERT statement where we want to populate result.inserted_primary_key and we cannot use RETURNING.

Depending on the kind of default here we may create a bound parameter in the INSERT statement and pre-execute a default generation function, or we may use cursor.lastrowid if supported by the dialect.

def _append_param_insert_pk_returning(compiler, stmt, c, values, kw):
Create a primary key expression in the INSERT statement where we want to populate result.inserted_primary_key and RETURNING is available.
def _append_param_insert_select_hasdefault(compiler, stmt, c, values, kw):

Undocumented

def _append_param_parameter(compiler, stmt, compile_state, c, col_key, parameters, _col_bind_name, implicit_returning, implicit_return_defaults, values, kw):

Undocumented

def _append_param_update(compiler, compile_state, stmt, c, implicit_return_defaults, values, kw):

Undocumented

def _create_bind_param(compiler, col, value, process=True, required=False, name=None, **kw):

Undocumented

def _create_insert_prefetch_bind_param(compiler, c, process=True, name=None, **kw):

Undocumented

def _create_update_prefetch_bind_param(compiler, c, process=True, name=None, **kw):

Undocumented

def _extend_values_for_multiparams(compiler, stmt, compile_state, values, _column_as_key, kw):

Undocumented

def _get_crud_params(compiler, stmt, compile_state, **kw):

create a set of tuples representing column/string pairs for use in an INSERT or UPDATE statement.

Also generates the Compiled object's postfetch, prefetch, and returning column collections, used for default handling and ultimately populating the CursorResult's prefetch_cols() and postfetch_cols() collections.

def _get_returning_modifiers(compiler, stmt, compile_state):

Undocumented

def _get_stmt_parameter_tuples_params(compiler, compile_state, parameters, stmt_parameter_tuples, _column_as_key, values, kw):

Undocumented

def _get_update_multitable_params(compiler, stmt, compile_state, stmt_parameter_tuples, check_columns, _col_bind_name, _getattr_col_key, values, kw):

Undocumented

def _handle_values_anonymous_param(compiler, col, value, name, **kw):

Undocumented

def _key_getters_for_crud_column(compiler, stmt, compile_state):

Undocumented

def _process_multiparam_default_bind(compiler, stmt, c, index, kw):

Undocumented

def _scan_cols(compiler, stmt, compile_state, parameters, _getattr_col_key, _column_as_key, _col_bind_name, check_columns, values, kw):

Undocumented

def _scan_insert_from_select_cols(compiler, stmt, compile_state, parameters, _getattr_col_key, _column_as_key, _col_bind_name, check_columns, values, kw):

Undocumented

def _warn_pk_with_no_anticipated_value(c):

Undocumented