Package gavo :: Package adql :: Module nodes :: Class SelectQuery
[frames] | no frames]

Class SelectQuery

source code

             object --+                
                      |                
utils.autonode.AutoNode --+            
                          |            
                   ADQLNode --+        
                              |        
              ColumnBearingNode --+    
                                  |    
                     object --+   |    
                              |   |    
               TransparentMixin --+    
                                  |    
                   SetOperationNode --+
                                      |
                                     SelectQuery

A complete query excluding CTEs.

The main ugly thing here is the set limit; the querySpecification has max of the limits of the children, if existing, otherwise to None.

Other than that, we hand through attribute access to our first child.

If there is a set expression on the top level, this will have a complex structure; the first-child thing still ought to work since after annotation we'll have errored out if set operator arguments aren't reasonably congurent.

Nested Classes

Inherited from utils.autonode.AutoNode: __metaclass__

Instance Methods
 
getSelectClauses(self) source code
 
__getattr__(self, attrName) source code
 
__init__(self, children=(), offset=None, setLimit=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from SetOperationNode: addFieldInfos, getAllNames

Inherited from ColumnBearingNode: change, getFieldInfo

Inherited from ADQLNode: __repr__, asTree, flatten, getFlattenedChildren, iterTree

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

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

Class Methods

Inherited from ADQLNode: fromParseResult

Inherited from utils.autonode.AutoNode: cloneFrom

Class Variables
  type = 'selectQuery'
hash(x)

Inherited from ColumnBearingNode: fieldInfos, originalTable

Properties

Inherited from object: __class__

Method Details

getSelectClauses(self)

source code 
Overrides: SetOperationNode.getSelectClauses

__init__(self, children=(), offset=None, setLimit=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)