Abstract
Drupal depends on a database to function correctly. Inside Drupal, a lightweight database abstraction layer exists between your code and the database. In this chapter, you’ll learn about how the database abstraction layer works, how to use it, and even how to write your own driver. You’ll see how queries can be automatically modified by modules to restrict the scope of these queries. Then you’ll look at how to connect to additional databases (such as a legacy database). Finally, you’ll examine how to create, populate, and even delete tables when a module is installed, updated, or disabled, respectively.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2007 John K. VanDyk and Matt Westgate
About this chapter
Cite this chapter
(2007). Working with Databases. In: Pro Drupal Development. Apress. https://doi.org/10.1007/978-1-4302-0190-8_5
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0190-8_5
Publisher Name: Apress
Print ISBN: 978-1-59059-755-2
Online ISBN: 978-1-4302-0190-8
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books