SqlBuilder
class SqlBuilder extends Object
Builds SQL query.
SqlBuilder is based on great library NotORM http://www.notorm.com written by Jakub Vrana.
Properties
protected string | $tableName | ||
protected IConventions | $conventions | ||
protected string | $delimitedTable | ||
protected array | $select | ||
protected array | $where | ||
protected array | $conditions | ||
protected array | $parameters | ||
protected array | $order | ||
protected int | $limit | ||
protected int | $offset | ||
protected string | $group | ||
protected string | $having |
Methods
No description
No description
No description
No description
Returns SQL query.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
at line 77
__construct($tableName, Context $context)
No description
at line 90
string
getTableName()
No description
at line 96
buildInsertQuery()
No description
at line 102
buildUpdateQuery()
No description
at line 111
buildDeleteQuery()
No description
at line 125
string
buildSelectQuery($columns = NULL)
Returns SQL query.
at line 166
getParameters()
No description
at line 178
importConditions(SqlBuilder $builder)
No description
at line 189
addSelect($columns)
No description
at line 199
getSelect()
No description
at line 205
addWhere($condition, $parameters = array())
No description
at line 324
getConditions()
No description
at line 330
addOrder($columns)
No description
at line 337
setOrder(array $columns, array $parameters)
No description
at line 344
getOrder()
No description
at line 350
setLimit($limit, $offset)
No description
at line 357
getLimit()
No description
at line 363
getOffset()
No description
at line 369
setGroup($columns)
No description
at line 376
getGroup()
No description
at line 382
setHaving($having)
No description
at line 389
getHaving()
No description
at line 398
protected
buildSelect(array $columns)
No description
at line 404
protected
parseJoins($joins, $query)
No description
at line 420
parseJoinsCb($joins, $match)
No description
at line 501
protected
buildQueryJoins(array $joins)
No description
at line 515
protected
buildConditions()
No description
at line 521
protected
buildQueryEnd()
No description
at line 537
protected
tryDelimite($s)
No description
at line 546
protected
addWhereComposition(array $columns, array $parameters)
No description