Doc­u­men­ta­tion/Graph Query Language

SETTINGS

The set­ting state­ment sets, removes or gets set­ting val­ues. A data­base, a Database-Session or types (includ­ing attrib­utes) can have settings.

SETTING
DB setting _expr |
SESSION setting _expr |
TYPE identifier_list setting _expr |
ATTRIBUTE id_list setting _expr
  • With this state­ment you can set, remove or get a set­ting of the data­base data­base, the Database-Session or the type or an attribute of an type
  • For exam­ple if one wants to set the ‘DEPTH’ of an query, one can set it for a sin­gle type then all attrib­utes of this type is resolved with this depth (Set­tings are inherited): 
    • if this is set on an attribute the ‘DEPTH’ set­ting only works for this attribute
    • if one set this for the data­base the ‘DEPTH’ set­ting is set for all types in database


set­ting _expr

setting_set | setting_get | setting_remove


setting_set

SET ( string_literal = setting_values [, setting_values] )
  • For exam­ple one can set the res­o­lu­tion ‘DEPTH’ for the type user with the state­ment ‘SETTING TYPE User SET (‘DEPTH’=’2’)’


setting_values

DEFAULT | number | string_literal


setting_get

GET ( string_literal [, string_literal ] )
  • For exam­ple one can get the ‘DEPTH’ set­ting by the state­ment ‘SETTING TYPE User GET (’DEPTH’)’


setting_remove

REMOVE ( string_literal [, string_literal ] )
  • To remove a set­ting you can use the REMOVE command
  • For exam­ple one wants to remove the value for the ‘DEPTH’ set­ting, by this state­ment: ‘SETTING TYPE User REMOVE(‘DEPTH’)’