/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions
DybDbi::desc::Result Class Reference

List of all members.

Public Member Functions

def __init__
def __str__

Detailed Description

Perform low-level MySQL query against DB number dbno in the cascade
and store result as a list of dicts.

NB no type conversions are applied, everything stays as strings.  

Definition at line 25 of file desc.py.


Constructor & Destructor Documentation

def DybDbi::desc::Result::__init__ (   self,
  sql,
  dbno = 0 
)

Definition at line 32 of file desc.py.

00033                                     :
00034         list.__init__(self)
00035         stm = gDbi.cascader.CreateStatement(dbno)   
00036         tss = stm.ExecuteQuery(sql)
00037         nf = tss.GetNumFields()
00038         while tss.NextResultRow():
00039             d = dict( [(tss.GetFieldName(n),tss.GetString(n)) for n in range(nf)] )
00040             self.append(d)


Member Function Documentation

def DybDbi::desc::Result::__str__ (   self)

Definition at line 41 of file desc.py.

00042                      :
00043         return "\n".join( [repr(d) for d in self])


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:57:24 for DybDbi by doxygen 1.7.4