connection = apsw.Connection(location)
connection.setrowtrace(row_factory)
def row_factory(cursor, row):
columns = [t[0] for t in cursor.getdescription()]
return dict(zip(columns, row))

Adventures in Computer Programming – bakert@gmail.com
connection = apsw.Connection(location)
connection.setrowtrace(row_factory)
def row_factory(cursor, row):
columns = [t[0] for t in cursor.getdescription()]
return dict(zip(columns, row))