Properties

$parsed

$parsed : 

Type

$url

$url : 

Type

$result

$result : 

Type

$explain

$explain : 

Type

$Builderarr

$Builderarr : 

Type

$top_hits

$top_hits : 

Type

$top_hits_size

$top_hits_size : 

Type

$agg

$agg : 

Type

$sort

$sort : 

Type

$index_es

$index_es : 

Type

$type_es

$type_es : 

Type

$version_es

$version_es : 

Type

$count_tmp

$count_tmp : 

Type

$count_tmp_filter

$count_tmp_filter : 

Type

$count_tmp_range

$count_tmp_range : 

Type

$count_fi

$count_fi : 

Type

$tmp_str

$tmp_str : 

Type

$tmp_str_filter

$tmp_str_filter : 

Type

$tmp_fi

$tmp_fi : 

Type

$tmp_str_range

$tmp_str_range : 

Type

$tmp_lock

$tmp_lock : 

Type

$tmp_lock_str

$tmp_lock_str : 

Type

$tmp_lock_fi

$tmp_lock_fi : 

Type

$tmp_lock_range

$tmp_lock_range : 

Type

$fistgroup

$fistgroup : 

Type

$limit

$limit : 

Type

Methods

__construct()

__construct(String  $sql = false, boolean  $calcPositions = false,   $es_config = array()) 

Constructor. It simply calls the parse() function.

Use the public variable $parsed to get the output.

Parameters

String $sql

The SQL statement.

boolean $calcPositions

True, if the output should contain [position], false otherwise.

$es_config

parsesql()

parsesql(String  $sql, boolean  $calcPositions = false) : array

Parameters

String $sql

The SQL statement.

boolean $calcPositions

True, if the output should contain [position], false otherwise.

Returns

array —

An associative array with all meta information about the SQL statement.

parse()

parse(  $sql,   $calcPositions = false) 

Parameters

$sql
$calcPositions

explain()

explain() 

EsBuilder()

EsBuilder() 

table()

table(  $arr) 

Parameters

$arr

update()

update(  $arr) 

Parameters

$arr

delete()

delete(  $arr) 

Parameters

$arr

getEsData()

getEsData(  $url) 

Parameters

$url

PostEs()

PostEs(  $postdata,   $json = true,   $token = false) 

Parameters

$postdata
$json
$token

where()

where(  $arr) 

Parameters

$arr

whereext()

whereext(  $arr,   $i) 

Parameters

$arr
$i

listtree()

listtree(  $arr,   $aggs,   $order) 

Parameters

$arr
$aggs
$order

groupby()

groupby(  $arr) 

Parameters

$arr

orderby()

orderby(  $arr) 

Parameters

$arr

limit()

limit(  $arr) 

Parameters

$arr

select()

select(  $arr) 

Parameters

$arr

updateset()

updateset(  $arr) 

Parameters

$arr