Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 34 Next »

 Expand to see legends and methodology

Unable to render {include} The included page could not be found.

Go to page

TqlQuery grammar
Example

 


Referenced by:


Query

  • Label: Query label, will be copied into result
  • From: Dot-delimited path to source container
  • TqlAs is written as "As": Colon-separated whole result: result set [:instance] container specifiers
  • FsExpression: any facet script expressions. They can be used both before the "Find/DeleteAll/Save/Create/Update/Delete" tags or after them. In either case, the execution is different
  • ListQName Using: List of namespace hints
  • Tag Using: Additional model definitions

TqlAs grammar
Example

 


Referenced by:


TqlAs

  • TqlAs: This defines a micro-language for a string value
  • TqlContainer - Instance container - this part is only used in Find. 

TqlContainer grammar
Example

 


Referenced by:


TqlContainer

  • TqlContainer: This is a [partial] string value definition.
  • ValueOf(sid): use SID as a container
  • ValueOf(name): use [model] name as a container
  • $none: no container requested 

TqlFindDeleteAll grammar
Example

 


Referenced by:


TqlFindDeleteAll

  • TqlFindDeleteAll: Find or DeleteAll content
  • From: Dot-delimited path to source container
  • TqlAs is written as "As": Colon-separated whole result:result set[:instance] container specifiers
  • Distinct: Reference to a model
  • TqlOnly is written as "Only": List of attributes to fetch 

TqlOnly grammar
Example

 


Referenced by:


TqlOnly

  • TqlOnly: comma-separated list of attribute names with optional predicates
  • Has optional "not." or "!" prefix
  • not.: canonical prefix
  • !: abbreviated prefix
  • Attribute reference: can be qualified by a model name or a variable name
  • "," and optional white space between attribute references

TqlFindModel grammar
Example

 


Referenced by:


TqlFindModel

  • TqlFindModel: Tql Find query model content
  • $Model=SubtypeOf(DataModel): this should set the $Model variable to be the name of any subtypes of DataModel (i.e. all Models). This variable value will be carried on to be used by TqlFindAttribute.
  • TqlFindAttribute: This will use the $Model variable

TqlFindAttribute grammar
Example

 


Referenced by:


TqlFindAttribute

  • TqlFindAttribute: Tql Find query model attribute content
  • AttributeOf($Model): name of an attribute of the enclosing model.
  • ConditionExpression: see definition on TQL Model Grammar

TqlCrud grammar
Example

 


Referenced by:


TqlCrud

  • TqlCrud: CRUD operation content
  • From: Dot-delimited path to source container
  • TqlAs is written as "As": Colon-separated whole result:instance container specifiers
  • TqlOnly is written as "Only": List of attributes to store

TqlCrudModel grammar
Example

 


Referenced by:


TqlCrudModel

  • TqlCrudModel: Tql CRUD query model content
  • $Model=SubtypeOf(DataModel): this should set the $Model variable to be the name of any subtypes of DataModel (i.e. all Models). This variable value will be carried on to be used by TqlCrudAttribute.
  • TqlCrudAttribute: This will use the $Model variable

TqlCrudAttribute grammar
Example

 


Referenced by:


TqlCrudAttribute

  • TqlCrudAttribute: Tql CRUD query model attribute content
  • AttributeOf($Model): name of an attribute of the enclosing model; abbreviated form or extended form
  • Value: actual value
  • Version: optional version
  • do: optional operation

TqlCrudAttribute grammar
Example

 


Referenced by:

  • No labels