From: Sebastian Harl Date: Wed, 2 Jul 2014 05:26:35 +0000 (+0200) Subject: sysdbql(7): Documented conditional attribute matchers. X-Git-Tag: sysdb-0.2.0~1 X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=commitdiff_plain;h=16ac77248a64a2fc6a0ebfd79d2c4357e95247d8 sysdbql(7): Documented conditional attribute matchers. --- diff --git a/doc/sysdbql.7.txt b/doc/sysdbql.7.txt index 5f967c6..011da14 100644 --- a/doc/sysdbql.7.txt +++ b/doc/sysdbql.7.txt @@ -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. +'' 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: *=*:: @@ -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. +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