Skip to content

Commit 6b34672

Browse files
committed
update docstring to match new behavior
1 parent 36862c1 commit 6b34672

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

mathesar/rpc/schemas/base.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,13 @@ def get(*, schema_oid: int, database_id: int, **kwargs) -> SchemaInfo:
121121
@mathesar_rpc_method(name="schemas.delete", auth="login")
122122
def delete(*, schema_oids: list[int], database_id: int, **kwargs) -> None:
123123
"""
124-
Delete a schema, given its OID.
124+
Safely drop all objects in each schema, then the schemas themselves.
125+
126+
Does not work on the internal `msar` schema.
127+
128+
If any passed schema doesn't exist, an exception will be raised. If
129+
any object exists in a schema which isn't passed, but which depends
130+
on an object in a passed schema, an exception will be raised.
125131
126132
Args:
127133
schema_oids: The OIDs of the schemas to delete.

0 commit comments

Comments
 (0)