fluree / core

Fluree releases and public bug reports
0 stars 0 forks source link

List ledgers on a server #25

Open dpetran opened 10 months ago

dpetran commented 10 months ago

From the Discord jsonld-alpha channel:

How do I write a query that will list all ledger names in the database?

We do not currently have a way to list all of the ledgers hosted on a server.

dpetran commented 10 months ago

We have an exists? method on the Connection protocol, which is useful to tell if a given ledger name is loadable, but especially for file conns we can know and list all ledgers that the Connection can load, and it would be useful to provide an api for that functionality.

gpadvorac commented 10 months ago

Thanks @dpetran, can you show a code example of what that would look like?