Uwe Grauer wrote:
> Paul McNett wrote:
>> Uwe Grauer wrote:
>>> Would someone please answer the questions about the meaning
>>> of autocommit?
>>> See: http://svn.dabodev.com/trac/dabo/wiki/TransactionHandlingIdeas
>>> This is a outstanding issue for a long time now.
>> The doc says:
>>
>> """
>> AutoCommit
>>
>> Do we need explicit begin/commit/rollback commands for transactions?  (bool)
>> """
>>
>> I believe that the original intent of AutoCommit was a flag to let 
>> methods in dCursorMixin know whether dCursorMixin has to explicitly 
>> commit transactions for a given backend or not.
>>
>> If that is true, I don't believe AutoCommit should have ever been 
>> exposed to the application developer, as it is an internal 
>> implementation detail.
>>
>> However, I also believe you can set AutoCommit for some backends, which 
>> will change the behavior of the backend. Some backends autocommit by 
>> default, most not, and some if not all allow the user to change the 
>> behavior.
>>
>> But looking at the code, it also looks like setting AutoCommit can 
>> silently fail for some backends, so we should raise an exception there I 
>> think.
>>
>> If nothing else, we certainly need to rewrite the docstring to state 
>> more explicitly what the property does, and how the initial setting of 
>> the property is derived.
>>
>> Ed, what do you think?
>>
> 
> Well, there is more than one interpretation of this.
> If you look at it from a standpoint of a developer who doesn't
> know much about transactions, then it's true that it is just a
> implementation detail. But if you as a developer want to use ACID
> in your database, the question is much more than this.
> 
> There are the following cases:
> 1. your database doesn't support transactions.
> 2. your database supports autocommit and supports transactions.
> 3. your database only supports transactions.
> 4. your database doesn't have autocommit but you have to do a commit
> in order to mimic a autocommit in the framework.
> 
> Currently i can't use ACID features in firebird.
> That's why it is something i want to get working for a long time now.
> 
>>From the "help" i got by asking questions on this i have assumed that
> the dabo users don't know much about transactions or that until now
> nobody really thought about it.
> If this is not the case we should try to work out a better way to handle
> those issues.
> where the docs should be improved.
> 
> Uwe

I don't know what happened to my mail beginning at:
>
That's what i wrote:
>From the "help" i got by asking questions on this i have assumed that
the dabo users don't know much about transactions or that until now
nobody really thought about it.
If this is not the case we should try to work out a better way to handle
those issues.

Uwe


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]

Reply via email to