From: Arthur Axel 'fREW' Schmidt Date: Sun, 20 Jun 2010 14:34:09 +0000 (-0500) Subject: consolidate some slides, add some stuff, yay. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=63d0b68044758e41e028b934c15d79609fc8b701;p=dbsrgits%2Fdbix-class-introduction-presentation.git consolidate some slides, add some stuff, yay. --- diff --git a/slideshow.html b/slideshow.html index 0c22109..da96a63 100644 --- a/slideshow.html +++ b/slideshow.html @@ -83,22 +83,19 @@

What's up guys?

-
-
    -
  • How many people have used any ORM?
      -
    • In Perl?
        -
      • DBIC?
      • -
      • Class::DBI?
      • -
      • Rose::DB?
      • -
      • Fey?
      • -
      • Others?
      • -
    • -
    • AR?
    • -
    • DataMapper?
    • -
    • (N)Hibernate?
    • +
        +
      • How many people have used any ORM?
        • +
        • In Perl?
            +
          • DBIC?
          • +
          • Class::DBI?
          • +
          • Rose::DB?
          • +
          • Fey?
          • +
          • Others?
        • -
        -
+
  • AR?
  • +
  • (N)Hibernate?
  • + +
    @@ -200,12 +197,9 @@ $sth->execute( authors.name as author_name FROM books, authors WHERE books.author = authors.id -'); -
    +'); -
    -

    SQL: Read

    -
    while( my $book = $sth->fetchrow_hashref() ) {
    +while( my $book = $sth->fetchrow_hashref() ) {
       print 'Author of '
          . $book->{title}
          . ' is '
    @@ -224,21 +218,19 @@ my $book = $book_rs->all;
    - -
    +})->all; -
    -

    DBIC: Read

    -
    while( my $book = $books_rs->next ) {
    +while( my $book = $books_rs->next ) {
      print 'Author of '
         . $book->title
         . ' is '
         . $book->author->name
         . "\n";
    -}
    +} + +
    @@ -606,6 +598,8 @@ sub to_imperial { $_[1] * 3.28 }

    ResultSetColumn

    my $rsc = $schema->resultset('Book')
        ->get_column('price');
    +$rsc->first;
    +$rsc->all;
     $rsc->min;
     $rsc->max;
     $rsc->sum;