NAME

DBIx::QuickORM::WhereBuilder::RawSQL - A where that is SQL already.

DESCRIPTION

Takes a where that is a plain string, used as SQL with no binds, or a single sql() marker (DBIx::QuickORM::Value), used with its binds. It declines everything else.

SYNOPSIS

use DBIx::QuickORM::Value qw/sql/;

my @rows = $orm->handle('users')->where(sql('id > ?', 10))->all;

PUBLIC METHODS

$bool = DBIx::QuickORM::WhereBuilder::RawSQL->can_build_where($where)
($sql, \@binds) = DBIx::QuickORM::WhereBuilder::RawSQL->build_where($where, $source, $dialect)

As DBIx::QuickORM::Role::WhereBuilder describes. The SQL is wrapped in parentheses. An empty string is no condition.

SOURCE

The source code repository for DBIx-QuickORM can be found at https://github.com/exodist/DBIx-QuickORM.

MAINTAINERS

Chad Granum <exodist7@gmail.com>

AUTHORS

Chad Granum <exodist7@gmail.com>

COPYRIGHT

Copyright Chad Granum <exodist7@gmail.com>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See https://dev.perl.org/licenses/