QUERYINFO through java API

Tuesday, 2 September 2014 · 2 messages · last reply 3 Sep 2014
KC
Kunal Chauhan2 Sep 2014 14:24 #
Hello, I am trying to print queryinfo through java code. I am using following query :
declare namespace db ='http://basex.org/modules/db';
declare option db:queryinfo 'true';
for $i in 1 to 1
return db:open('testDB')/*
I am using Java API's QueryProcessor to execute an above query. can anybody help to print queryinfo through java API ? Thanks,
-- *Kunal Chauhan* mail4ck at gmail.com [+918655517141]
CG
Christian Grün3 Sep 2014 11:50 #
Hi Kunal, you can execute the command SET QUERYINFO ON and call info() in a subsequent step. For more details, we'd need some more insight into your code. Hope this helps, Christian
Quoted text · Kunal Chauhan · 20 lines
On Tue, Sep 2, 2014 at 2:24 PM, Kunal Chauhan <mail4ck at gmail.com> wrote: > Hello, > > I am trying to print queryinfo through java code. > I am using following query : > > declare namespace db ='http://basex.org/modules/db'; > declare option db:queryinfo 'true'; > for $i in 1 to 1 > return db:open('testDB')/* > > I am using Java API's QueryProcessor to execute an above query. > > can anybody help to print queryinfo through java API ? > > Thanks, > -- > Kunal Chauhan > mail4ck at gmail.com > [+918655517141]

⚡Generated with XQuery