DBI Architecture Overview

The DBI module, like other portable database interfaces, is layered. Figure 14.1 shows the structure of a Perl/DBI application.

Figure 14.1. DBI architecture.

The topmost layer is the Perl application. A Perl application uses the DBI module to interact with one or more database drivers in a driver-independent (and therefore, database-independent) fashion. DBI is an acronym for “database interface.” DBD is an acronym for “database driver.” You can think of the DBI module as “database independent” and the DBD module as “database dependent.”

The DBI

The DBI class is responsible for loading DBI drivers into the Perl runtime. ...

Get PostgreSQL, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.