View definition

(*TableMap).AddIndex

Defined in github.com/go-gorp/gorp/table.go

Description

AddIndex registers the index with gorp for specified table with given parameters. This operation is idempotent. If index is already mapped, the existing *IndexMap is returned Function will panic if one of the given for index columns does not exists

Automatically calls ResetSql() to ensure SQL statements are regenerated.

AddIndex is referenced in 1 repository

github.com/go-gorp/gorp