Query/Builder.php
- Package
- Default
\ShSo\Lacassa\Query\Builder
Package: Default
















- Parent(s)
- \Illuminate\Database\Query\Builder
Properties


array $bindings = array('select' => array(), 'where' => array(), 'updateCollection' => array(), 'insertCollection' => array())
The current query value bindings.
Default value
array('select' => array(), 'where' => array(), 'updateCollection' => array(), 'insertCollection' => array())
Details- Type
- array


array $collectionTypes = array('set', 'list', 'map')
Default value
array('set', 'list', 'map')
Details- Type
- array


array $conversion = array('=' => '$eq', '!=' => '$ne', '<>' => '$ne', '<' => '$lt', '<=' => '$lte', '>' => '$gt', '>=' => '$gte')
Operator conversion.
Default value
array('=' => '$eq', '!=' => '$ne', '<>' => '$ne', '<' => '$lt', '<=' => '$lte', '>' => '$gt', '>=' => '$gte')
Details- Type
- array


array $operators = array('=', '<', '>', '<=', '>=', 'like', 'contains', 'contains key')
All of the available clause operators.
Default value
array('=', '<', '>', '<=', '>=', 'like', 'contains', 'contains key')
Details- Type
- array
Methods


__construct(\ShSo\Lacassa\Connection $connection) : void
Parameters
Name | Type | Description |
---|---|---|
$connection | \ShSo\Lacassa\Connection |


addCollectionBinding(array $value, string $type = 'updateCollection') : \ShSo\Lacassa\Query\Builder
Add a binding to the query.
Parameters
Returns
Throws
Details
Name | Type | Description |
---|---|---|
$value | array | |
$type | string |
Type | Description |
---|---|
\ShSo\Lacassa\Query\Builder |
Exception | Description |
---|---|
\InvalidArgumentException |
- Fluent
- This method is part of a fluent interface and will return the same instance


count(string $columns = '*') : \Cassandra\Rows
Retrieve the "count" result of the query.
Parameters
Returns
Name | Type | Description |
---|---|---|
$columns | string |
Type | Description |
---|---|
\Cassandra\Rows |


deleteColumn(array $columns) : \Cassandra\Rows
Delete a column from the database.
Parameters
Returns
Name | Type | Description |
---|---|---|
$columns | array |
Type | Description |
---|---|
\Cassandra\Rows |


deleteRow() : \Cassandra\Rows
Delete a record from the database.
Returns
Type | Description |
---|---|
\Cassandra\Rows |


execute(string $cql) : \Cassandra\Rows
Execute the CQL query.
Parameters
Returns
Name | Type | Description |
---|---|---|
$cql | string |
Type | Description |
---|---|
\Cassandra\Rows |


executeAsync(string $cql) : \Cassandra\FutureRows
Execute the CQL query asyncronously.
Parameters
Returns
Name | Type | Description |
---|---|---|
$cql | string |
Type | Description |
---|---|
\Cassandra\FutureRows |


get(array $columns = array('*')) : \Cassandra\Rows
Execute the query as a "select" statement.
Parameters
Returns
Name | Type | Description |
---|---|---|
$columns | array |
Type | Description |
---|---|
\Cassandra\Rows |


getAsync(array $columns = array('*')) : \Cassandra\FutureRows
Execute the query as a "select" statement.
Parameters
Returns
Name | Type | Description |
---|---|---|
$columns | array |
Type | Description |
---|---|
\Cassandra\FutureRows |


index(array $columns = array()) : \Cassandra\Rows
Parameters
Returns
Name | Type | Description |
---|---|---|
$columns | array |
Type | Description |
---|---|
\Cassandra\Rows |


insert(array $values = array()) : boolean
Insert a new record into the database.
Parameters
Returns
Name | Type | Description |
---|---|---|
$values | array |
Type | Description |
---|---|
boolean |


insertCollection(string $type, string $column, string $value) : \ShSo\Lacassa\Query\Builder
Insert a colletion type in cassandra.
Parameters
Returns
Details
Name | Type | Description |
---|---|---|
$type | string | |
$column | string | |
$value | string |
Type | Description |
---|---|
\ShSo\Lacassa\Query\Builder |
- Fluent
- This method is part of a fluent interface and will return the same instance


update(array $values = array()) : integer
Update a record in the database.
Parameters
Returns
Name | Type | Description |
---|---|---|
$values | array |
Type | Description |
---|---|
integer |