for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Hoooklife\DynamodbPodm\Grammars;
class DynamoDBGrammar{
protected $operators = [];
protected $params = [];
// 表达式解析 where
public function parseKeyConditionExpression(){
$expression = [];
foreach ($this->wheres as $where) {
wheres
Hoooklife\DynamodbPodm\Grammars\DynamoDBGrammar
$expression[] = "{$where['column']} {$where['operator']} {$where['value']}";
}
return implode("and", $expression);
// select
public function parseProjectionExpression()
{
if( reset($this->columns) != '*' ){
columns
return implode(",", $this->columns);
return null;
// limit
public function parseLimit(){
return $this->limit;
limit
/**
* Get the grammar specific operators.
*
* @return array
*/
public function getOperators()
return $this->operators;
public function all()