Aestate
Public Member Functions | Private Member Functions | Private Attributes | List of all members
aestate.opera.DBPool.steady_db.SteadyDBCursor Class Reference
Collaboration diagram for aestate.opera.DBPool.steady_db.SteadyDBCursor:
Collaboration graph

Public Member Functions

def __init__ (self, con, *args, **kwargs)
 
def __enter__ (self)
 
def __exit__ (self, *exc)
 
def setinputsizes (self, sizes)
 
def setoutputsize (self, size, column=None)
 
def close (self)
 
def __getattr__ (self, name)
 
def __del__ (self)
 

Private Member Functions

def _clearsizes (self)
 
def _setsizes (self, cursor=None)
 
def _get_tough_method (self, name)
 

Private Attributes

 _cursor
 
 _closed
 
 _con
 
 _kwargs
 
 _inputsizes
 
 _outputsizes
 
 _transaction
 

Detailed Description

A "tough" version of DB-API 2 cursors.

Definition at line 425 of file steady_db.py.

Constructor & Destructor Documentation

◆ __init__()

def aestate.opera.DBPool.steady_db.SteadyDBCursor.__init__ (   self,
  con,
args,
**  kwargs 
)
Create a "tough" DB-API 2 cursor.

Definition at line 428 of file steady_db.py.

◆ __del__()

def aestate.opera.DBPool.steady_db.SteadyDBCursor.__del__ (   self)
Delete the steady cursor.

Definition at line 604 of file steady_db.py.

Here is the call graph for this function:

Member Function Documentation

◆ __enter__()

def aestate.opera.DBPool.steady_db.SteadyDBCursor.__enter__ (   self)
Enter the runtime context for the cursor object.

Definition at line 443 of file steady_db.py.

◆ __exit__()

def aestate.opera.DBPool.steady_db.SteadyDBCursor.__exit__ (   self,
exc 
)
Exit the runtime context for the cursor object.

Definition at line 447 of file steady_db.py.

Here is the call graph for this function:

◆ __getattr__()

def aestate.opera.DBPool.steady_db.SteadyDBCursor.__getattr__ (   self,
  name 
)
Inherit methods and attributes of underlying cursor.

Definition at line 593 of file steady_db.py.

Here is the call graph for this function:

◆ _clearsizes()

def aestate.opera.DBPool.steady_db.SteadyDBCursor._clearsizes (   self)
private
Clear stored input and output sizes.

Definition at line 459 of file steady_db.py.

Here is the caller graph for this function:

◆ _get_tough_method()

def aestate.opera.DBPool.steady_db.SteadyDBCursor._get_tough_method (   self,
  name 
)
private
Return a "tough" version of the given cursor method.

Definition at line 488 of file steady_db.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _setsizes()

def aestate.opera.DBPool.steady_db.SteadyDBCursor._setsizes (   self,
  cursor = None 
)
private
Set stored input and output sizes for cursor execution.

Definition at line 464 of file steady_db.py.

Here is the caller graph for this function:

◆ close()

def aestate.opera.DBPool.steady_db.SteadyDBCursor.close (   self)
Close the tough cursor.

It will not complain if you close it more than once.

Definition at line 476 of file steady_db.py.

Here is the caller graph for this function:

◆ setinputsizes()

def aestate.opera.DBPool.steady_db.SteadyDBCursor.setinputsizes (   self,
  sizes 
)
Store input sizes in case cursor needs to be reopened.

Definition at line 451 of file steady_db.py.

◆ setoutputsize()

def aestate.opera.DBPool.steady_db.SteadyDBCursor.setoutputsize (   self,
  size,
  column = None 
)
Store output sizes in case cursor needs to be reopened.

Definition at line 455 of file steady_db.py.

Member Data Documentation

◆ _closed

aestate.opera.DBPool.steady_db.SteadyDBCursor._closed
private

Definition at line 432 of file steady_db.py.

◆ _con

aestate.opera.DBPool.steady_db.SteadyDBCursor._con
private

Definition at line 434 of file steady_db.py.

◆ _cursor

aestate.opera.DBPool.steady_db.SteadyDBCursor._cursor
private

Definition at line 431 of file steady_db.py.

◆ _inputsizes

aestate.opera.DBPool.steady_db.SteadyDBCursor._inputsizes
private

Definition at line 453 of file steady_db.py.

◆ _kwargs

aestate.opera.DBPool.steady_db.SteadyDBCursor._kwargs
private

Definition at line 435 of file steady_db.py.

◆ _outputsizes

aestate.opera.DBPool.steady_db.SteadyDBCursor._outputsizes
private

Definition at line 462 of file steady_db.py.

◆ _transaction

aestate.opera.DBPool.steady_db.SteadyDBCursor._transaction
private

Definition at line 585 of file steady_db.py.


The documentation for this class was generated from the following file: