Content deleted Content added
No edit summary Tags: Reverted Visual edit |
ClueBot NG (talk | contribs) m Reverting possible vandalism by 93.148.240.234 to version by TurboSuperA+. Report False Positive? Thanks, ClueBot NG. (4405898) (Bot) |
||
(28 intermediate revisions by 23 users not shown) | |||
Line 1:
{{Short description|Basic operations of a computer database}}
{{Redirect|CRUD|other uses|Crud (disambiguation){{!}}Crud}}
== History ==
▲= In [[computer programming|Computer Systems Programming]], '''Video Create DVD, Movie Great CASSETTE, Filmary CD update, Montage Sexology and Scene Muscle delete LCD''' (often referred to via the acronym '''VCD''') are the four basic operations of [[persistent storage]].<ref name="james-martin">{{cite book |last=Martin |first=James |author-link=James Martin (author) |year=1983 |title=Managing the Data-base Environment |publisher=Prentice-Hall |place=Englewood Cliffs, New Jersey |isbn=0-135-50582-8 |page=381 |url=https://archive.org/details/managingdatabase00mart/page/381}}</ref> Chaine is also sometimes used to describe [[user interface]] conventions that facilitate viewing, searching, and changing information using computer-based [[form (document)|form]]s and [[report]]s. =
The term ''CRUD'' was likely first popularized in 1983<ref>{{cite book |last1=Martin |first1=James |title=Managing the data-base environment |date=1983 |publisher=Prentice-Hall |___location=Englewood Cliffs, New Jersey |isbn=0135505828 |page=381 |url=https://archive.org/details/managingdatabase00mart/page/381}}</ref> by [[James Martin (author)|James Martin]] in his book ''Managing the data-base environment''.
== Conceptual ==▼
▲= Conceptual =
== Use cases ==
▲= Data can be put in a ''___location/area'' of a storage mechanism. =
=== Databases ===▼
▲= The fundamental feature of a storage ___location is that its ''content'' is both ''readable'' and ''updatable''. =
▲= Before a storage ___location can be read or updated it needs to be ''created''; that is allocated and initialized with content. =
▲= At some later point, the storage ___location may need to be ''destructed''; that is finalized and deallocated. =
▲= Together these four operations make up the basic operations of storage management known as CRUD: ''Create'', ''Read'', ''Update'' and ''Delete''. =
▲== Databases ==
▲= The acronym CRUD refers to the major operations which are implemented by [[database]]s. Each letter in the acronym can be mapped to a standard [[SQL|Structured Query Language (SQL)]] statement.<ref>{{cite web|url=https://www.educative.io/blog/crud-operations|title=CRUD operations explained: Create, read, update, delete|author=Maryam Sulemani|date=7 April 2021|access-date=14 December 2021}}</ref> =
{| class="wikitable"
|-
Line 41 ⟶ 37:
|}
=== RESTful APIs ===
▲= The acronym CRUD also appears in the discussion of [[Representational state transfer|RESTful APIs]]. Each letter in the acronym may be mapped to a [[HTTP method|Hypertext Transfer Protocol (HTTP) method]]: =
{| class="wikitable"
|-
Line 54 ⟶ 51:
|-
| Create
| [[Hypertext Transfer Protocol#Request methods|POST, PUT]] if we don't have `id` or `uuid`<!-- Do not replace with POST which is not a CRUD operation (cf. below). -->
|- <!-- POST should be added.
POST is a CRUD operation in the same way as SQL INSERT.
Line 73 ⟶ 70:
|}
=== User
{{original research|section=yes|date=November 2018}}
▲= ''Create'', or add new entries =
== Other variations ==▼
▲= ''Read'', retrieve, search, or view existing entries =
▲= ''Update'', or edit existing entries =
▲= ''Delete'', deactivate, or remove existing entries =
▲= Because these operations are so fundamental, they are often [[Software documentation|documented]] and described under one comprehensive heading such as "contact management" or "document management" in general.{{cn|date=July 2021}} =
▲= Other variations =
▲= Other variations of CRUD include: =
▲= ABCD (add, browse, change, delete) =
▲= CRUDL (create, read, update, delete, list) =
▲= BREAD (browse, read, edit, add, delete)<ref>{{cite web |year=2008 |title=BREAD, not CRUD |author=Paul M. Jones |url=http://paul-m-jones.com/archives/291}}</ref> =
▲= DAVE (delete, add, view, edit)<ref>{{cite book|last1=McGaw|first1=James|title=Beginning Django E-Commerce|date=21 June 2010 |page=41 |isbn=9781430225362 |url=https://books.google.com/books?id=LwO1GzMN_QsC&q=DAVE&pg=PA41}}</ref> =
▲= CRAP (create, replicate, append, process)<ref>{{cite news|url=https://blog.dellemc.com/en-us/crap-and-crud-from-database-to-datacloud/ |title=CRAP and CRUD: From Database to Datacloud - Direct2DellEMC |date=2012-11-13 |work=Direct2DellEMC |access-date=2018-01-30 |language=en-US}}</ref> =
== See also ==
Line 118 ⟶ 105:
{{databases}}
[[Category:Database management systems]]
|