Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Execute a Cypher query against a database and return a tuple of rows
and metadata. If handlers are supplied, an empty list of rows is returned
instead, with each row being passed to the row_handler as it becomes
available. Each row is passed as a list of values which may be either Nodes,
Relationships or properties.

:param graph_db: the graph database against which to execute this query
:param query: the Cypher query to execute
:param params: parameters to apply to the query provided
:param format:(more...)

        def execute(graph_db, query, params=None, row_handler=None, metadata_handler=None, error_handler=None):
    """ Execute a Cypher query against a database and return a tuple of rows
    and metadata. If handlers are supplied, an empty list of rows is returned
    instead, with each row being passed to the row_handler as it becomes
    available. Each row is passed as a list of values which may be either Nodes,
    Relationships or properties.

    :param graph_db: the graph database against which to execute this query
    :param query: the Cypher query to execute
    :param params: parameters to apply to the query provided
    :param format:
    :param row_handler: a handler function for each row returned
    :param metadata_handler: a handler function for returned metadata
    :param error_handler: a handler function for error conditions
    """
    return Query(graph_db, query).execute(
        params, row_handler=row_handler, metadata_handler=metadata_handler, error_handler=error_handler
    )
        


src/k/a/kaiso-HEAD/kaiso/persistence.py   kaiso(Download)
        log.debug('running query:\n%s', query.format(**params))
 
        rows, _ = cypher.execute(self._conn, query, params)
 
        return (row for row in rows)

src/n/e/neomodel-0.3.6/neomodel/core.py   neomodel(Download)
        logger.debug("params: " + repr(params))
    try:
        return cypher.execute(connection(), query, params)
    except cypher.CypherError as e:
        message, etype, jtrace = e.args

src/k/a/kaiso-0.17.1/kaiso/persistence.py   kaiso(Download)
        log.debug('running query:\n%s', query.format(**params))
 
        rows, _ = cypher.execute(self._conn, query, params)
 
        return (row for row in rows)

src/k/a/kaiso-HEAD/test/persistence/test_type_system_caching.py   kaiso(Download)
        'version': str(uuid.uuid4())
    }
    cypher.execute(connection, query, query_params)
 
    # reloading types should see the difference