Programming the Perl DBI: Database programming with Perl

Programming the Perl DBI: Database programming with Perl by Alligator Descartes and Tim Bunce

Programming the Perl DBI: Database programming with Perl

Binding:
Paperback
Number of Pages:
364
ISBN:
1565926994
Product Group:
book
Publisher:
O'Reilly Media
Publication Date:
Feb. 4, 2000
BooksForGeeks.com ID:
1374

The interestingly named Alligator is a database programmer and Perl module developer. Tim Bunce wrote DBI--the Perl DataBase Interface. DBI is a series of Perl modules providing a standard API to a variety of database engines. Perl DBI is a natural choice for dynamically generating Web pages from databases. DBI's greatest strengths are portable code and the concealment of proprietary database interfaces.

The first half of Programming The Perl DBI covers non-DBI database types, pros and cons and data handling. Perl is used to create, explain and work with these. It's assumed that the reader is a competent enough Perl programmer to write the scripts as well as follow them. The point is to familiarise you with database technologies.

Having dealt with SQL and other database related issues in chapter three, the authors introduce the DBI, demonstrate database connection and error handling in chapter four. The last four chapters cover database interaction, advanced DBI features, ODBC and finally shell and database proxying. Three appendices cover the DBI specification, driver and database characteristics and the ASLaN Sacred Site Charter. (The authors are megalithic site aficionados and use UK megalithic sites as database examples throughout the book).

Descartes and Bunce's book is a rare combination--an entertaining and accessible guide to using Perl DBI that's also a readable and often amusing introduction to database technology.--Steve Patient

Reviews for Programming the Perl DBI: Database programming with Perl

  1. Limited

    Rated 3 out of 5 stars, July 12th, 2004

    I picked up this book because I had a perl/sybase project. My opinion is that this is very limited book. Most people will only use Ch5 "Interacting with the database" - 25 pages. These important 25 pages lack organisation and logical structure. The book covers the perl DBI, by that I assumed everything to make a database work with perl - wrong! It covers exactly and only the DBI. Example: If you've been working with databases for more than a week you will want to know how to detect and respond to deadlocks. The word isn't even in the book. I should point out, you can handle deadlocks but that's in the DBI driver for your database and so it's not covered. The first week I used this book I liked it, I was copying chunks of source code and pasting it right into my application, by the second week I was searching the web.
  2. Helpful reference book

    Rated 4 out of 5 stars, October 12th, 2002

    This book doesn't really cover much about Perl and the DBI module that you couldn't find with a quick trawl through Google, but it is handy to have all the material you need together to hand. If you're the kind of person who likes to be able to just pick up a book to find what you need to know, it's well worth buying - it's an authoritative source of information and will get you writing decent Perl + DBI scripts to interact with a database in no time.
  3. A clear, comprehensive and accessible book.

    Rated 4 out of 5 stars, June 12th, 2000

    As someone who knows a little bit about Perl and a reasonable amount about databases, I found this book did just what it said: taught me how to access databases from Perl. An hour or so's reading and a bit of messing about and I had the application I needed written in a couple of days.

    It can, admittedly, seem like quite bad value for money: you'll probably only need to read two or three chapters of the book unless you're using more than one RDBM or don't know a lot about databases, and you probably won't need to refer back to it that much, but I find it hard to see what else they could have done.

    I would also disagree that the book is only useful for Oracle. I use M$ SQL Server on Windows NT and had no problems finding the information I needed: indeed, there's a whole chapter covering ODBC with particular reference to the Windows platform.

    A well-written, concise book that tells you what you need to know, but is probably best borrowed rather than bought (sorry O'Reilly!)

  4. A book about the DBI, not programming databases from Perl.

    Rated 3 out of 5 stars, June 12th, 2000


    This is a good book, IF:
    - You want the online documentation with some extra fluff on databases, extra examples and the DBI spec. in one handy place (pages 187 - 333 are pretty much available online, the rest of the book is the online material filled out).
    - You are interested in learning about the DBI, the book is about the DBI rather than database programming.

    This is not a good book, IF:
    - You want to learn how to program databases from the web (the widest application of Perl today is covered on one example/page and is an absolute joke).
    - You want to learn how to program databases other than Oracle (the massive Windows market, and other markets are left to you, the reader, to extrapolate techniques from the book to practice).

    This is a terrible book, IF:
    - You are a Perl/programming beginner.
    - You want to learn about databases.
    - You want to troubleshoot your application (to not include much more driver specific material, when the DBI relies so heavily on the database's driver, means that essentially the book's use is very limited in the real world).

    The DBI is a great tool in the Perl armoury; this book does not do it justice. You will learn more from the online documentation and the DBI mailing list than you could ever get from here - save your money (The forthcoming 'Web Databases with Perl' from Manning looks far more promising, but it's not out until Oct 2000).

    Of course, if the book is supposed to be nothing more than a guide to the DBI in the very limited scope of being a recycle and slight expansion of existing material, then you can't fault it, and it is a nice read, but otherwise... O'reilly what were you thinking.

Our Network

BooksForGeeks.com is a participant in the Amazon Europe S.à r.l. Associates Programme, an affiliate advertising programme designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.co.uk