Using Queries and Filters with Business Network Data | Hyperledger ... [PDF]

Querying and filtering business network data. Queries are used to return data about the blockchain world-state; for exam

15 downloads 54 Views 31KB Size

Recommend Stories


Gaia Data Queries with ADQL
You have to expect things of yourself before you can do them. Michael Jordan

Answering Queries Using Views with Arithmetic Comparisons
We can't help everyone, but everyone can help someone. Ronald Reagan

PDF Online Data Mining and Business Analytics with R
The wound is the place where the Light enters you. Rumi

[PDF] Read Business Data Networks and Security
I want to sing like the birds sing, not worrying about who hears or what they think. Rumi

PDF Download Business Data Networks and Security
You have survived, EVERY SINGLE bad day so far. Anonymous

PDF Download Business Data Communications and Networking
You have survived, EVERY SINGLE bad day so far. Anonymous

PdF Business Data Networks and Security
Sorrow prepares you for joy. It violently sweeps everything out of your house, so that new joy can find

[PDF] Data Science for Business
You can never cross the ocean unless you have the courage to lose sight of the shore. Andrè Gide

PdF Data Science for Business
Courage doesn't always roar. Sometimes courage is the quiet voice at the end of the day saying, "I will

[PDF BOOK] Business Data Communications
Stop acting so small. You are the universe in ecstatic motion. Rumi

Idea Transcript


Hyperledger Composer Tutorials

Docs

Community

Using Queries and Filters with Business Network Data

Introduction Key Concepts Typical Solution Architecture

Installing Using the Playground online Installing pre-requisites on Mac OS Installing the Playground locally Installing a development environment

Tutorials

Querying and filtering business network data Queries are used to return data about the blockchain world-state; for example, you could write a query to return all drivers over a specified age, or all drivers with a specific name. The composer-rest-server component exposes named queries via the generated REST API. Queries are an optional component of a business network definition, written in a single query file ( queries.qry ). Note: When using the Hyperledger Fabric v1.0 runtime Hyperledger Fabric must be configured to use CouchDB persistence. Filters are similar to queries, but use the LoopBack filter syntax, and can only be sent using the Hyperledger Composer REST API. Currently, only the WHERE LoopBack filter is supported. The supported operators within WHERE are: =, and, or, gt, gte, lt, lte, neq. Filters are submitted using a GET call against an asset type, participant type, or transaction type; the filter is then supplied as a parameter. Filters return the results from the specified class, and will not return results from classes extending the specified class.

Types of Queries Hyperledger Composer supports two types of queries: named queries and dynamic queries. Named queries are specified in the business network definition and are exposed as GET methods by the composer-rest-server component. Dynamic queries may be constructed dynamically at runtime within a Transaction Processor function, or from client code.

Writing Named Queries Queries must contain a description and a statement. Query descriptions are a string that describe the function of the query. Query statements contain the operators and functions that control the query behavior. Query descriptions can be any descriptive string. A query statement must include the SELECT operator and can optionally include FROM , WHERE , AND , ORDER BY , SKIP , and LIMIT . Queries should take the following format:

Smile Life

When life gives you a hundred reasons to cry, show life that you have a thousand reasons to smile

Get in touch

© Copyright 2015 - 2024 PDFFOX.COM - All rights reserved.