Homec4science

dbquery: add option with_dict to run_sql()

Description

dbquery: add option with_dict to run_sql()

  • Enriches run_sql() with a new option called with_dict that returns directly list-of-dictionaries instead of tuple-of-tuples. (closes #830)
  • Adds 4 regression test cases.
  • Changes with_desc parameter type from integer to boolean in run_sql and run_sql_with_limit in order to keep coherence with the with_dict parameter.
  • Updates miscutil-dbquery.webdoc.

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Dec 8 2011, 15:40
Parents
R3600:4c50d990d308: WebSearch: fix alignment of search select boxes
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:95e3d250ee14: dbquery: add option with_dict to run_sql() (authored by Raquel Jimenez Encinar <raquel.jimenez.encinar@cern.ch>).Dec 8 2011, 15:40