pwtools.sql.sql_column_old

pwtools.sql.sql_column_old(key, sqltype, lst, sqlval_func=<function <lambda>>, fileval_func=<function <lambda>>)[source]

Examples

>>> _vals = [25,50,75]
>>> vals = sql_column('ecutfwc', 'float', _vals,
...                   fileval_func=lambda x: 'ecutfwc=%s'%x)
>>> for v in vals:
...     print(v.key, v.sqltype, v.sqlval, v.fileval)
ecutfwc float 25 ecutfwc=25
ecutfwc float 50 ecutfwc=50
ecutfwc float 75 ecutfwc=75