OpenCDSS / cdss-app-tstool-main

Colorado's Decision Support Systems (CDSS) TSTool application main program
GNU General Public License v3.0
1 stars 1 forks source link

Add ability to take actions on datastores via menu #183

Open smalers opened 3 years ago

smalers commented 3 years ago

Subject of the issue

Sometimes datastores get into a weird state and need manual attention, such as SQLite datastores opened dynamically with OpenDataStore that lock the database file. In this case, it may be necessary to close the datastore manually. Could add a "Close Datastore" menu item somewhere in the application menus.

Environment

Steps to reproduce

Use NewSQLiteDatabase. Run the command but don't use CloseDataStore.

Expected Behavior

Database should be unlocked and closed.

Actual Behavior

File appears to be locked. Subsequent SQL inserts add to the database, resulting in too many records.