Add interface to allow structs to provide specific index information #2137
Merged
lunny
merged 2 commits from zeripath/xorm:index-manipulation
into master
4 weeks ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'zeripath/xorm:index-manipulation'
Deleting a branch is permanent. It CANNOT be undone. Continue?
The current mechanism for adding information about indices cannot express the ordering
of the columns in the index or add sorting information.
Here we add a new interface TableIndices which a struct would implement to provide
a slice of *schema.Index to provide additional indices to that gleaned from the tags.
Signed-off-by: Andrew Thornton art27@cantab.net
Could you add some tests for that?
26d291bbc3
into master 4 weeks agoReviewers
26d291bbc3
.