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 IReflection | $databaseReflection | ||
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
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
Details
at line 72
__construct($tableName, Connection $connection, IReflection $reflection)
No description
at line 81
buildInsertQuery()
No description
at line 87
buildUpdateQuery()
No description
at line 96
buildDeleteQuery()
No description
at line 110
string
buildSelectQuery($columns = NULL)
Returns SQL query.
at line 152
getParameters()
No description
at line 164
importConditions(SqlBuilder $builder)
No description
at line 175
addSelect($columns)
No description
at line 185
getSelect()
No description
at line 191
addWhere($condition, $parameters = array())
No description
at line 310
getConditions()
No description
at line 316
addOrder($columns)
No description
at line 323
getOrder()
No description
at line 329
setLimit($limit, $offset)
No description
at line 336
getLimit()
No description
at line 342
getOffset()
No description
at line 348
setGroup($columns)
No description
at line 355
getGroup()
No description
at line 361
setHaving($having)
No description
at line 368
getHaving()
No description
at line 377
protected
buildSelect(array $columns)
No description
at line 383
protected
parseJoins($joins, $query)
No description
at line 399
parseJoinsCb($joins, $match)
No description
at line 441
protected
buildQueryJoins(array $joins)
No description
at line 456
protected
buildConditions()
No description
at line 462
protected
buildQueryEnd()
No description
at line 478
protected
tryDelimite($s)
No description
at line 487
protected
addWhereComposition(array $columns, array $parameters)
No description