Menu

#97 Consolidate data retrieval functions in SQLparsing.py

v1.0 (example)
open
nobody
None
5
2016-04-19
2016-04-19
Ahasuerus
No

Consolidate data retrieval functions in SQLparsing.py. There are a lot of functions that build a query string to retrieve data from the database and then do the following:

db.query(query)
result = db.store_result()
row = result.fetch_row()
results = []
while row:
    results.append(row[0][0])
    row = result.fetch_row()
return results

This code can be move to a central utility function, which will save a lot of space and make the code more readable and maintainable.

Discussion

Anonymous
Anonymous

Add attachments
Cancel