Releases: qiniu/qmgo
Releases · qiniu/qmgo
v1.0.8
v1.0.7
- Fix #226
- Fix #212 , support options for Database()
- Fix #225, support whole index options for Index opetions like
Createindex()
AndEnsureIndex()
Notes: from this version, useUnique
、Background
、Sparse
andExpireAfterSeconds
inoptions.IndexOptions
instead ofIndexModel
type IndexModel struct {
Key []string // Index key fields; prefix name with dash (-) for descending order
*options.IndexOptions
}
indexOpts := officialOpts.Index()
indexOpts.SetUnique(true).SetExpireAfterSeconds(expireS)
ast.NoError(cli.CreateOneIndex(context.Background(), options.IndexModel{Key: unique, IndexOptions: indexOpts}))