Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » SQlite file locking - problems to handle
Re: SQlite file locking - problems to handle [message #32008 is a reply to message #31882] Sat, 16 April 2011 21:26 Go to previous message
mirek is currently offline  mirek
Messages: 14266
Registered: November 2005
Ultimate Member
papascalientes wrote on Mon, 04 April 2011 08:18


1. in U++ I have a session object (z_sql3 in the example) and an Sql object (sqlz(z_sql3) in the example). In SQlite documentation they are always referring to transactions. What corresponds to the transaction in U++, the session object or the sql object?



Session.

Quote:


1a)I can use Commit(), Begin(), Clear(), ... with the session object or with the SQL object. Is there any difference between using the methods with the session object and using the the methods with SQL object or is it the same?



No. Sql calls session Commit. Note: Not Clear, I believe you have meant "Rollback"

Quote:


2. (more SQlite specific question/s): If I start a SQlite transaction with Begin() in U++, does the transaction persist
- only when a Commit() failed because of a shared lock
- always if a Commit() failed

And related questions:
2a) If I Close() the session, what happens to the transaction that was started with Begin() and is closed after a successful Commit() but may still be open if the Commit() failed
2b) What happens to the Journal, if it is not possible to write to the database. When and how is it closed/destroyed?



This is very Sqlite specific. I think you should look into Sqlite docs..

Quote:


And of course I am also grateful for general tipps how to handle file locking and concurrency database operations in U++.



Frankly, for concurrency, I would rather used different DB... Smile

 
Read Message
Read Message
Previous Topic: Demo Package of FieldOperator usage
Next Topic: MySqlSession::GetTransactionLevel() implementation
Goto Forum:
  


Current Time: Sat Jul 19 04:38:00 CEST 2025

Total time taken to generate the page: 0.03545 seconds