O'Reilly logo

PHP 5 Power Programming by Derick Rethans, Stig Sæther Bakken, Andi Gutmans

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

A.6. Database

A.6.1. DB

Repository: PEAR - License: PHP License - By Stig Sæther Bakken (developer) - Tomas V.V.Cox (developer) - Chuck Hagenbuch (helper) - Daniel Convissor (lead)

Database Abstraction Layer

A.6.1.1. Description

DB is a database abstraction layer providing:

  • an OO-style query API

  • portability features that make programs written

    • for one DBMS work with other DBMS's

  • a DSN (data source name) format for specifying

    • database servers

  • prepare/execute (bind) emulation for databases

    • that don't support it natively

  • a result object for each query response

  • portable error codes

  • sequence emulation

  • sequential and non-sequential row fetching as

    • well as bulk fetching

  • formats fetched rows as associative arrays,

    • ordered arrays or objects

  • row limit support

  • transactions ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required