Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listing clusters or classes #35

Closed
andreyvk opened this issue Nov 22, 2013 · 4 comments
Closed

Listing clusters or classes #35

andreyvk opened this issue Nov 22, 2013 · 4 comments

Comments

@andreyvk
Copy link

Hi Anton,

I was wondering if it's possible to list clusters or classes with the library. To make a question more generic: how can one issue console commands like, for instance, browsing a class (browse class <class_name>)?

@AntonTerekhov
Copy link
Owner

Hello.

info class and info clusters are console commands, so they lack strict SQL equivalent.
As far as I can remember, you cant get list of classes by reading #0:1 record. Record #0:2 holds indexes.

List of clusters is returned from DBOpen command.

@andreyvk
Copy link
Author

Thanks, I'll try the #0:1 trick first.

I understand that i can get list of clusters from DBOpen command, but what if list changed and I need to refresh it? This means tearing down and establishing a new connection then?

@AntonTerekhov
Copy link
Owner

#0:1 isn't a trick, its the only way (binary lacks command info class). info clusters will be available with #6 implementation.

@andreyvk
Copy link
Author

Cool, thanks Anton :)

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

No branches or pull requests

2 participants