2017 © Pedro Peláez
 

library ezc-database

A lightweight database layer on top of PHP's PDO that allows you to utilize a database without having to take care of differences in SQL dialects.

image

fobiaweb/ezc-database

A lightweight database layer on top of PHP's PDO that allows you to utilize a database without having to take care of differences in SQL dialects.

  • Monday, August 18, 2014
  • by fobia
  • Repository
  • 3 Watchers
  • 0 Stars
  • 50 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

eZ Components / Database

A lightweight database layer on top of PHP's PDO that allows you to utilize a database without having to take care of differences in SQL dialects., (*1)

See eZ Components, (*2)

Конструктор запросов

Конструктор запросов ezc предоставляет объектно-ориентированный способ написания SQL-запросов. Он позволяет разработчику использовать методы и свойства класса для того, чтобы указать отдельные части SQL-запроса. Затем конструктор собирает отдельные части в единый SQL-запрос, который может быть выполнен вызовом методов query или prepare., (*3)

Подготовка конструктора запросов

  • ezcQuerySelect()
  • ezcUpdateQuery()
  • ezcInsertQuery()
  • ezcQueryDelete()
  • ezcQueryExpression()
  • ezcDbUtilities()

Запросы на получение данных

Запросы на получение данных соответствуют SQL-запросам SELECT. В конструкторе есть ряд методов для сборки отдельных частей SELECT запроса. Так как все эти методы возвращают экземпляр ezcQuery, мы можем использовать их цепочкой., (*4)

  • select(): часть запроса после SELECT.
  • selectDistinct(): часть запроса после SELECT. Добавляет DISTINCT.
  • from(): часть запроса после FROM.
  • where(): часть запроса после WHERE.
  • join(): добавляет к запросу INNER JOIN.
  • leftJoin(): добавляет к запросу LEFT OUTER JOIN.
  • rightJoin(): добавляет к запросу RIGHT OUTER JOIN.
  • innerJoin(): добавляет к запросу CROSS JOIN.
  • groupBy(): часть запроса после GROUP BY.
  • having(): часть запроса после HAVING.
  • orderBy(): часть запроса после ORDER BY.
  • limit(): часть запроса после LIMIT.

The Versions

18/08 2014

dev-develop

dev-develop http://ezcomponents.org

A lightweight database layer on top of PHP's PDO that allows you to utilize a database without having to take care of differences in SQL dialects.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

17/08 2014

dev-master

9999999-dev http://ezcomponents.org

A lightweight database layer on top of PHP's PDO that allows you to utilize a database without having to take care of differences in SQL dialects.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

17/08 2014

1.4.9

1.4.9.0 http://ezcomponents.org

A lightweight database layer on top of PHP's PDO that allows you to utilize a database without having to take care of differences in SQL dialects.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

17/08 2014

1.4.8

1.4.8.0 http://ezcomponents.org

A lightweight database layer on top of PHP's PDO that allows you to utilize a database without having to take care of differences in SQL dialects.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

01/06 2014

1.4.7

1.4.7.0 http://ezcomponents.org

  Sources   Download

The Requires