Dave Rolsky > Fey > Fey::Role::SQL::HasWhereClause

Download:
Fey-0.40.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  2
View/Report Bugs
Module Version: 0.40   Source  

NAME ^

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

VERSION ^

version 0.40

SYNOPSIS ^

  use Moose;

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

DESCRIPTION ^

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

METHODS ^

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 ^

See Fey for details on how to report bugs.

AUTHOR ^

Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE ^

This software is Copyright (c) 2011 by Dave Rolsky.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)
syntax highlighting: