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

Parameterise Query over backend #80

Closed
valderman opened this issue Jun 10, 2018 · 1 comment
Closed

Parameterise Query over backend #80

valderman opened this issue Jun 10, 2018 · 1 comment
Labels
enhancement Issue suggests new or improved functionality.
Milestone

Comments

@valderman
Copy link
Owner

Different backends often support unique features that'd be nice to have. (#47, #31, #61, possibly others.) However, we don't want other backends to blow up when encountering those features.

One possible solution to this dilemma would be to parameterise the Query monad over the backend, giving all the common functionality the type Query a, PostgreSQL-specific features Query PG, etc. This way, we're not tied down to the lowest common denominator features, but can still generate nicely portable code safely.

@valderman valderman added the enhancement Issue suggests new or improved functionality. label Jun 10, 2018
@valderman valderman added this to the 0.4 milestone Jun 10, 2018
@valderman valderman modified the milestones: 0.4, 0.5 Feb 23, 2019
valderman added a commit that referenced this issue May 8, 2019
Squashed commit of the following:

commit c3791db7e06edf0c338d082958073945cd274f39
Author: Anton Ekblad <[email protected]>
Date:   Wed May 8 03:35:35 2019 +0200

    JSON support.

commit c675b1c7447f108908a4c7795848f91352770e19
Author: Anton Ekblad <[email protected]>
Date:   Tue May 7 15:43:48 2019 +0200

    Add unsafe operator function, to define custom SQL operators.

commit 45d71ae1c791f1b93bada94b52e6e40015c8f2eb
Author: Anton Ekblad <[email protected]>
Date:   Wed May 1 02:49:35 2019 +0200

    Add unsafe sink function.

commit c3083c016794bf0c26217c75b9570ce49c2aa9d9
Author: Anton Ekblad <[email protected]>
Date:   Wed May 1 02:18:35 2019 +0200

    Fix prepared statement type inference with constrained backend.

commit f64c4d069ca3eb574539efdd754939b92b4297a5
Author: Anton Ekblad <[email protected]>
Date:   Mon Apr 29 21:31:28 2019 +0200

    Parameterise SeldaT over backend. #80
@valderman
Copy link
Owner Author

Fixed as of 4514ec0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issue suggests new or improved functionality.
Projects
None yet
Development

No branches or pull requests

1 participant