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 blacklist support for partial writing #1140

Open
stephenberry opened this issue Jul 9, 2024 · 2 comments
Open

Add blacklist support for partial writing #1140

stephenberry opened this issue Jul 9, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@stephenberry
Copy link
Owner

We should be able to optionally exclude fields when writing structs from the write calls, besides utilities like glz::hide

@stephenberry stephenberry added the enhancement New feature or request label Jul 9, 2024
@amosbird
Copy link
Contributor

Can we add support for partial writing with a dynamically specified set of whitelist/blacklist fields and globs? I’m trying to use Glaze to implement response filtering functionality as described in Elasticsearch's common options documentation.

Thank you!

@stephenberry
Copy link
Owner Author

@amosbird, dynamic partial writing is definitely desired. A long term goal is to support JMESPath, which would also require this support.

The reflection system in Glaze already provides an array of keys and a tuple of values, we just need to write a higher level of abstraction over glz::reflect so that we can more easily iterate at runtime. I'll keep your comment in mind as I continue to brainstorm the best approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants