NAME
DBIx::QuickORM::WhereBuilder::Simple - Fast equality conditions.
DESCRIPTION
Takes a where that is a hashref of field names to plain values: each field equals its value, and an undef value means IS NULL. The SQL and binds are exactly what DBIx::QuickORM::WhereBuilder::SQLAbstract gives for the same hashref, built without SQL::Abstract.
It declines anything else: a value that is a reference (including value markers and operator hashes), and a key that is not a word or table.word (including -and and -or).
SYNOPSIS
my @rows = $orm->handle('users')
->where({
name => 'Bob',
email => undef,
})
->all;
PUBLIC METHODS
- $bool = DBIx::QuickORM::WhereBuilder::Simple->can_build_where($where)
- ($sql, \@binds) = DBIx::QuickORM::WhereBuilder::Simple->build_where($where, $source, $dialect)
-
As DBIx::QuickORM::Role::WhereBuilder describes. Fields are sorted and quoted through the dialect.
SOURCE
The source code repository for DBIx-QuickORM can be found at https://github.com/exodist/DBIx-QuickORM.
MAINTAINERS
AUTHORS
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.