Monday, 10. January 2005.
lino:tests/10.py is more difficult to find. Worked a whole day without getting it running. But quite some changes in adamo. Especially (1) better support for Multiple connections per database. (2) Populating databasesUncomplete list of changes:
lino:src/lino/adamo/dbds/sqlite_dbd.py:
Connection as now a status. Moved startDump() and stopDump() from sqlite_dbd.Connection to SQLConnection. Moved checkIntegrity() from Session to Database and Store.
Renamed Database.startup() to connect().
Database.connect() had an optional argument "flt", a sequence of callables. This is now a sequence of tableClasses.
Database.connect() now opens only those tables who are not yet opened.
Center now also manages a list of connections. And closes() them upon shutdown(). This was not done explicitly until now.
Table.populate() is now used to fill a virgin database with default data.