I am playing a bit with the python api for sqlite3, i have a little table for store languages with an id, name and creation_date fields. I am trying to map the raw query res
I think better to use for language in map(LanguageRecord._make, c.fetchall()[:1]): Because it can cause IndexError with fetchall()[0].
for language in map(LanguageRecord._make, c.fetchall()[:1]):
If you need one result and there is already "WHERE" in query. As I understand query should return one row. Early optimization is evil. :)