PHP Class phprs\ezsql\impls\WhereImpl

Show file Open project: caoym/phprs-restful Class Usage Examples

Public Methods

Method Description
condition ( $context, $prefix, $expr, $args )
conditionArgs ( $context, $prefix, array $args = [] ) find like Mongodb query glossary whereArray( [ 'id'=>['>'=>1], 'name'=>'cym', ] ) 支持的操作符有 = 'id'=>['=' => 1] > 'id'=>['>' => 1] < 'id'=>['<' => 1] <> 'id'=>['<>' => 1] >= 'id'=>['>=' => 1] <= 'id'=>['<=' => 1] BETWEEN 'id'=>['BETWEEN' => [1 ,2]] LIKE 'id'=>['LIKE' => '1%'] IN 'id'=>['IN' => [1,2,3]] NOT IN 'id'=>['NOT IN' => [1,2,3]]
having ( $context, $expr, $args )
havingArgs ( $context, $args )
where ( $context, $expr, $args )
whereArgs ( $context, $args )

Private Methods

Method Description
findQ ( $str, $offset, $no )

Method Details

condition() public static method

public static condition ( $context, $prefix, $expr, $args )

conditionArgs() public static method

find like Mongodb query glossary whereArray( [ 'id'=>['>'=>1], 'name'=>'cym', ] ) 支持的操作符有 = 'id'=>['=' => 1] > 'id'=>['>' => 1] < 'id'=>['<' => 1] <> 'id'=>['<>' => 1] >= 'id'=>['>=' => 1] <= 'id'=>['<=' => 1] BETWEEN 'id'=>['BETWEEN' => [1 ,2]] LIKE 'id'=>['LIKE' => '1%'] IN 'id'=>['IN' => [1,2,3]] NOT IN 'id'=>['NOT IN' => [1,2,3]]
public static conditionArgs ( $context, $prefix, array $args = [] )
$args array

having() public static method

public static having ( $context, $expr, $args )

havingArgs() public static method

public static havingArgs ( $context, $args )

where() public static method

public static where ( $context, $expr, $args )

whereArgs() public static method

public static whereArgs ( $context, $args )