Fluent
class Fluent implements IDataSource
SQL builder via fluent interfaces.
Constants
REMOVE |
|
Properties
static array | $masks | ||
static array | $modifiers | ||
static array | $separators | ||
static array | $clauseSwitches |
Methods
Removes a clause.
Is a flag set?
Returns SQL command.
No description
Adds Result setup.
Like fetch(), but returns only first field.
Fetches all records from table.
Fetches all records from table and returns associative tree.
Fetches all records from table like $key => $value pairs.
Required by the IteratorAggregate interface.
Generates and prints SQL query or it's part.
No description
No description
Returns SQL query.
Generates parameters for Translator.
Format camelCase clause name to UPPER CASE.
No description
Details
at line 108
__construct(Connection $connection)
No description
at line 124
Fluent
__call($clause, $args)
Appends new argument to the clause.
at line 212
Fluent
clause($clause)
Switch to a clause.
at line 228
Fluent
removeClause($clause)
Removes a clause.
at line 241
Fluent
setFlag($flag, $value = true)
Change a SQL flag.
at line 258
final bool
getFlag($flag)
Is a flag set?
at line 268
final string
getCommand()
Returns SQL command.
at line 277
final Connection
getConnection()
No description
at line 289
Fluent
setupResult($method)
Adds Result setup.
at line 305
Result|int
execute($return = null)
Generates and executes SQL query.
at line 323
Row|false
fetch()
Generates, executes SQL query and fetches the single row.
at line 337
mixed
fetchSingle()
Like fetch(), but returns only first field.
at line 353
array
fetchAll($offset = null, $limit = null)
Fetches all records from table.
at line 364
array
fetchAssoc($assoc)
Fetches all records from table and returns associative tree.
at line 376
array
fetchPairs($key = null, $value = null)
Fetches all records from table like $key => $value pairs.
at line 388
ResultIterator
getIterator($offset = null, $limit = null)
Required by the IteratorAggregate interface.
at line 399
bool
test($clause = null)
Generates and prints SQL query or it's part.
at line 408
int
count()
No description
at line 435
DataSource
toDataSource()
No description
at line 445
final string
__toString()
Returns SQL query.
at line 461
protected array
_export($clause = null, $args = [])
Generates parameters for Translator.
at line 501
static string
_formatClause($s)
internal |
Format camelCase clause name to UPPER CASE.
at line 511
__clone()
No description
at line 32
Fluent
select(mixed $field)
No description
at line 32
Fluent
distinct()
No description
at line 32
Fluent
from(mixed $table, mixed $args)
No description
at line 32
Fluent
where(mixed $cond)
No description
at line 32
Fluent
groupBy(mixed $field)
No description
at line 32
Fluent
having(mixed $cond)
No description
at line 32
Fluent
orderBy(mixed $field)
No description
at line 32
Fluent
limit(int $limit)
No description
at line 32
Fluent
offset(int $offset)
No description
at line 32
Fluent
join(mixed $table)
No description
at line 32
Fluent
leftJoin(mixed $table)
No description
at line 32
Fluent
innerJoin(mixed $table)
No description
at line 32
Fluent
rightJoin(mixed $table)
No description
at line 32
Fluent
outerJoin(mixed $table)
No description
at line 32
Fluent
as(mixed $field)
No description
at line 32
Fluent
on(mixed $cond)
No description
at line 32
Fluent
using(mixed $cond)
No description
Traits
Better OOP experience.