Table of Contents

Class: IManagedConnection ./src/peak/storage/interfaces.py

Transactable "Connection" object that appears to always be open

Base Classes   
IComponent
ITransactionParticipant
    Interface
Methods   
__call__
assertUntransacted
close
closeASAP
closeCursor
joinTxn
registerCursor
  __call__ 
__call__ ( *args,  *kw )

Return a (possibly initialized) ICursor

Creates a new ICursor instance initialized with the passed keyword arguments. If positional arguments are supplied, they are passed to the new cursor's execute() method before it is returned.

This method is the primary way of interacting with a connection; either you'll pass positional arguments and receive an initialized and iterable cursor, or you'll call with no arguments or keywords only to receive a cursor that you can use to perform more "low-level" interactions with the database.

  assertUntransacted 
assertUntransacted ()

Raise TransactionInProgress if transaction already joined

  close 
close ()

Close the connection immediately

  closeASAP 
closeASAP ()

Close the connection as soon as it's not in a transaction

  closeCursor 
closeCursor ()

Close all registered cursors which are still active

  joinTxn 
joinTxn ()

Join the current transaction, if not already joined

  registerCursor 
registerCursor ( ob )

Register an object whose close() method must be called


Table of Contents

This document was automatically generated on Tue Feb 17 19:55:50 2004 by HappyDoc version 2.1