Documentation/Graph Query Language
SETTINGS
The setting statement sets, removes or gets setting values. A database, a Database-Session or types (including attributes) can have settings.
SETTING
DB setting _expr |
SESSION setting _expr |
TYPE identifier_list setting _expr |
ATTRIBUTE id_list setting _expr
- With this statement you can set, remove or get a setting of the database database, the Database-Session or the type or an attribute of an type
- For example if one wants to set the ‘DEPTH’ of an query, one can set it for a single type then all attributes of this type is resolved with this depth (Settings are inherited):
- if this is set on an attribute the ‘DEPTH’ setting only works for this attribute
- if one set this for the database the ‘DEPTH’ setting is set for all types in database
setting _expr
setting_set | setting_get | setting_remove
setting_set
SET ( string_literal = setting_values [, setting_values] )
- For example one can set the resolution ‘DEPTH’ for the type user with the statement ‘SETTING TYPE User SET (‘DEPTH’=’2’)’
setting_values
DEFAULT | number | string_literal
setting_get
GET ( string_literal [, string_literal ] )
- For example one can get the ‘DEPTH’ setting by the statement ‘SETTING TYPE User GET (’DEPTH’)’
setting_remove
REMOVE ( string_literal [, string_literal ] )
- To remove a setting you can use the REMOVE command
- For example one wants to remove the value for the ‘DEPTH’ setting, by this statement: ‘SETTING TYPE User REMOVE(‘DEPTH’)’
