Apache::Wyrd::Lookup - Wyrd for returning an SQL query result



NAME

Apache::Wyrd::Lookup - Wyrd for returning an SQL query result


SYNOPSIS

    <BASENAME::Lookup joiner=" : ">
      select * from people
    </BASENAME::Lookup>
    <BASENAME::Lookup
      query="select name from contact where name is like 'S%'">
      <b>$:name</b>
      <BASENAME::Var name="field_joiner"><BR></BASENAME::Var>
    </BASENAME::Lookup>

HTML ATTRIBUTES

joiner
what to join multiple values with. Defaults to ``, ''. If either this or record_joiner is set to ``CSV'', comma separated value format will be used. For the special characters, ``CR'' or ``\r'' will give carriage return, and LF or ``\n'' will give a linefeed, the same for CRLF and ``\r\n''.

field_joiner
an alias for joiner

record_joiner
what to join multiple values with. Defaults to newline.

PERL METHODS

(format: (returns) name (accepts))

(scalar) _default_joiner (void)
method to be overridden in a subclass to change the default value for joiner.

(scalar) _default_record_joiner (void)
method to be overridden in a subclass to change the default value for joiner.


BUGS/CAVEATS/RESERVED METHODS

Reserves the _format_output and _generate_output methods.


AUTHOR

Barry King <wyrd@nospam.wyrdwright.com>


SEE ALSO

Apache::Wyrd
General-purpose HTML-embeddable perl object


LICENSE

Copyright 2002-2004 Wyrdwright, Inc. and licensed under the GPL.

See LICENSE under the documentation for Apache::Wyrd.

 Apache::Wyrd::Lookup - Wyrd for returning an SQL query result