ID

From Tygron Support wiki
Jump to navigation Jump to search

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

IDs in the Tygron Platform

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 also 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. Wherever such a query is defined, the X or ID in the query is replaced with the relevant ID of the data.

See also