forked from mirror/buntdb
Update README.md
This commit is contained in:
parent
e49c1a2edd
commit
89544ad8fc
|
@ -455,8 +455,9 @@ Any index can be put in descending order by wrapping it's less function with `bu
|
||||||
|
|
||||||
```go
|
```go
|
||||||
db.CreateIndex("last_name_age", "*",
|
db.CreateIndex("last_name_age", "*",
|
||||||
buntdb.IndexJSON("name.last"),
|
buntdb.IndexJSON("name.last"),
|
||||||
buntdb.Desc(buntdb.IndexJSON("age")))
|
buntdb.Desc(buntdb.IndexJSON("age")),
|
||||||
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
This will create a multi value index where the last name is ascending and the age is descending.
|
This will create a multi value index where the last name is ascending and the age is descending.
|
||||||
|
|
Loading…
Reference in New Issue