This folder contains the source code for queries that are included in the Azure Digital Twins documentation. They are written in a SQL-like query language referred to as the Azure Digital Twins query language.
Note that this is the text of the queries themselves, not the complete SDK calls to submit these queries to the service. For SDK call examples for your language of choice, see the folder of SDK code snippets.
Below is a list of the query files contained in this folder, including mappings between the queries and the documents in which they appear, and descriptions of each.
Query file | Used in | Description |
---|---|---|
examples.sql | how-to-manage-twin how-to-query-graph how-to-use-tags tutorial-end-to-end quickstart-azure-digital-twins-explorer |
This file contains the code snippets for the example queries that are shown in these documents. |
reference.sql | Query language reference documentation (accessible from Azure Digital Twins documentation TOC | This file contains the code snippets for the queries that are shown in these reference documents. |
test_queries.cs | None | FOR TESTING PURPOSES The code in this file runs the queries in queries.sql to test whether they work as expected. |
The preferred strategy for referencing code snippets in docs is by using named tags to identify the proper section of code from a document.
This is possible for SQL documents, so the queries in this folder are given tags that their docs counterparts can use to identify them.