267 |
query-pr [--debug | -D] [--help | -h] [--version | -V] |
query-pr [--debug | -D] [--help | -h] [--version | -V] |
268 |
[--output @var{file} | -o @var{file}] [--list-databases] |
[--output @var{file} | -o @var{file}] [--list-databases] |
269 |
[--list-fields] [--list-input-fields] |
[--list-fields] [--list-input-fields] |
270 |
[--responsible-address @var{address}] [--field-type @var{type}] |
[--responsible-address @var{name}] [--field-type @var{field}] |
271 |
[--field-description @var{description}] |
[--field-description @var{field}] |
272 |
[--valid-values @var{values}] [--format @var{format} | -f @var{format}] |
[--field-flags @var{field}] |
273 |
|
[--adm-field @var{field}] [--adm-subfield @var{subfield}] |
274 |
|
[--adm-key @var{key}] |
275 |
|
[--valid-values @var{field}] |
276 |
|
[--format @var{format} | -f @var{format}] |
277 |
[--full | -F] [--summary | -q] |
[--full | -F] [--summary | -q] |
278 |
[--database @var{database} | -d @var{database}] [--and | -&] |
[--database @var{database} | -d @var{database}] [--and | -&] |
279 |
[--or | -|] [--expr @var{expr}] [PR Number] |
[--or | -|] [--expr @var{expr}] [PR Number] |
379 |
would make sense when used in a template or form. |
would make sense when used in a template or form. |
380 |
|
|
381 |
@item --field-type @var{field} |
@item --field-type @var{field} |
382 |
Returns the data type contained in PR field field. The current set of |
Returns the data type contained in PR field @var{field}. The current |
383 |
data types includes @samp{text}, @samp{multitext}, @samp{enum}, |
set of data types includes @samp{text}, @samp{multitext}, @samp{enum}, |
384 |
@samp{multienum}, @samp{integer}, @samp{date}, and |
@samp{multienum}, @samp{enumerated-in-file}, |
385 |
@samp{text-with-regex-qualifier}. |
@samp{multi-enumerated-in-file}, @samp{date} and @samp{integer}. |
386 |
|
|
387 |
@item --field-description @var{field} |
@item --field-description @var{field} |
388 |
Returns a human-readable description of the intended purpose of @var{field}. |
Returns a human-readable description of the intended purpose of @var{field}. |
389 |
|
|
390 |
|
@item --field-flags @var{field} |
391 |
|
Returns the flags set for the field in the @file{dbconfig} file |
392 |
|
associated with the database, such as @code{textsearch} and |
393 |
|
@code{readonly}. @xref{Individual field configuration}. |
394 |
|
|
395 |
|
@item --adm-field @var{field} |
396 |
|
Used together with the @code{--adm-key} option, this returns a record |
397 |
|
from the administrative file (if any) associated with the field. For |
398 |
|
more material on administrative files, see @ref{administrative |
399 |
|
files,,Enumerated field administrative files}. |
400 |
|
|
401 |
|
@item --adm-subfield @var{subfield} |
402 |
|
Used together with the @code{--adm-field} and @code{--adm-key} options, |
403 |
|
this returns the contents of a particular subfield from the record |
404 |
|
specified by @code{--adm-field} and @code{--adm-key}. Subfields are |
405 |
|
treated in @ref{administrative files,,Enumerated field administrative |
406 |
|
files}. |
407 |
|
|
408 |
|
@item --adm-key @var{key} |
409 |
|
Used together with @code{--adm-field} to select a record from the |
410 |
|
administrative file associated with the field specified by |
411 |
|
@code{--adm-field}. @xref{administrative |
412 |
|
files,,Enumerated field administrative files}. |
413 |
|
|
414 |
@item --valid-values @var{field} |
@item --valid-values @var{field} |
415 |
For fields of type @samp{enum}, a list of valid values (one per line) is |
For fields of type @samp{enum}, a list of valid values (one per line) is |
416 |
returned. Otherwise, a regular expression is returned that describes |
returned. Otherwise, a regular expression is returned that describes |