문제

I found that there is a new SQLite3 class (as of PHP 5.3.3) and started using it in my latest project.

http://www.php.net/manual/en/book.sqlite3.php

All was well till I needed transactions. Have I overlooked something in the documentation? How could I achieve transactions using this class.

도움이 되었습니까?

해결책

Since SQLite3 itself supports transactions, it would seem that all you need to do is initialise transactions with a query: BEGIN TRANSACTION (much as you would in other systems) and COMMIT TRANSACTION to finalise the queryset.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top