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.
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
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.
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
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
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
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