Questions tagged [crud]

The four basic operations for a data management system : Create, Read, Update, Delete

The four basic operations that can be used on a relational database table are

  • C reating
  • R eading
  • U pdating
  • D eleting

A CRUD application is one that performs these basic operations. A CRUD framework is an application framework that gives these functionalities as a base for the development.

Also see: , ,

4608 questions
25
votes
3 answers

How to find by id in golang and mongodb

I need get values using ObjectIdHex and do update and also view the result. I'm using mongodb and golang.But following code doesn't work as expected package main import ( "fmt" "gopkg.in/mgo.v2" "gopkg.in/mgo.v2/bson" ) type Person…
Nuwan Indika
  • 901
  • 4
  • 14
  • 27
25
votes
6 answers

ORM on Android SQLite and database scheme

I'm looking for a very simple ORM framework working on Android for SQLite. I've been testing ActiveAndroid but none of the example could ever build on Eclipse. By the way, how do guys implement a "many to many" relationship in SQLite for Android?…
BlackLabrador
  • 251
  • 1
  • 3
  • 3
25
votes
2 answers

Spring CrudRepository .orElseThrow()

What is the proper way to throw an exception if a database query returns empty? I'm trying to use the .orElseThrow() method but it won't compile : Meeting meeting = meetingRepository.findByMeetingId(meetingId).orElseThrow(new…
szxnyc
  • 2,495
  • 5
  • 35
  • 46
23
votes
3 answers

Is it good practice to combine CREATE and EDIT controllers in AngularJS?

There are many duplicated code among CREATE and EDIT controllers. These controllers could be combined into one for minimizing repetitive code. The problem: I need to distinguish which method to use on form submitting - create() or edit() for…
webvitaly
  • 4,241
  • 8
  • 30
  • 48
22
votes
8 answers

Rails Alternative to The Django admin panel / CRUD View Generator?

I am currently trying to decide between Rails and Django.. At the moment the I'm finding ruby much more elegant so my only reason for considering Django is the admin panel.. I have no experience of either but i have to develop an application fast to…
Daniel Upton
  • 5,561
  • 8
  • 41
  • 64
22
votes
1 answer

Why use Attach for update Entity Framework 6?

While searching for the best practivies of performing CRUD operation via EF I noticed that it is highly recommended to use Attach() or Find() methods before updating an entity. It works well and according to EF documentation these methods fetch the…
Vitalii Isaenko
  • 941
  • 1
  • 14
  • 37
21
votes
1 answer

Naming convention for Django URL, templates, models and views

I know there are a lot of naming conventions to build apps (name database tables in the singular, models in uppercase, and packages all lowercase), but I haven't found any recommendations to name related elements. Something like "If you name your…
Federico
  • 3,650
  • 4
  • 32
  • 45
21
votes
4 answers

AngularJS best practice REST / CRUD

What is the best practice of doing CRUD operations via REST with AngularJS? Specially what is the Angular-Way here. By this I mean the way using the least code and the most default angular settings to achive this. I know $resource and it's default…
Scheintod
  • 7,953
  • 9
  • 42
  • 61
20
votes
6 answers

A RESTful persistence solution usable with backbone.js... in PHP?

I'll preface this with saying that I'm a crappy programmer, I'm sure that what I want to do could be done in 10 lines of node or Rails or something else, but PHP is what I have available. So, I'm hoping to find a simple PHP library which wraps the…
user18015
20
votes
3 answers

What's the difference between CRUD and CRUDL?

I don't understand the difference between read and list. According to Wikipedia: 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…
BiGXERO
  • 7,104
  • 8
  • 23
  • 25
20
votes
8 answers

How do I generate CRUD stored procedures from a table in SQL Server Management Studio

How do I take a table, and auto-gen CRUD stored procs for it in SSMS?
The Internet
  • 7,959
  • 10
  • 54
  • 89
18
votes
1 answer

What's the cleanest way to implement a CRUD workflow in R Shiny?

I'm trying to implement a CRUD workflow (Create/Read/Update/Delete) in Shiny to manage database records. It seems Shiny does not support this kind of workflow by default, so I'm wondering if there is a clean way to achieve this. To narrow the scope…
JAponte
  • 1,508
  • 1
  • 13
  • 21
18
votes
6 answers

PHP RESTful CRUD framework

I really like working with SailsJS (http://sailsjs.org). Especially because it automatically generates a RESTful CRUD API. However, working for small clients, I don't always have the opportunity of working in a NodeJS environment. Mostly their…
Dnns
  • 2,614
  • 3
  • 18
  • 16
17
votes
5 answers

How to dynamically update an attribute in a dynamodb item?

I created an item in dynamodb using Node js, the item has multiple attributes such as brand, category, discount, validity, etc. I am using uuid to generate ids for each item. Now let's say I want to update the validity attribute of the item, in…
Deb
  • 349
  • 1
  • 3
  • 11
17
votes
4 answers

Generating CRUD in symfony 4

After releasing Symfony 4.0, there is no support for SensioGeneratorBundle. hence the command php app/console generate:doctrine:crud is not available. They suggest to use MakerBundle, but I could not find appropriate replacement for CRUD…
Mahdi
  • 664
  • 3
  • 15
  • 35