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

Support for PostgreSQL Index Operator Classes in GORM #7338

Open
shivabohemian opened this issue Jan 7, 2025 · 0 comments
Open

Support for PostgreSQL Index Operator Classes in GORM #7338

shivabohemian opened this issue Jan 7, 2025 · 0 comments
Assignees
Labels
type:feature_request feature request

Comments

@shivabohemian
Copy link

Describe the feature

I would like to request support for PostgreSQL index operator classes in GORM. Specifically, I need the ability to set operator classes such as varchar_pattern_ops and text_pattern_ops when defining btree indexes.

These operator classes are particularly useful for optimizing queries with pattern matching (LIKE, ILIKE, etc.) on varchar and text columns. Currently, there doesn't appear to be a straightforward way to define these operator classes directly within GORM's model or migration configuration.

Motivation

Related Issues

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

No branches or pull requests

2 participants