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

Consider writing a sql/driver wrapper around Kivik #428

Open
flimzy opened this issue Jan 12, 2020 · 3 comments
Open

Consider writing a sql/driver wrapper around Kivik #428

flimzy opened this issue Jan 12, 2020 · 3 comments

Comments

@flimzy
Copy link
Member

flimzy commented Jan 12, 2020

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.

@SerkanSipahi
Copy link

@flimzy
Copy link
Member Author

flimzy commented Feb 14, 2020

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?

@SerkanSipahi
Copy link

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

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

No branches or pull requests

2 participants