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

Use abstract function name for ECall #105

Open
kevinresol opened this issue Apr 28, 2020 · 1 comment
Open

Use abstract function name for ECall #105

kevinresol opened this issue Apr 28, 2020 · 1 comment

Comments

@kevinresol
Copy link
Member

For example "IF" on mysql is "IIF" in mssql, and there is no such function at all in sqlite

We might need some AST to hold the function and concretize it in a formatter.

@benmerckx
Copy link
Member

benmerckx commented Apr 28, 2020

I wondered about it too since they're so specific to the database used. An alternative would be:

import tink.sql.expr.Functions.*; // count/max/min etc
import tink.sql.expr.Functions.MySql.*;
import tink.sql.expr.Functions.Sqlite.*;
// etc

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

No branches or pull requests

2 participants