-
Notifications
You must be signed in to change notification settings - Fork 41
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
Support database specific extensions #25
Comments
I think this is a good approach. I'll carry on raising SQLite issues as I find them. We can close them in future. |
@irar2 as mentioned in #52 and this comment: link, I'll move extension discussions to this issue, so there is no multiple issues for the same feature. In this commit i've implemented an initial implementation of
Does
Doest it mean that there should be no multiple extensions on the same position or that usage of priorities could be error prone if not used correctly? |
Hi @naithar, Yes, by injection points I meant Position, and in my opinion Position is not flexible enough, it defines 5 points (for Select), and we prefer something more universal. We think that priorities are error prone in this case. |
@irar2 func injectExtension(into queryParts: [String]) -> [String] or func injectExtension(into query: String, to: Range) -> String
|
There are several keywords supported by Swift-Kuery that are not supported by some databases. At the moment we are aware of the following:
We propose to deal with each problem in a different way, because we are trying to find a trade-off between supporting as much as possible and still keeping Swift-Kuery reasonable:
It is also possible to insert queries in raw queries, for example to support RETURNING in DB2:
The text was updated successfully, but these errors were encountered: