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
17
votes
3 answers

Cannot find module in Nodejs

module.js:340 throw err; ^ Error: Cannot find module './models/todo' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require…
user2993058
  • 238
  • 1
  • 2
  • 9
17
votes
3 answers

Overriding Devise Registration Create Method

I want to specifically set a field when a user is created. I have class RegistrationsController < Devise::RegistrationsController def create super @user.tag_list = params[:tags] end end I have check boxes that pass the tags parameter…
Vasseurth
  • 6,354
  • 12
  • 53
  • 81
16
votes
6 answers

Implementing a CRUD using an Interface

What is the best approach to implement a CRUD on the BL using interface that will be used to abstract DAL operations? I need your opinion guys.. Here's my draft.. Data Entities that are mapped in the database table public class Student { …
CSharpNoob
  • 1,271
  • 7
  • 18
  • 27
16
votes
11 answers

CRUD for MySQL and PHP

I have to make some database requests with PHP on a MySQL database. Question : What is the best (simpliest) framework to get thing done right CRUD (Create Read Update Delete)? I also have to populate the database, what is a good tool to do that. The…
menardmam
  • 9,860
  • 28
  • 85
  • 113
16
votes
2 answers

Rails: form_for namespaced resource

I want to set up the CRUD for users, available just for administrators of my web application. So in routes.rb: namespace :admin do resources :user end which means this: admin_user_index GET /admin/user(.:format) …
Barbared
  • 800
  • 1
  • 8
  • 25
15
votes
4 answers

Why are CRUD operations so bad in a SOA design?

I have just finished reading an article on MSDN by John Evdemon. He bashes the CRUD interfaces and calls it an anti-pattern. While I agree that having ANYTHING stateful is difficult and Current and MoveNext are bad ideas I don't agree that CRUD as…
uriDium
  • 13,110
  • 20
  • 78
  • 138
15
votes
8 answers

PHP rapid skeleton generator for basic CRUD?

I have been tasked with building a simple web based system for managing a list of vehicles. I am interested to know whether there are any robust, clean PHP 5 frameworks / libraries that are specialized in doing this quickly. They should be able to…
Pekka
  • 442,112
  • 142
  • 972
  • 1,088
15
votes
6 answers

How can I delete nested array element in a mongodb document with the c# driver

I am new in the MongoDB world and now I am struggling of how can I delete, update element in a nested array field of a document. Here is my sample document: { "_id" : ObjectId("55f354533dd61e5004ca5208"), "Name" : "Hand made products for…
mathinvalidnik
  • 1,566
  • 10
  • 35
  • 57
14
votes
1 answer

Offline sync and event sourcing

The CRUD-based part of our application needs: Offline bidirectional "two-way" syncing Ability to modify data until ready and then "publish". Audit log Event Sourcing (or the "command pattern") is what I'm looking at to accomplish these items. I…
Joel
  • 2,601
  • 4
  • 33
  • 44
14
votes
4 answers

RESTful design, how to name pages outside CRUD et al?

I'm working on a site that has quite a few pages that fall outside my limited understanding of RESTful design, which is essentially: Create, Read, Update, Delete, Show, List Here's the question: what is a good system for labeling actions/routes…
sscirrus
  • 55,407
  • 41
  • 135
  • 228
13
votes
2 answers

Rails 3.1 remote requests submitting twice

I developed a Rails 3.1 application that consists of a 100% Ajax CRUD forms to input users and customers. I created two separate models, controllers, views etc. The views for each model contain jquery files for create edit update and destroy. The…
ctilley79
  • 2,151
  • 3
  • 31
  • 64
13
votes
13 answers

Simple CRUD Generator for C#

I am looking for a simple CRUD (or DAL) Generator for C#. I don't want anything heavyweight since I only have a couple of tables in a SQL Server 2008 database. Any suggestions? I know .netTiers, but it is way too much for what I…
Martin
  • 39,309
  • 62
  • 192
  • 278
13
votes
5 answers

Are there PHP tools to generate CRUD screens from DB schema?

I've been using phpMyEdit to quickly generate CRUD screens for databases; it's a quick way to start interacting with data in my projects (and lets me toss together internal admin pages fast)... but it doesn't read the DB schema, so I have to…
Eric
  • 5,104
  • 10
  • 41
  • 70
13
votes
4 answers

How use update function of mongo-go-driver using struct

The update function of mongo-go-driver can be called like this. filter := bson.D{"username", username} update := bson.D{{"$set", bson.D{ {"name", person.Name}, }, }} result, err := collection.UpdateOne(ctx, filter, update) type…
sumedhe
  • 934
  • 1
  • 13
  • 30
13
votes
3 answers

findAll() method of CrudRepository is returning null values

I am working with Spring data Redis and have the following repository: public interface MyClassRepository extends CrudRepository { } When I call findAll(Iterable< String> ids) method, correct data is returned: final List
Ms. Zia
  • 411
  • 3
  • 12