Working with Databases

  • Todd Tomlinson
  • John K. VanDyk


After reading this chapter, you should be able to
  • Understand Drupal’s database abstraction layer.

  • Perform basic queries.

  • Get single and multiple results from the database.

  • Get a limited range of results.

  • Use the pager.

  • Understand Drupal’s schema API.

  • Write queries so other developers can modify them.

  • Cleanly modify the queries from other modules.

  • Connect to multiple databases, including legacy databases.

  • Write an abstraction layer driver.


Schema Module Curly Bracket Query Object Database Table Abstraction Layer 


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Todd Tomlinson and John K. VanDyk 2010

Authors and Affiliations

  • Todd Tomlinson
  • John K. VanDyk

There are no affiliations available

Personalised recommendations