kivik icon indicating copy to clipboard operation
kivik copied to clipboard

Consider writing a sql/driver wrapper around Kivik

Open flimzy opened this issue 5 years ago • 3 comments

In some situations, querying CouchDB with SQL can be helpful. There are a number of SQL parsers for Go, with github.com/pingcap/parser looking the most promising. It shouldn't be terribly difficult to create a thin wrapper around Kivik to allow doing (basic) queries against CouchDB using the sql interface.

If you would find this useful, please comment or vote with an emoji on this issue.

flimzy avatar Jan 12 '20 16:01 flimzy

maybe this sql parser is also interesting: https://astexplorer.net/#/gist/f01ba1593abfe285de7f9ab22036ea8d/b97c4f4ada6d8e3b145acc523e2b50b4758cdc01

SerkanSipahi avatar Feb 14 '20 19:02 SerkanSipahi

maybe this sql parser is also interesting: https://astexplorer.net/#/gist/f01ba1593abfe285de7f9ab22036ea8d/b97c4f4ada6d8e3b145acc523e2b50b4758cdc01

From what I can tell, it looks like that's written in Node.js, which obviously won't help in a Go project. Or did you see something there I missed?

flimzy avatar Feb 14 '20 21:02 flimzy

I wanted to suggest an alternative to the Golang parser. Maybe this one is easier to use. Maybe!

SerkanSipahi avatar Feb 15 '20 14:02 SerkanSipahi