I have been trying to migrate away from pysqlite to apsw but I can't find a way to reproduce its row_factory function.
this is my original code:
connection = sqlite3.connect("db.db3")
connection.row_factory = sqlite3.Row
cursor = connection.cursor()
and I use it like this:
query = """ SELECT wbcode, Year, """+query_name+"""
FROM innovotable WHERE commodity='"""+commodity_name+"""' and
"""+query_name+""" != 'NULL' """
rows = cursor.execute(query)
for row in rows:
s[str(row[0])+str(row[1])] = float(row[2])
Is it possible to use apsw for this same purpose?