"Remove" vs "Delete" vs "Drop" in UI and code #872
-
Inspired by @mathemancer's comment, I'd like to know how to decide between using the words "remove", "delete", and "drop". It would be nice to use a consistent pattern across the product. Does context matter? For example, perhaps we "delete" a table and "remove" a constraint? We should consider schemas, tables, views, columns, rows, constraints, users, roles, and maybe more. A consistent pattern across the UI would be great, and it would be nice to use the same language in our code (i.e. functions, classes, methods, variables, etc) that we use in the UI. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I think we should have different terms depending on context.
|
Beta Was this translation helpful? Give feedback.
-
Final answer (modified from #872 (comment), based on discussion).
|
Beta Was this translation helpful? Give feedback.
Final answer (modified from #872 (comment), based on discussion).
db
module with the intent of eventually spinning it off to be a standalone library that can be used to automate database tasks. We should follow database terminology in code here, so it should bedrop
for DDL operations anddelete
for DML operations.delete
for everything. I think that any functions etc. defined in the Django service code should follow this pattern as well (to comply with Django conventions).delete
for everything.remove
for anything.