mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 01:14:31 +02:00
Added create_index(..., if_not_exists=True), refs #14
This commit is contained in:
parent
0c6745b70f
commit
7784b924a1
3 changed files with 18 additions and 3 deletions
|
|
@ -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
|
||||
======
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue