Added create_index(..., if_not_exists=True), refs #14

This commit is contained in:
Simon Willison 2019-02-24 10:46:44 -08:00
commit 7784b924a1
3 changed files with 18 additions and 3 deletions

View file

@ -394,6 +394,8 @@ You can create a unique index by passing ``unique=True``::
dogs.create_index(["name"], unique=True)
Use ``if_not_exists=True`` to do nothing if an index with that name already exists.
Vacuum
======