</div>
<div class="slide">
+ <h1>SQL: Search</h1>
+<pre>my $sth = $dbh->prepare('
+ SELECT title,
+ authors.name as author_name
+ FROM books
+ WHERE books.name LIKE "%monte cristo%" AND
+ books.topic = "jailbreak"
+');
+</pre>
+ </div>
+
+ <div class="slide">
+ <h1>DBIC: Search</h1>
+<pre>
+my $book = $book_rs-><a href="http://search.cpan.org/perldoc?DBIx::Class::ResultSet#search">search</a>({
+ 'me.name' => { -like => '%monte cristo%' },
+ 'me.topic' => 'jailbreak',
+})-><a href="http://search.cpan.org/perldoc?DBIx::Class::ResultSet#next">next</a>;
+</pre>
+ <ul class="incremental">
+ <li><a href="http://search.cpan.org/perldoc?SQL::Abstract">SQL::Abstract</a></li>
+ <li>(kinda) introspectible</li>
+ <li>Prettier than SQL</li>
+ </ul>
+ </div>
+
+ <div class="slide">
<h1>OO Overidability</h1>
<ul class="incremental">
<li>Override new if you want to do validation</li>
</div>
<div class="slide">
- <h1><a href="http://search.cpan.org/perldoc?SQL::Abstract">SQL::Abstract</a></h1>
-<pre>my $resultset = $book_rs->search({
- name => { -like => "%$nick%" },
-});</pre>
- <ul class="incremental">
- <li>(kinda) introspectible</li>
- <li>Prettier than SQL</li>
- </ul>
- </div>
-
- <div class="slide">
<h1>Result vs ResultSet</h1>
<ul class="incremental">
<li>Result == Row</li>