Package ccm :: Class Query |
[hide private]
[frames] | no frames]

# Class Query

source code

    object --+
             |
            Query

This object wrap a synergy query, it takes a query as input as well as the attribute you want as output, and get them translated using the model configuration. e.g Query(session, "type='task' and release='test/next'", ['objectname', 'task_synopsis'], ['ccmobject', 'string'])

This will return a list of hash: [{'objectname': Task(xxx), 'task_synopsis': 'xxx'}, ...]

Instance Methods | [hide private]
__init__(self, session, query, keywords, model, cmd="query") Initialize a Synergy query. | source code
execute(self) Executing the query on the database. | source code
Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, session, query, keywords, model, cmd="query") (Constructor) | source code
Initialize a Synergy query. Overrides: object.__init__