aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/database.py
diff options
context:
space:
mode:
Diffstat (limited to 'pysite/database.py')
-rw-r--r--pysite/database.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/pysite/database.py b/pysite/database.py
index add76923..4c2153fe 100644
--- a/pysite/database.py
+++ b/pysite/database.py
@@ -103,9 +103,11 @@ class RethinkDB:
self.log.debug(f"Table created: '{table_name}'")
return True
- def delete(self, table_name: str, primary_key: Optional[str] = None,
- durability: str = "hard", return_changes: Union[bool, str] = False
- ) -> Union[Dict[str, Any], None]:
+ def delete(self,
+ table_name: str,
+ primary_key: Union[str, None] = None,
+ durability: str="hard",
+ return_changes: Union[bool, str] = False) -> dict:
"""
Delete one or all documents from a table. This can only delete
either the contents of an entire table, or a single document.