Skip to content

Database Access


Core52′s set of Database classes provide the following features:

  • Multiple database connection support
  • Safe, programmatic query building
  • Caching
  • Exporting results as single values, arrays, objects, Models, CSV, and more
  • Currently MySQL-only

The Database library can be as simple, or as powerful, as you want. You will benefit by taking the time to fully master the this component of Core52.


The Database library consists of the following classes:

  • Database
  • DatabaseCache
  • DatabaseConnection
  • DatabaseQuery
  • DatabaseQueryHelper
  • DatabaseResult
  • DatabaseException

Here in this section we will cover these in context of how they are commonly used. For full method documentation, see the Database page in the “Core52 Libraries” section.