Registry / database / hints
library1.1.2gogounverified

Package hints provides database index hints for GORM queries.

go get gorm.io/hints
INSTALL
IMPORT
SIG · HINTS
H
hints
databasegov1.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

hints
gorm.io/hints

Applies a USE INDEX hint to a GORM query.

package main import ( "gorm.io/gorm" "gorm.io/hints" ) func main() { db, _ := gorm.Open(nil, &gorm.Config{}) db.Clauses(hints.UseIndex("idx_name")).Find(&User{}) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
hints — go get hints · libregistry