Database locking thoughts
Aug 29, 2008 12:49:53 GMT -5
Post by Carl Gundel - admin on Aug 29, 2008 12:49:53 GMT -5
I'm thinking of adding a locking feature to Run BASIC and SQLite. Currently each opened SQLite database connection is independent of every other one. To make it easier to prevent trouble with database lock errors, it would be good to have an eXclusive gated database accessor for each database.
While that connection to database.db is open, if another running application want to open another eXclusive connection to that database it will be queued up to take its turn. Used correctly, this should help prevent database lock errors.
Thoughts?
-Carl
sqliteconnectx #myDB, "database.db"
'do one or more SQL statements
#myDB disconnect()While that connection to database.db is open, if another running application want to open another eXclusive connection to that database it will be queued up to take its turn. Used correctly, this should help prevent database lock errors.
Thoughts?
-Carl