In pysqlite, I need to keep track of the transaction state (in
transaction/not in transaction).  To handle ON CONFLICT ROLLBACK in
pysqlite correctly, I need to be able to query the transaction state.

As I see it, that's currently not possible. Am I mistaken?

Otherwise, could you please implement a fast way to get the transaction
state, like an additional API call?

Currently, I think the only way is to issue a "BEGIN" and test if it
fails.

-- Gerhard
-- 
Gerhard Häring - [EMAIL PROTECTED] - Python, web & database development

Attachment: signature.asc
Description: Digital signature

Reply via email to