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