geekelo / dsa_practice

This repo is maintained just for the purpose of daily data structures and algorithm practice and proficiency
1 stars 0 forks source link

Describe CRUD verbs and actions. #23

Open geekelo opened 1 month ago

geekelo commented 1 month ago

CRUD (Create, Read, Update, Delete) is a set of basic operations that are commonly used in database applications and web development to manage resources. Each CRUD operation corresponds to a specific action that can be performed on a resource:

  1. Create: This action involves adding a new resource to the system. In database terms, it corresponds to inserting a new record into a table. In web development, it typically involves submitting a form with data that will be stored in the system.

  2. Read: This action involves retrieving information about existing resources from the system. In database terms, it corresponds to querying the database to retrieve records. In web development, it could involve fetching data from a database and displaying it to the user.

  3. Update: This action involves modifying an existing resource in the system. In database terms, it corresponds to updating the values of one or more fields in a record. In web development, it often involves displaying a form pre-filled with existing data, allowing the user to make changes and submit them to update the resource.

  4. Delete: This action involves removing an existing resource from the system. In database terms, it corresponds to deleting a record from a table. In web development, it typically involves a confirmation step to prevent accidental deletions and then removing the resource from the system.

These CRUD actions form the basis of many web applications and are often mapped to specific HTTP methods:

Together, CRUD operations provide a simple and standardized way to interact with resources in a web application, enabling the basic functionalities required for data management.