Package qm :: Package test :: Package classes :: Module sql_result_stream :: Class SQLResultReader
[hide private]
[frames] | no frames]

Class SQLResultReader
source code

            object --+        
                     |        
   extension.Extension --+    
                         |    
result_reader.ResultReader --+
                             |
            object --+       |
                     |       |
   extension.Extension --+   |
                         |   |
             _SQLConnected --+
                             |
                            SQLResultReader

A 'SQLResultReader' reads result in from an SQL database.

This class currently supports PostgreSQL only.

Nested Classes [hide private]

Inherited from extension.Extension: Type, __metaclass__


Instance Methods [hide private]
  __init__(self, arguments=None, **args)
  _LoadAnnotations(self)
  GetAnnotations(self)
Return this run's dictionary of annotations.
  _SetupResultCursors(self)
  GetResult(self)
Return the next 'Result' from this reader.

Inherited from result_reader.ResultReader: __iter__

Inherited from extension.Extension: GetClassName, GetExplicitArguments, MakeDomDocument, MakeDomElement, Write, __getattr__

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__


Class Variables [hide private]
arguments A list of the arguments to the extension class.
_argument_dictionary A map from argument names to 'Field' instances.
_argument_list A list of all the 'Field's in this class.
run_id  

Inherited from result_reader.ResultReader: kind

Inherited from _SQLConnected: connection, db_module, db_name

Inherited from object: __class__


Method Details [hide private]

__init__(self, arguments=None, **args)
(Constructor)

source code 
Overrides: result_reader.ResultReader.__init__

_LoadAnnotations(self)

source code 

GetAnnotations(self)

source code 
Return this run's dictionary of annotations.
Overrides: result_reader.ResultReader.GetAnnotations
(inherited documentation)

_SetupResultCursors(self)

source code 

GetResult(self)

source code 

Return the next 'Result' from this reader.

returns -- A 'Result', or 'None' if there are no more results.
Overrides: result_reader.ResultReader.GetResult
(inherited documentation)

Class Variable Details [hide private]

arguments

A list of the arguments to the extension class.

Each element of this list should be an instance of 'Field'. The 'Field' instance describes the argument.

Derived classes may redefine this class variable. However, derived classes should not explicitly include the arguments from base classes; QMTest will automatically combine all the arguments found throughout the class hierarchy.
Value:
[<<class 'qm.fields.IntegerField'> run_id>]                            
      

_argument_dictionary

A map from argument names to 'Field' instances.

A map from the names of arguments for this class to the corresponding 'Field'.
Value:
{'connection': <<class 'qm.fields.PythonField'> connection>,
 'db_module': <<class 'qm.fields.TextField'> db_module>,
 'db_name': <<class 'qm.fields.TextField'> db_name>,
 'run_id': <<class 'qm.fields.IntegerField'> run_id>}                  
      

_argument_list

A list of all the 'Field's in this class.

This list combines the complete list of 'arguments'. 'Field's appear in the order reached by a pre-order breadth-first traversal of the hierarchy, starting from the most derived class.
Value:
[<<class 'qm.fields.TextField'> db_module>,
 <<class 'qm.fields.PythonField'> connection>,
 <<class 'qm.fields.TextField'> db_name>,
 <<class 'qm.fields.IntegerField'> run_id>]                            
      

run_id

Value:
0