Method |
Description |
|
assign ( string $column, mixed $value ) : SqlBuilder |
Assign a value to a column. Used with inserts and updates. |
|
between ( string $column, numeric $small, numeric $big ) : SqlBuilder |
Shortcut alias for SqlBuilder->lessThan($column,$big)->greaterThan($column,$small) |
|
delete ( ) : string |
Build a DELETE SQL string from SqlBuilder's state. |
|
distinct ( ) : SqlBuilder |
Add a DISTINCT clause to SELECT SQL. |
|
equal ( string $column, mixed $value ) : SqlBuilder |
Equality expression for WHERE clause of update, delete, or select statements. |
|
from ( string $table ) : SqlBuilder |
Alias to specify which table is being used. |
|
getCriteria ( ) |
|
|
getPdoArguments ( ) : array |
Return the collection of PDO named parameters and values to be
applied to a parameterized PDO statement. |
|
getTable ( ) |
|
|
greaterThan ( string $column, numeric $value ) : SqlBuilder |
Greater than expression for WHERE clause of update, delete, or select statements. |
|
greaterThanOrEqualTo ( string $column, numeric $value ) : SqlBuilder |
Greater than or equal to expression for WHERE clause of update, delete, or select statements. |
|
groupBy ( string $clause ) : SqlBuilder |
Add an GROUP BY expression to sql string. Example: ->groupBy('name') |
|
in ( string $column, array $value ) : SqlBuilder |
IN to expression for WHERE clause of update, delete, or select statements. |
|
innerJoin ( string $table, string $tablePrimaryKey, string $fromTableForeignKey ) : SqlBuilder |
Inner join expression for SELECT SQL statement. |
|
insert ( ) : string |
Build an INSERT SQL string from SqlBuilder's state. |
|
into ( string $table ) : SqlBuilder |
Alias for table (insert into) |
|
isNotNull ( string $column ) : SqlBuilder |
IS NOT NULL expression for WHERE clause of update, delete, or select statements |
|
isNull ( string $column ) : SqlBuilder |
IS NULL expression for WHERE clause of update, delete, or select statements |
|
leftOuterJoin ( string $table, string $tablePrimaryKey, string $fromTableForeignKey ) : SqlBuilder |
Left outer join expression for SELECT SQL statement. |
|
lessThan ( string $column, numeric $value ) : SqlBuilder |
Less than expression for WHERE clause of update, delete, or select statements. |
|
lessThanOrEqualTo ( string $column, numeric $value ) : SqlBuilder |
Less than or equal to expression for WHERE clause of update, delete, or select statements. |
|
like ( string $column, string $value ) : SqlBuilder |
LIKE expression for WHERE clause of update, delete, or select statements, does not include wildcards. |
|
limit ( integer $size ) : SqlBuilder |
LIMIT results to some number of records. |
|
notEqual ( string $column, mixed $value ) : SqlBuilder |
Inequality than expression for WHERE clause of update, delete, or select statements. |
|
notLike ( string $column, string $value ) : SqlBuilder |
NOT LIKE expression for WHERE clause of update, delete, or select statements, does not include wildcards. |
|
offset ( integer $offset ) : SqlBuilder |
When used in conjunction with limit($size), offset specifies which row the results will begin at. |
|
orderBy ( string $clause ) : SqlBuilder |
Add an ORDER BY expression to sql string. Example: ->orderBy('name ASC') |
|
range ( integer $start, integer $finish ) : SqlBuilder |
Shortcut alias to ->limit($finish - $start)->offset($start); |
|
select ( ) : string |
Build a SELECT SQL string from SqlBuilder's state. |
|
selectAs ( string $select, string $as ) : SqlBuilder |
Add additional field to select statement which is aliased using the AS parameter. |
|
table ( string $table ) : SqlBuilder |
Set the table of focus on a sql statement. |
|
update ( ) : string |
Build an UPDATE SQL string from SqlBuilder's state. |
|
useAssignmentsAsConditions ( boolean $bool ) : SqlBuilder |
Handy shortcut which allows assignments to be used as conditions
in a select statement. |
|