Code

sysdbql(7): Documented conditional attribute matchers.
authorSebastian Harl <sh@tokkee.org>
Wed, 2 Jul 2014 05:26:35 +0000 (07:26 +0200)
committerSebastian Harl <sh@tokkee.org>
Wed, 2 Jul 2014 05:26:35 +0000 (07:26 +0200)
doc/sysdbql.7.txt

index 5f967c63f492ff19aa179857528c04597d1047dc..011da144fc734ab9c005156506b59d523e35fbb3 100644 (file)
@@ -80,6 +80,15 @@ The following fields may be queried:
        The value of the named host attribute. If an attribute of the specified
        does not exist, each comparison is treated as if the value does not match.
 
        The value of the named host attribute. If an attribute of the specified
        does not exist, each comparison is treated as if the value does not match.
 
+'<value>' may either be a string (when matching by object names) or match the
+type of the attribute's value (when matching attribute values). Attribute
+values may either be a string, integer, or decimal number (booleans and binary
+data are not supported by the frontend yet).
+
+When comparing an attribute's value using a regular expression matcher, the
+value will be cast to a string before doing so. No other casts are supported
+at this time.
+
 The following operators may be used to match field values:
 
 *=*::
 The following operators may be used to match field values:
 
 *=*::
@@ -97,6 +106,12 @@ The following operators may be used to match field values:
        Evalues to true if the field value does not match the specified regular
        expression.
 
        Evalues to true if the field value does not match the specified regular
        expression.
 
+The following operators may be used, in addition, to match attribute values:
+
+*<*, *\<=*, *>=*, *>*::
+       Evaluates to true if the attribute value is less than, less than or equal
+       to, greater than or equal to or greater than the specified value.
+
 RESPONSE FORMAT
 ---------------
 The JavaScript Object Notation (JSON) format, as specified in RFC 4627, is
 RESPONSE FORMAT
 ---------------
 The JavaScript Object Notation (JSON) format, as specified in RFC 4627, is