Showing posts with label abstraction layer. Show all posts
Showing posts with label abstraction layer. Show all posts

Thursday, February 4, 2010

10 what is Database abstraction layer in Drupal ?

Allow the use of different database servers using the same code base.
Drupal provides a slim database abstraction layer to provide developers with the ability to support multiple database servers easily. The intent of this layer is to preserve the syntax and power of SQL as much as possible, while letting Drupal control the pieces of queries that need to be written differently for different servers and provide basic security checks.
Most Drupal database queries are performed by a call to db_query() or db_query_range(). Module authors should also consider using pager_query() for queries that return results that need to be presented on multiple pages, and tablesort_sql() for generating appropriate queries for sortable tables.


Video Answer
http://drupal-videos.blogspot.com/2014/06/video-what-is-database-abstraction-layer-in-drupal.html