It looks like BeginTx takes a TxOptions struct which allows the caller to specify if this is a ReadOnly transaction. This should be used to implement the correct type of SQLite transaction, similar to the way the TS SDK now accepts a read/write/deferred mode as implemented by @honzasp.
We should also make sure that Begin and BeginTx with no options is taking a good default (probably a write transaction, and not a deferred transaction as it is now).
It looks like
BeginTxtakes aTxOptionsstruct which allows the caller to specify if this is aReadOnlytransaction. This should be used to implement the correct type of SQLite transaction, similar to the way the TS SDK now accepts a read/write/deferred mode as implemented by @honzasp.We should also make sure that
BeginandBeginTxwith no options is taking a good default (probably a write transaction, and not a deferred transaction as it is now).