Fey::Role::SQL::HasWhereClause - A role for queries which can include a WHERE clause


Fey documentation  | view source Contained in the Fey distribution.

Index


NAME

Top

Fey::Role::SQL::HasWhereClause - A role for queries which can include a WHERE clause

VERSION

Top

version 0.40

SYNOPSIS

Top

  use Moose;

  with 'Fey::Role::SQL::HasWhereClause';

DESCRIPTION

Top

Classes which do this role represent a query which can include a WHERE clause.

METHODS

Top

This role provides the following methods:

$query->where(...)

See the Fey::SQL section on WHERE Clauses for more details.

$query->and(...)

See the Fey::SQL section on WHERE Clauses for more details.

$query->where_clause( $dbh, $skip_where )

Returns the WHERE clause portion of the SQL statement as a string. The first argument, a database handle, is required. If the second argument is true, the string returned will not start with "WHERE", it will simply start with the where clause conditions.

BUGS

Top

See Fey for details on how to report bugs.

AUTHOR

Top

Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE

Top


Fey documentation  | view source Contained in the Fey distribution.