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

Op.isOptsWithFromKey & Op.isOptsWithPrefix accessor #16217

Closed
changhoi opened this issue Jul 11, 2023 · 0 comments · Fixed by #16224
Closed

Op.isOptsWithFromKey & Op.isOptsWithPrefix accessor #16217

changhoi opened this issue Jul 11, 2023 · 0 comments · Fixed by #16224

Comments

@changhoi
Copy link

changhoi commented Jul 11, 2023

What would you like to be added?

It would be nice if the access function of Op.isOptsWithPrefix and Op.isOptsWithFromKey were provided. Only the accessor to this field was missing, is there a history related to it?

op := clientv3.OpDelete("mykey", clientv3.WithPrefix())
if op.IsOptsWithPrefix() {
  // ...
}

Why is this needed?

For making detail logs in application.

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

Successfully merging a pull request may close this issue.

2 participants