ID: Difference between revisions

From Tygron Preview Support Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 8: Line 8:


The ID of data can never be changed, even in the editor, as doing so would invalidate any references to that same data.
The ID of data can never be changed, even in the editor, as doing so would invalidate any references to that same data.
==TQL==
{{main|TQL}}
IDs are used most evidently for the construction of TQL statements. Most statements that refer to a specific piece of data do so by ID. [[X-query|X-queries]] and [[ID-query|ID-queries]] do too, but do so indirectly. Whereever such a query is defined, the X or ID in the query is replaced with the relevant ID of the data.
==See also==
* [[How to find the ID of specific data in your project]]

Revision as of 12:31, 9 June 2020

This article is a stub.

ID stands for Identifier, and is a property through which data can be uniquely identified.

A Project in the Tygron Platform consists of large amounts of data, such as neighborhoods, constructions, stakeholders, overlays, and much more. The Tygron Platform needs to keep track of all the data in the Project. However, much data can be freely duplicated, and can have effectively all of its properties changed. To allow referring to data unambiguously, all data in a project has a unique ID.

The ID of any piece of data is a number which is unique among all data of the same type in that project. I.e., there can only be one Construction with an ID of 2, but that does not preclude there being a stakeholder with an ID of 2. Whenever new data is added, the ID of the new data is the current highest ID among the same type of data, plus 1.

The ID of data can never be changed, even in the editor, as doing so would invalidate any references to that same data.

TQL

Main article: TQL

IDs are used most evidently for the construction of TQL statements. Most statements that refer to a specific piece of data do so by ID. X-queries and ID-queries do too, but do so indirectly. Whereever such a query is defined, the X or ID in the query is replaced with the relevant ID of the data.

See also