From abf34df7993f5e5cbd35f20b422c06ee47bb636d Mon Sep 17 00:00:00 2001 From: Tom Clancy Date: Tue, 27 Apr 2021 20:46:26 -0400 Subject: [PATCH] Provide import statement for Unique constraint It's not clear from the docs example where the constraint lives. --- docs/constraints.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/constraints.rst b/docs/constraints.rst index 992d579..230b158 100644 --- a/docs/constraints.rst +++ b/docs/constraints.rst @@ -52,7 +52,9 @@ exception. Uniqueness constraint is declared thusly: .. code-block:: python - + + from datalite.constraints import Unique + @datalite("db.db") @dataclass class Student: