![]() |
![]()
| ![]() |
![]()
NAMESearch::QueryParser::SQL::Column - SQL column object SYNOPSISmy $column = Search::QueryParser::SQL::Column->new( name => 'foo', type => 'char', alias => 'bar', fuzzy_op => 'ILIKE', fuzzy_not_op => 'NOT ILIKE', callback => sub { my ($col, $op, $val) = @_; return "$col $op $val"; }, orm_callback => sub { my ($col, $op, $val) = @_; return( $col => { $op => $val } ); }, ); DESCRIPTIONThis class represents a column in a database table, and is used for rendering SQL correctly. METHODSOnly new or overridden method are documented here. new( args )Instantiate a new Column object. args may be a hash or hashref. args keys are also accessor methods:
stringifyReturns Column name. Column objects overload to this method. AUTHORPeter Karman, "<karman@cpan.org>" BUGSPlease report any bugs or feature requests to "bug-search-queryparser-sql@rt.cpan.org", or through the web interface at <http://rt.cpan.org>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. ACKNOWLEDGEMENTSThe Minnesota Supercomputing Institute "http://www.msi.umn.edu/" sponsored the development of this software. COPYRIGHT & LICENSECopyright 2008 by the Regents of the University of Minnesota. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|