Provide import statement for Unique constraint
It's not clear from the docs example where the constraint lives.
This commit is contained in:
1 parent
2e7fea4d35
commit
abf34df799
1 file changed
+2
@@ -53,6 +53,8 @@ Uniqueness constraint is declared thusly:
|
|||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
|
from datalite.constraints import Unique
|
||||||
|
|
||||||
@datalite("db.db")
|
@datalite("db.db")
|
||||||
@dataclass
|
@dataclass
|
||||||
class Student:
|
class Student:
|
||||||
|
|||||||
Reference in new issue
Block a user