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

Added WhereRaw #57

Merged
merged 2 commits into from
Feb 4, 2021
Merged

Added WhereRaw #57

merged 2 commits into from
Feb 4, 2021

Conversation

dantownsend
Copy link
Member

This allows raw SQL to be executed in where clauses.

It's an escape hatch, allowing database features to be accessed which are otherwise not possible when using Piccolo.

For example, GIS and JSON functions.

#55

@Fingel
Copy link
Contributor

Fingel commented Feb 4, 2021

I think this is a great addition. Could it be dangerous? Yes. But when dealing with databases like Postgres, it's almost a necessity if you want to take advantage of the billions of features it provides that would be unreasonable to expect Piccolo to implement natively.

Full text search is another one of the killer features from Postgres that this might enable some people to take advantage of flexibly.

@dantownsend dantownsend merged commit 4ff42d3 into master Feb 4, 2021
@dantownsend dantownsend deleted the raw_sql_where_clause branch December 9, 2021 13:20
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

Successfully merging this pull request may close these issues.

2 participants