Dear ROOTers
Is there an way to insert records to sqlite database in parallel mode (e.g. many jobs in farm)? I found some examples in sqlite3 API that check if DB is locked or not, but I can’t see similar functions in ROOT API.
Actually I thougt about transactions, they can be done via current root interface (I suppose) but I would like also check the status of transactions by using sqlite3_get_autocommit but I don’t see such option in ROOT.
In TSQLServer class there are three methods to control transactions: StartTransaction(), Commit(), Rollback()
Only first method is implemented for TSQLiteServer class.
There is no problem to add implementation for remaining two - API is very simple and can be read here: BEGIN TRANSACTION - Using SQLite [Book]
And one can introduce extra method like TSQLServer::IsTransaction() which will use sqlite3_get_autocommit function inside.
I can provide PR. @dwielane, will you be able to test it?