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 Redis CMD for data insert #709

Merged
merged 17 commits into from
Aug 18, 2023
Merged

Add Redis CMD for data insert #709

merged 17 commits into from
Aug 18, 2023

Conversation

AbdullahAlShaad
Copy link
Member

No description provided.

Signed-off-by: Shaad7 <[email protected]>
Signed-off-by: Shaad7 <[email protected]>
Signed-off-by: Shaad7 <[email protected]>
Signed-off-by: Shaad7 <[email protected]>
Signed-off-by: Shaad7 <[email protected]>
Signed-off-by: Shaad7 <[email protected]>
pkg/data/redis.go Outdated Show resolved Hide resolved
pkg/data/redis.go Show resolved Hide resolved
if err != nil {
return err
}
fmt.Printf("\nExpected keys: %d .Redis database %s/%s contains: %d keys\n", rows, opts.db.Namespace, opts.db.Name, totalKeys)
Copy link
Member

Choose a reason for hiding this comment

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

if rows doesn't matched totalKey, we can show that. But if they matched, we should show some Success type message to the user.

Copy link
Member Author

Choose a reason for hiding this comment

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

Should it be exact match ? Because in Redis, we insert some keys for health check. That also comes when we take the total count. What about greater or equal ?

pkg/data/redis.go Outdated Show resolved Hide resolved
Signed-off-by: Shaad7 <[email protected]>
func DropRedisDataCMD(f cmdutil.Factory) *cobra.Command {
var dbName string

rdVerifyCmd := &cobra.Command{
Copy link
Member

Choose a reason for hiding this comment

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

rdDropCMD

@ArnobKumarSaha ArnobKumarSaha merged commit cf49e9a into master Aug 18, 2023
4 checks passed
@ArnobKumarSaha ArnobKumarSaha deleted the data branch August 18, 2023 04:17
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.

3 participants