Blog

The new PodsData class that has been tied…

The new PodsData class that has been tied to PodsUI has morphed into a general-purpose DB Abstraction layer. Here are some functions I’m working on for it:

  • query (pods_query mapped to this)
  • insert
  • update
  • delete
  • reorder
  • select
  • build (handles sql building for search, pagination, and sorting)
  • table_create
  • table_alter
  • table_truncate
  • table_drop

The Pods() and PodsAPI() classes will implement PodsData for their DB needs versus straight queries. There are some exceptions for simple SELECTs (using pods_query which is really mapped to PodsData::query), but in the case of changing data or doing table queries – those will be handled by PodsData.