Property | Type | Description | |
---|---|---|---|
$aliases | of table aliases | ||
$conditions | of where conditions for caching | ||
$conventions | Nette\Database\IConventions | ||
$currentAlias | currently parsing alias for joins | ||
$delimitedTable | delimited table name | ||
$group | columns to grouping | ||
$having | grouping condition | ||
$joinCondition | of array of join conditions | ||
$limit | number of rows to fetch | ||
$offset | first row to fetch | ||
$order | or columns to order by | ||
$parameters | of parameters passed to where conditions | ||
$reservedTableNames | of reserved table names associated with chain | ||
$select | of column to select | ||
$tableName | string | ||
$where | of where conditions |
Method | Description | |
---|---|---|
__construct ( $tableName, |
||
addAlias ( $chain, $alias ) : void | Adds alias. | |
addJoinCondition ( $tableChain, $condition, $params ) | ||
addOrder ( $columns, $params ) | ||
addSelect ( $columns, $params ) | ******************* SQL selectors ****************d*g* | |
addWhere ( $condition, $params ) | ||
buildDeleteQuery ( ) | ||
buildInsertQuery ( ) | ||
buildSelectQuery ( $columns = NULL ) : string | Returns SQL query. | |
buildUpdateQuery ( ) | ||
getConditions ( ) | ||
getGroup ( ) | ||
getHaving ( ) | ||
getLimit ( ) | ||
getOffset ( ) | ||
getOrder ( ) | ||
getParameters ( ) | ||
getSelect ( ) | ||
getSelectQueryHash ( $columns = NULL ) : string | Returns select query hash for caching. | |
getTableName ( ) : string | ||
importConditions ( |
||
parseJoinsCb ( &$joins, $match ) | ||
setGroup ( $columns, $params ) | ||
setHaving ( $having, $params ) | ||
setLimit ( $limit, $offset ) | ||
setOrder ( array $columns, array $parameters ) |
Method | Description | |
---|---|---|
addCondition ( $condition, array $params, array &$conditions, array &$conditionsParameters ) | ||
addConditionComposition ( array $columns, array $parameters, array &$conditions, array &$conditionsParameters ) | ||
buildConditions ( ) | ||
buildJoinConditions ( ) | ||
buildQueryEnd ( ) | ||
buildQueryJoins ( array $joins, array $leftJoinConditions = [] ) | ||
buildSelect ( array $columns ) | ******************* SQL building ****************d*g* | |
checkUniqueTableName ( $tableName, $chain ) | ||
getSortedJoins ( $table, &$leftJoinDependency, &$tableJoins, &$finalJoins ) | ||
parseJoinConditions ( &$joins, $joinConditions ) | ||
parseJoins ( &$joins, &$query ) | ||
tryDelimite ( $s ) |
Method | Description | |
---|---|---|
getCachedTableList ( ) | ||
getColumnChainsRegxp ( ) | ||
getConditionHash ( $condition, $parameters ) |
public __construct ( $tableName, |
||
$context |
public addSelect ( $columns, $params ) |
protected buildQueryJoins ( array $joins, array $leftJoinConditions = [] ) | ||
$joins | array | |
$leftJoinConditions | array |
protected buildSelect ( array $columns ) | ||
$columns | array |
public buildSelectQuery ( $columns = NULL ) : string | ||
return | string |
public getSelectQueryHash ( $columns = NULL ) : string | ||
return | string |
protected getSortedJoins ( $table, &$leftJoinDependency, &$tableJoins, &$finalJoins ) |
public importConditions ( |
||
$builder |
protected IConventions,Nette\Database $conventions | ||
return | Nette\Database\IConventions |
protected $reservedTableNames |