Sponsored Links
-->

Tuesday, July 31, 2018

Xcode Database - How to create, read, update and delete (CRUD ...
src: i.ytimg.com

In computer programming, create, read, update, and delete (CRUD) are the four basic functions of persistent storage. Alternate words are sometimes used when defining the four basic functions of CRUD, such as retrieve instead of read, modify instead of update, or destroy instead of delete. CRUD is also sometimes used to describe user interface conventions that facilitate viewing, searching, and changing information; often using computer-based forms and reports. The term was likely first popularized by James Martin in his 1983 book Managing the Data-base Environment. The acronym may be extended to CRUDL to cover listing of large data sets which bring additional complexity such as pagination when the data sets are too large to hold easily in memory.


Video Create, read, update and delete



Database applications

The acronym CRUD refers to all of the major functions that are implemented in relational database applications. Each letter in the acronym can map to a standard Structured Query Language (SQL) statement, Hypertext Transfer Protocol (HTTP) method (this is typically used to build RESTful APIs) or Data Distribution Service (DDS) operation:

The comparison of the database oriented CRUD operations to the HTTP methods has some flaws. Strictly speaking, both PUT and POST can create resources; the key difference is that POST leaves it up to the server to decide at what URI to make the new resource available, while PUT dictates what URI to use; URIs as a concept do not align neatly with CRUD. The significant point about PUT is that it will replace whatever resource the URI was previously referring to with a brand new version, hence the PUT method being listed for Update as well. PUT is a 'replace' operation, which one could argue is not 'update'.

Although a relational database provides a common persistence layer in software applications, numerous other persistence layers exist. CRUD functionality can for example be implemented with object databases, XML databases, flat text files, or custom file formats.


Maps Create, read, update and delete



User interface

CRUD is also relevant at the user interface level of most applications. For example, in address book software, the basic storage unit is an individual contact entry. As a bare minimum, the software must allow the user to

  • Create or add new entries
  • Read, retrieve, search, or view existing entries
  • Update or edit existing entries
  • Delete/deactivate/remove existing entries

Without at least these four operations, the software cannot be considered complete. Because these operations are so fundamental, they are often documented and described under one comprehensive heading, such as "contact management", "content management" or "contact maintenance" (or "document management" in general, depending on the basic storage unit for the particular application).


CRUD Create Read Update Delete Example in Laravel 5.3 from Scratch ...
src: i.ytimg.com


Other variations

Other variations of CRUD include:

  • BREAD (Browse, Read, Edit, Add, Delete)
  • DAVE (Delete, Add, View, Edit)
  • CRAP (Create, Replicate, Append, Process)

Create Read Update Delete Bold Font In Colors Stock Illustration ...
src: thumbs.dreamstime.com


Often Missing Functions

  • Enumerate / Browse
  • State info
  • Statistics

Android Studio - SQLite Database Create Read Update Delete with ...
src: i.ytimg.com


See also

  • Representational state transfer (REST)
  • Active record pattern
  • Data manipulation language
  • Input/Output
  • ACID
  • Query by Example
  • Command-query separation

pete on Twitter:
src: pbs.twimg.com


References

Source of article : Wikipedia