The Wayback Machine - https://web.archive.org/web/20071217085623/http://ez.no:80/ezpublish/documentation/development/libraries/ez_db


eZ db

These documentation pages are no longer maintained. Please visit the new documentation site.

eZ db is a database abstraction library. It provides a uniform interface to MySQL and PostgreSQL by default.
The eZ db library provides a database independent framework for SQL databases. The current supported databases are:

  • PostgreSQL
  • MySQL

To make it easier to support the different databases we have defined a subset of SQL data types to use. The types used are:

  • int - integers, date and time as UNIX timestamp, enums and boolean
  • float - float and prices
  • varchar - short text strings (less than 255 characters)
  • text - large text objects like article contents

To store date and time values ints are used. eZ locale is used to present the date and times on a localized format. That way we don't have to worry about the different date and time formats used in the different databases.

Auto incrementing numbers, sequences, are used to generate unique ids for a table row. This functionality is abstracted as it works differently in the different databases.

Limit and offset functionality is also abstracted by the eZ db library.

eZ db is designed to use lowercase in all table/column names. This is done to prevent errors as the different databases handle this differently, especially when returning the data as an associative array.

Dependencies

eZ db uses the following eZ publish libraries.

Useful links

Comments

Contents

Development

Extensions
eZ publish datamodel
eZ publish tuning and stability
Importing attribute data
Kernel
Libraries
    eZ xml
    eZ db
       Data retrieval
       Data storage
    eZ i18n
    eZ soap
    eZ template
    eZ webdav
Scripting
Standards
System overview
Test Suite
Using Doxygen to create API documenta...


Created

04/07/2003
10:37:52 am
by Bård Farstad

Last updated

19/03/2007
9:40:22 am
by Ole Morten Halvorsen

Authors

Bård Farstad
Ole Morten Halvorsen



This page is part of the eZ Publish documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.