Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open transaction in sqlite3 #62

Open
Blas0117 opened this issue Sep 23, 2023 · 1 comment
Open

Open transaction in sqlite3 #62

Blas0117 opened this issue Sep 23, 2023 · 1 comment

Comments

@Blas0117
Copy link

"I would like to know which function is used to initiate a transaction in SQLite, as I do not see it in the documentation. Typically, it would be 'Begin transaction,' and then 'Commit' to confirm, but I can't find the correct command for that."

@jepiqueau
Copy link
Owner

@Blas0117 if in the execute, executeSet and run method you set transaction to true the transaction is manager for you so you do not have to worry. If you run a large batch of commands it will be more efficient to manage the transaction workflow with beginTransaction, commitTransaction and rollbackTransaction in that case put the transaction to false in the batch of commands hope this clarify

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants