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__
close
closeASAP
closeCursor
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.

  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

  registerCursor 
registerCursor ( ob )

Register an object whose close() method must be called


Table of Contents

This document was automatically generated on Mon Nov 11 01:11:05 2024 by HappyDoc version 2.1