Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Support for customized query options in QueryBuilder #121

Open
nalsas opened this issue Feb 18, 2019 · 1 comment
Open

Support for customized query options in QueryBuilder #121

nalsas opened this issue Feb 18, 2019 · 1 comment

Comments

@nalsas
Copy link

nalsas commented Feb 18, 2019

Hi, I have such a code snippets:
$result = $db->getQueryBuilder()
->select('*')
->from('some')
...
->getResultSet()
->getPoints();

QueryBuilder works perfectly for me, except that I need the integer type of timestamp in result set instead of the string. Without QueryBuilder, I could just pass in "['epoch'=>'s']" as params to query() method. Is that possible to add a "$params=[]" in getResultSet() so that I can use it like this:
$result = $db->getQueryBuilder()
->select('*')
->from('some')
...
->getResultSet(['epoch'=>'s'])
->getPoints();

Thanks!

nalsas pushed a commit to nalsas/influxdb-php that referenced this issue Feb 19, 2019
@CKbug
Copy link

CKbug commented Jun 2, 2020

I want to do the same.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants