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

Provide public API to return Kùzu library version #2954

Closed
ray6080 opened this issue Feb 27, 2024 · 2 comments
Closed

Provide public API to return Kùzu library version #2954

ray6080 opened this issue Feb 27, 2024 · 2 comments
Assignees
Labels
usability Issues related to better usability experience, including bad error messages

Comments

@ray6080
Copy link
Contributor

ray6080 commented Feb 27, 2024

Kùzu library version is often needed by users to check storage compatibility as we might change our storage layout from one version to another.

Currently, users will have to create a on-disk db folder (or open an existing but potentially incompatible db folder, and handle errors or exceptions around it) to open a Kùzu Database and then perform CALL db_version() RETURN *; to get Kùzu system version.

In Python, it's pretty standard to embed __version__ into a library (https://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package), so users can easily access it.
In other language APIs, we should be able to find ways to provide such usability, for example, in C/CPP, we can provide a constant value.

@ray6080 ray6080 added the usability Issues related to better usability experience, including bad error messages label Feb 27, 2024
@mewim mewim linked a pull request Feb 27, 2024 that will close this issue
@mewim
Copy link
Collaborator

mewim commented Feb 27, 2024

#2958 added this for C++, C, Python, Node.js and Java APIs. @benjaminwinger could you please also add this for Rust?

@ray6080
Copy link
Contributor Author

ray6080 commented Mar 7, 2024

Done.

@ray6080 ray6080 closed this as completed Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usability Issues related to better usability experience, including bad error messages
Projects
None yet
Development

No branches or pull requests

3 participants