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

WIP: Sanitize options outside of a DB #9552

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

mrambacher
Copy link
Contributor

This change moves most of the code associated with sanitizing options from inside the DB into the Options classes. This allows the Options to be sanitized prior to creating the DB.

Additionally, this code allows the sanitization of the Options to fail. If some option cannot be properly reconciled, the Sanitize methods can return an error.

OptionTypeInfo can also define a Sanitize methods that allow them to perform their own check. This is comparable to what is done with Validate and will allow these types to massage the options as appropriate. For example, a PosixFileSystem may need to change values a different way than a Memory or Windows or other may need to.

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

Successfully merging this pull request may close these issues.

None yet

2 participants