TQL name: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
Line 13: Line 13:
==Forbidden Examples==
==Forbidden Examples==
The following examples are not allowed:
The following examples are not allowed:
* AND
* <code>AND</code>
* _AND
* <code>_AND</code>
* AND_
* <code>AND_</code>
* FOO_ANDS
* <code>FOO_ANDS</code>
* WHERE_
* <code>WHERE_</code>
* WHERE_FOO
* <code>WHERE_FOO</code>


==Valid Examples==
==Valid Examples==

Revision as of 08:54, 26 November 2026

A TQL name is a name which fits a specific set of restrictions, allowing it to be used unambiguously in TQL queries. Attributes and Globals must always have a name conforming to those restrictions, because queries use those names verbatim.

Restrictions

The following restrictions apply:

  • Must be entirely capitalized, to avoid ambiguity.
  • May only consist of letters, numbers, and underscores, to avoid issues with special characters.
  • Must begin with a letter. Explicitly not a number or underscore.
  • Must be at least 1 and at most 100 characters long.
  • May not contain any of the following _AND, _WHERE
  • May not start with any of the following XML, AND_, WHERE_
  • May not end with an underscore.

Forbidden Examples

The following examples are not allowed:

  • AND
  • _AND
  • AND_
  • FOO_ANDS
  • WHERE_
  • WHERE_FOO

Valid Examples

  • ANDERSON

Invalid Examples

Updating an Area attribute named WHEREVER is invalid:

UPDATE_AREA_WHEREVER_WHERE_AREA_IS_0

while selecting it is valid:

SELECT_ATTRIBUTE_WHERE_AREA_IS_0_AND_NAME_IS_WHEREVER