May-20-2018, 10:15 AM
To create the DB, take a look to the module sqlite3, you can create in-memory DB with:
About the error in your code, you are providing 6 arguments to the append function, that only accepts one.
The correct line is:
import sqlite3 db = sqlite3.connect(":memory:")but designing the DB is not an easy task...
About the error in your code, you are providing 6 arguments to the append function, that only accepts one.
The correct line is:
record = (obj, viewdata(rawvalue)[0][3],viewdata(rawvalue)[0][0], viewdata(rawvalue)[0][1], viewdata(rawvalue)[0][2],rawvalue) io.append(record)