dbapi.py
changeset 9770 112c884b2d8d
parent 9573 99166335a8e0
parent 9702 c2108dbfb508
child 9774 b7b71be569cf
equal deleted inserted replaced
9765:5607ef9ab9f5 9770:112c884b2d8d
   116 
   116 
   117     `database` may be:
   117     `database` may be:
   118 
   118 
   119     * a simple instance id for in-memory connection
   119     * a simple instance id for in-memory connection
   120 
   120 
   121     * an uri like scheme://host:port/instanceid where scheme may be one of
   121     * a uri like scheme://host:port/instanceid where scheme may be one of
   122       'pyro', 'inmemory' or 'zmqpickle'
   122       'pyro', 'inmemory' or 'zmqpickle'
   123 
   123 
   124       * if scheme is 'pyro', <host:port> determine the name server address. If
   124       * if scheme is 'pyro', <host:port> determine the name server address. If
   125         not specified (e.g. 'pyro:///instanceid'), it will be detected through a
   125         not specified (e.g. 'pyro:///instanceid'), it will be detected through a
   126         broadcast query. The instance id is the name of the instance in the name
   126         broadcast query. The instance id is the name of the instance in the name
   407 
   407 
   408     def execute(self, rql, args=None, build_descr=True):
   408     def execute(self, rql, args=None, build_descr=True):
   409         """execute a rql query, return resulting rows and their description in
   409         """execute a rql query, return resulting rows and their description in
   410         a :class:`~cubicweb.rset.ResultSet` object
   410         a :class:`~cubicweb.rset.ResultSet` object
   411 
   411 
   412         * `rql` should be an Unicode string or a plain ASCII string, containing
   412         * `rql` should be a Unicode string or a plain ASCII string, containing
   413           the rql query
   413           the rql query
   414 
   414 
   415         * `args` the optional args dictionary associated to the query, with key
   415         * `args` the optional args dictionary associated to the query, with key
   416           matching named substitution in `rql`
   416           matching named substitution in `rql`
   417 
   417