Chapter 5. Datasources

In this chapter, we will cover:

  • Improving the SQL datasource query log
  • Parsing CSV files with a datasource
  • Consuming RSS feeds with a datasource
  • Building a Twitter datasource
  • Adding transaction and locking support to the MySQL datasource

Introduction

Datasources are the backbone of almost all model operations. They provide an abstraction between model logic and the underlying data layer, allowing a more flexible approach to data manipulation. Through this abstraction, CakePHP applications are able to manipulate data without knowing the specifics of how it's stored or fetched.

This chapter shows how to get information from existing datasources, use pre-built datasources to deal with non-relational data, and teaches us how to create a full-featured Twitter datasource.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.60.63