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

runner: Implement validator support #15

Merged
merged 4 commits into from
Jan 20, 2022
Merged

Conversation

Xuanwo
Copy link
Contributor

@Xuanwo Xuanwo commented Jan 19, 2022

This PR is a PoC for #13 to get a quick preview of my idea.

Welcome any comments.

Signed-off-by: Xuanwo <github@xuanwo.io>
@Xuanwo
Copy link
Contributor Author

Xuanwo commented Jan 19, 2022

ping @skyzh to take a look.

@Xuanwo Xuanwo marked this pull request as draft January 19, 2022 09:55
@Xuanwo Xuanwo changed the title [PoC] runner: Implement validator support runner: Implement validator support Jan 20, 2022
@Xuanwo Xuanwo marked this pull request as ready for review January 20, 2022 05:37
@Xuanwo
Copy link
Contributor Author

Xuanwo commented Jan 20, 2022

Please let me know if we need an RFC for this feature.

Copy link
Member

@skyzh skyzh left a comment

Choose a reason for hiding this comment

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

Rest LGTM, thanks!

By the way, can we go a step further? e.g., add a Result associated type for DB, so that we can pass any type apart from String as query result. (Not needed in this PR)

Also, I would recommend adding an example for validator in examples folder.

src/runner.rs Outdated Show resolved Hide resolved
@Xuanwo
Copy link
Contributor Author

Xuanwo commented Jan 20, 2022

By the way, can we go a step further? e.g., add a Result associated type for DB, so that we can pass any type apart from String as query result. (Not needed in this PR)

Oh, so nice. Let's do it.

Signed-off-by: Xuanwo <github@xuanwo.io>
@Xuanwo
Copy link
Contributor Author

Xuanwo commented Jan 20, 2022

By the way, can we go a step further? e.g., add a Result associated type for DB, so that we can pass any type apart from String as query result. (Not needed in this PR)

Created a new issue #16 to track it.

Signed-off-by: Xuanwo <github@xuanwo.io>
@Xuanwo
Copy link
Contributor Author

Xuanwo commented Jan 20, 2022

Also, I would recommend adding an example for validator in examples folder.

Added. Maybe we should move some of them into tests instead.

@skyzh skyzh merged commit 8217d36 into risinglightdb:main Jan 20, 2022
@Xuanwo Xuanwo deleted the validator branch January 20, 2022 06:50
@Xuanwo Xuanwo mentioned this pull request Jan 26, 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

2 participants