Here are the examples of the python api sqlalchemy.func.nextval taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
3
View Complete Implementation : connection.py
Copyright Apache License 2.0
Author : CanopyTax
Copyright Apache License 2.0
Author : CanopyTax
def _execute_default_attr(query, param, attr_name):
for col in query.table.columns:
attr = getattr(col, attr_name)
if attr and param.get(col.name) is None:
if attr.is_sequence:
param[col.name] = func.nextval(attr.name)
elif attr.is_scalar:
param[col.name] = attr.arg
elif attr.is_callable:
param[col.name] = attr.arg({})