Replies: 2 comments
-
Hi @mdigger, Wouldn't it be better if we code it to like this? func (o Object) SaveCmd(ctx context.Context, client rueidis.Client) error {
return client.Do(ctx, client.B().
Hset().
Key(fmt.Sprintf("out:object:%s", o.ID)).
FieldValue().
FieldValue("datetime", strconv.FormatInt(o.Datetime.Unix(), 10)).
FieldValue("message", o.Message).
Build()).Error()
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, if I needed to execute only one command! :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Returning to the previous conversation: support for command generation is required!
Now this is impossible!
Beta Was this translation helpful? Give feedback.
All reactions