Provide import statement for Unique constraint

It's not clear from the docs example where the constraint lives.
This commit is contained in:
Tom Clancy
2021-04-27 20:46:26 -04:00
committed by GitHub
parent 2e7fea4d35
commit abf34df799

View File

@@ -52,7 +52,9 @@ exception.
Uniqueness constraint is declared thusly:
.. code-block:: python
from datalite.constraints import Unique
@datalite("db.db")
@dataclass
class Student: