miniredis icon indicating copy to clipboard operation
miniredis copied to clipboard

COPY command not supported

Open rockitbaby opened this issue 3 years ago • 3 comments

Thank you for creating miniredis!

We use miniredis for unit tests and noticed that _, err := conn.Do("COPY", from[i], to[i]) leads to the followig error

ERR unknown command `COPY`, with args beginning with …

It seems that COPY is not supported, yet.

rockitbaby avatar Jan 07 '22 08:01 rockitbaby

On Fri, Jan 07, 2022 at 12:27:59AM -0800, Michael Schieben wrote:

Thank you for creating miniredis!

We use miniredis for unit tests and noticed that _, err := conn.Do("COPY", from[i], to[i]) leads to the followig error

ERR unknown command `COPY`, with args beginning with …

It seems that COPY is not supported, yet.

Hi, thank you for creating an issue. Good catch. I see it's introduced in:

Available since 6.2.0

but it looks straightforward to add and I'll have a look soonish. Of course, PRs are also accepted :)

alicebob avatar Jan 07 '22 09:01 alicebob

Hi, I merged @matiasinsaurralde 's PR into master. I'll make it a proper release in a week or so.

alicebob avatar Jan 12 '22 10:01 alicebob

@alicebob thank you for your prompt responses and once again, thanks @matiasinsaurralde

rockitbaby avatar Jan 12 '22 10:01 rockitbaby