So the set-up for a 'pythonesque' take on sqlite will look
as follows:
Noteworthy, here: the database lives in RAM memory. One starts all over at
every run; avoiding the pesky overwriting problems. This is the better set-up
to develop our functionality. As well, the 'with conn' line is a python environmental
feature. The connection closes itself at the end of every run.
For the rest, one is working with Python economy: a class definition for the layout,
functions for the various operations. Rather nice!!
No comments:
Post a Comment