TQL Query Modifiers

Query modifiers can modify the query behavior and the result format

ConstructModifierValueDescription
Query   
 varstring: comma-separated list of prefixesDeclares custom variable prefixes
 DocumentationstringDescription of the query
 Storagestring or structureDefinition or simple name of TQL storage (DB name and connection parameters)
Find   
 usingstring or structureList of namespaces hint or additional type/model definitions
 

as

string in the form Nr:Nrs[:Ni] where

Nx can be a dot-separated QName or

one of $none, $sid, $name

Defines the container hierarchy of the result set
 format

string: comma-separated list of

version, current, timestamp, qname, fname,

order, order+, datetime, meta, all

shows additional meta-data associated with each attribute
 OnlystringList of attributes to fetch. Comma-separated list of attribute names with optional predicates
 Distinctstring: model name or model-level variable name 
 nestedstring "*"expand all references to unlimited depth
 orderBystring: list of qualified attribute names 
 FromstringDot-delimited path to source container
Create   
 format

string: comma-separated list of

version, current, timestamp, qname, fname,

order, order+, datetime, meta, all

shows additional meta-data associated with each attribute
 Assame as in find except only two first parts are used 
 Onlysame as in find; creates only given attributes, ignores the restList of attributes to store
 nested

string "*" recursively split given structure by defined references

and replaces content with reference value

 
Save   
 format

string: comma-separated list of

version, current, timestamp, qname, fname,

order, order+, datetime, meta, all

shows additional meta-data associated with each attribute
 Assame as in find except only two first parts are used 
 Onlyssame as in find; creates only given attributes, ignores the restList of attributes to store
 nestedsame as in Create 
Update   
 format

string: comma-separated list of

version, current, timestamp, qname, fname,

order, order+, datetime, meta, all

shows additional meta-data associated with each attribute
    
 Assame as in find except only two first parts are used 
 Onlysame as in find; updates only given attributes, ignores the restList of attributes to update
 Fromsame as in Find/CreateDot-delimited path to source container
Delete   
 using  
 

as

same as in find except only two first parts are usedUpdates the container hierarchy of the result set
 format

string: comma-separated list of

version, current, timestamp, qname, fname,

order, order+, datetime, meta, all

shows additional meta-data associated with each attribute
 Onlysame as in find; deletes only given attributes, ignores the restList of attributes to delete
    
DeleteAll  follows the same syntax as Find; all found instances are deleted;
 usingsame as in Find 
 

as

same as in find except only two first parts are usedUpdates the container hierarchy of the result set
 format

string: comma-separated list of

version, current, timestamp, qname, fname,

order, order+, datetime, meta, all

shows additional meta-data associated with each attribute
 Onlysame as in find; delete only given attributes, ignores the restList of attributes to delete
 FromstringDot-delimited path to source container
    
   Â