Untransactable object that requires a true setting for autocommit
Subclass this if you have an object which is not transactional, but
might be used interchangeably with similar AutoCommitter objects.
This ensures that an attempt to create an instance of your class
will raise an exception if a true setting for autocommit isn't
supplied, thus warning the caller in the event that they mistakenly
used the wrong implementation for their desired semantics. For
example, if they used an SMTP messaging class instead of a queue-based
messaging class, but wanted the message send to wait until transaction
commit time.
Methods
|
|
__init__
|
|
__init__
|
__init__ (
self,
*__args,
*__kw,
)
Exceptions
|
|
exceptions.TransactionsNotSupported( "%r does not support transactions; the 'autocommit'" " flag is required." % self )
|
|
|