-
Notifications
You must be signed in to change notification settings - Fork 371
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
Issue #341: add Crate support #342
Conversation
Apologies for the 6 month delay; this looks solid, I'm just going to try to make sure that it's tested in CI before merging |
Hi :) no worries at all! Thank you for getting in touch |
Any updates on this ? I have an application in need of this as well :-D |
I'm working on it now; just need to figure out how to get travis to spin up a crate DB. |
dialect_crate.go
Outdated
} | ||
|
||
func (d CrateDialect) QuoteField(f string) string { | ||
return "'" + f + "'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is incorrect. Crate uses double-quotes for fields and whatnot. It should be return `"` + f + `"`
.
I added crate to the tests and it has been failing in a few ways. The first was the quoted field problem, but even after solving that, it had failures. I've pushed a commit to your fork that adds tests; can you work on getting the tests passing? edit: FYI, I did not update the unit tests for the crate dialect, so they'll be failing because I changed the quote characters for |
Hi @nelsam as this PR is 7 months old, I will reset my dev environment. From |
@inge4pres yeah, feel free to update the There are currently no conflicts with master, but feel free to merge or rebase on top of master first and do what you need to. |
I went as far as making pass the majority of tests, but at a certain point I'm facing that CrateDB has no INDEX statement available. |
It's fine to update the tests to skip testing index against crate. We've
had to do similar things with one of the mysql drivers.
See [here](https://github.com/go-gorp/gorp/blob/master/gorp_test.go#L738)
for an example.
…On Oct 30, 2017 07:50, "Francesco Gualazzi" ***@***.***> wrote:
I went as far as making pass the majority of tests, but at a certain point
I'm facing that CrateDB has no INDEX statement available.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#342 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA-QBGvLWRgY7gPNjn6wrYdSDft5Ww1Eks5sxdQOgaJpZM4L9HYk>
.
|
Any update on this ? |
This PR introduces an additional dialect to support crate.io as per issues/341