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

Add constants for all supported properties #589

Merged
merged 2 commits into from
Jan 31, 2022

Conversation

steviez
Copy link
Contributor

@steviez steviez commented Jan 20, 2022

I want to query several properties and noticed there aren't equivalent constants as there are in the RocksDB repo.

This was a copy/paste with some regex'ing to make it adhere to Rust syntax. I figured including the comments inline is nice, but I could also see argument of not including them and instead referring reader to the block starting at:
https://github.com/facebook/rocksdb/blob/08809f5e6cd9cc4bc3958dd4d59457ae78c76660/include/rocksdb/db.h#L428

Copy link
Member

@stanislav-tkach stanislav-tkach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pull request! I think having comments are fine, though I would prefer doc-comments instead of the regular ones.

src/properties.rs Outdated Show resolved Hide resolved
src/properties.rs Outdated Show resolved Hide resolved
@aleksuss aleksuss merged commit daee3d6 into rust-rocksdb:master Jan 31, 2022
@steviez steviez deleted the properties branch February 2, 2022 17:04
steviez added a commit to steviez/rust-rocksdb that referenced this pull request Feb 2, 2022
vldm pushed a commit to velas/rust-rocksdb that referenced this pull request Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants