get list of databases

Monday, 7 October 2019 · 3 messages
CG
Christian Grünin reply to thufir, 7 Oct 2019, 02:357 Oct 2019 00:42 #
Try new List().execute(ctx); See [1] for details. Cheers, Christian [1] https://github.com/BaseXdb/basex/blob/master/basex-core/src/main/java/org/basex/core/cmd/List.java#L28
Quoted text · thufir · 31 lines
thufir <hawat.thufir at gmail.com> schrieb am Mo., 7. Okt. 2019, 00:35: > Hi, > > pardon the silly question, but how do I get a list of databases exactly? > I'm looking at: > > > https://github.com/BaseXdb/basex/blob/master/basex-examples/src/main/java/org/basex/examples/local/CreateCollection.java > > and want output like: > > > list > Name Resources Size Input Path > ---------------------------------- > books 0 4570 > > 1 database(s). > > > > > but using: > > http://docs.basex.org/javadoc/org/basex/core/cmd/List.html > > > > > thanks, > > Thufir >
T
thufir7 Oct 2019 02:35 #
Hi, pardon the silly question, but how do I get a list of databases exactly? I'm looking at: https://github.com/BaseXdb/basex/blob/master/basex-examples/src/main/java/org/basex/examples/local/CreateCollection.java and want output like:
Quoted text · 1 line
> list
Name Resources Size Input Path ---------------------------------- books 0 4570 1 database(s).
Quoted text · 1 line
>
T
thufirin reply to Christian Grün, 7 Oct 2019, 00:427 Oct 2019 05:21 #
thanks, worked perfectly.
Quoted text · Christian Grün · 14 lines
On 2019-10-06 3:42 p.m., Christian Grün wrote: > Try > > new List().execute(ctx); > > See [1] for details. > > Cheers, > Christian > > [1] > https://github.com/BaseXdb/basex/blob/master/basex-core/src/main/java/org/basex/core/cmd/List.java#L28 > >

⚡Generated with XQuery