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

Custom Predicates #758

Merged
merged 5 commits into from
Sep 14, 2020
Merged

Custom Predicates #758

merged 5 commits into from
Sep 14, 2020

Conversation

cliedeman
Copy link
Contributor

@cliedeman cliedeman commented Sep 13, 2020

Added functionality to allow for custom predicates

results := client.File.Query().
		Where(file.NameGlob("^[12]$")).
		AllX(ctx)

This example adds the sqlite glob operator

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 13, 2020
Copy link
Member

@a8m a8m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this @cliedeman!

entc/integration/template/ent/template/where.tmpl Outdated Show resolved Hide resolved
entc/integration/template/template_test.go Outdated Show resolved Hide resolved
entc/integration/template/template_test.go Show resolved Hide resolved
cliedeman and others added 3 commits September 14, 2020 14:05
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
@a8m a8m merged commit 5477496 into ent:master Sep 14, 2020
@a8m
Copy link
Member

a8m commented Sep 14, 2020

Wonderful @cliedeman! Thanks for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants