Package gavo :: Package adql :: Module morphpg :: Class _PGQS
[hide private]
[frames] | no frames]

Class _PGQS

source code

             object --+                
                      |                
utils.autonode.AutoNode --+            
                          |            
             nodes.ADQLNode --+        
                              |        
        nodes.ColumnBearingNode --+    
                                  |    
           nodes.QuerySpecification --+
                                      |
                                     _PGQS

Nested Classes [hide private]

Inherited from utils.autonode.AutoNode: __metaclass__

Instance Methods [hide private]
 
flatten(self)
returns a string representation of the text content of the tree.
source code
 
__init__(self, fromClause=None, groupby=None, having=None, offset=None, orderBy=None, selectList=None, setLimit=None, setQuantifier=None, whereClause=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code

Inherited from nodes.QuerySpecification: getAllNames, getSelectFields, resolveField

Inherited from nodes.QuerySpecification (private): _iterSelectList, _polish

Inherited from nodes.ColumnBearingNode: change, getFieldInfo

Inherited from nodes.ADQLNode: __repr__, asTree, getFlattenedChildren

Inherited from nodes.ADQLNode (private): _setupNode, _treeRepr

Inherited from utils.autonode.AutoNode: iterAttributes, iterChildren, iterNodeChildren, iterNodes

Inherited from utils.autonode.AutoNode (private): _setupNodeNext

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

Class Methods [hide private]

Inherited from nodes.QuerySpecification (private): _getInitKWs

Inherited from nodes.ADQLNode: fromParseResult

Inherited from utils.autonode.AutoNode: cloneFrom

Class Variables [hide private]
  _a_offset = None
  _nodeAttrs = [('fromClause', None), ('groupby', None), ('havin...

Inherited from nodes.QuerySpecification: type

Inherited from nodes.ColumnBearingNode: fieldInfos, originalTable

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

flatten(self)

source code 

returns a string representation of the text content of the tree.

This default implementation will only work if you returned all parsed elements as children. This, in turn, is something you only want to do if you are sure that the node is question will not be morphed.

Otherwise, override it to create an SQL fragment out of the parsed attributes.

Overrides: nodes.ADQLNode.flatten
(inherited documentation)

__init__(self, fromClause=None, groupby=None, having=None, offset=None, orderBy=None, selectList=None, setLimit=None, setQuantifier=None, whereClause=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

_nodeAttrs

Value:
[('fromClause', None),
 ('groupby', None),
 ('having', None),
 ('offset', None),
 ('orderBy', None),
 ('selectList', None),
 ('setLimit', None),
 ('setQuantifier', None),
...