<div class="slide">
<h1>What's up guys?</h1>
- <div class="notes">
- <ul>
- <li>How many people have used any ORM?<ul>
- <li>In Perl?<ul>
- <li>DBIC?</li>
- <li>Class::DBI?</li>
- <li>Rose::DB?</li>
- <li>Fey?</li>
- <li>Others?</li>
- </ul></li>
- <li>AR?</li>
- <li>DataMapper?</li>
- <li>(N)Hibernate?</li>
+ <ul class="incremental">
+ <li>How many people have used any ORM?</li><ul class="incremental">
+ <li>In Perl?<ul class="incremental">
+ <li>DBIC?</li>
+ <li>Class::DBI?</li>
+ <li>Rose::DB?</li>
+ <li>Fey?</li>
+ <li>Others?</li>
</ul></li>
- </ul>
- </div>
+ <li>AR?</li>
+ <li>(N)Hibernate?</li>
+ </ul></li>
+ </ul>
</div>
<div class="slide">
authors.name as author_name
FROM books, authors
WHERE books.author = authors.id
-');</pre>
- </div>
+');
- <div class="slide">
- <h1>SQL: Read</h1>
-<pre>while( my $book = $sth->fetchrow_hashref() ) {
+while( my $book = $sth->fetchrow_hashref() ) {
print 'Author of '
. $book->{title}
. ' is '
my @books = $book_rs->search({
author => $author_id,
-})-><a href="http://search.cpan.org/perldoc?DBIx::Class::ResultSet#all">all</a>;</pre>
- <ul class="incremental">
- <li>TMTOWTDI</li>
- </ul>
- </div>
+})-><a href="http://search.cpan.org/perldoc?DBIx::Class::ResultSet#all">all</a>;
- <div class="slide">
- <h1>DBIC: Read</h1>
-<pre>while( my $book = $books_rs->next ) {
+while( my $book = $books_rs->next ) {
print 'Author of '
. $book->title
. ' is '
. $book->author->name
. "\n";
-}</pre>
+}
+</pre>
+ <ul class="incremental">
+ <li>TMTOWTDI</li>
+ </ul>
</div>
<div class="slide">
<h1><a href="http://search.cpan.org/perldoc?DBIx::Class::ResultSetColumn">ResultSetColumn</a></h1>
<pre>my $rsc = $schema->resultset('Book')
->get_column('price');
+$rsc->first;
+$rsc->all;
$rsc->min;
$rsc->max;
$rsc->sum;