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
1
vote
3 answers

laravel 5 crude generator for complex database

I have used some CRUD generator for simple database with laravel. However, im working now on a project with many-to-one relationship and one-to-many just wanna ask if anyone can recommend me a good CRUD generator with relations for laravel 5.2…
Jay Taylor
  • 117
  • 10
1
vote
1 answer

Mean JS stack, create a factory that handles two different paths

I am using the MEAN JS framework and pretty much everything that came with it. However, I am trying to add a custom query when a user goes to a specific path (url). This is the code that came with MEAN JS: (in…
user2512806
  • 421
  • 1
  • 9
  • 26
1
vote
1 answer

Symfony Integrity constraint violation: 1062 Duplicate entry '1' for key

I realized my error but I do not know how to solve it. I have two table, Car and Advertisement, I wish performed a nested form to add data into tables. But I have an error message, which says: An exception occurred while executing INSERT INTO car…
1
vote
3 answers

Should I use CRUD or not?

By default when creating controller in Laravel there is empty methods like create, store, edit, update and etc. for basic CRUD operations. CRUD is something like generally accepted technique which is used in this kind of situations... But for…
Kin
  • 4,466
  • 13
  • 54
  • 106
1
vote
4 answers

Laravel 5.2 MethodNotAllowedHttpException with Patch on route::resource

I want to update a post. Creating and deleting a post works perfectly but whenever I try to update it with a PATCH form, it fails and gives a MethodNotAllowedHttpException. My routes.php: ... Route::resource('posts', 'PostsController'); ... Which…
Trekdrop
  • 475
  • 7
  • 27
1
vote
1 answer

Update the specific field and not the whole document in MongoDB with Java

I'm using MongoDB 3.2 and MongoDB Java Driver 3.2. In order to update the document I use the following code: unfetchedEpisodes.stream() .forEach(ep -> { BasicDBObject updatedFields = new BasicDBObject(); …
Mike
  • 14,010
  • 29
  • 101
  • 161
1
vote
1 answer

PUT and DELETE with database application with Laravel

I do not see the purpose behind the PUT and DELETE http verbs. I have seen a tutorial at https://scotch.io/tutorials/simple-laravel-crud-with-resource-controllers and have not seen the power of a PUT nor DELETE methods when to it comes to a database…
alaboudi
  • 3,187
  • 4
  • 29
  • 47
1
vote
1 answer

YII2 make crud fields required

Is it possible to make CRUD fields required ? In case i have NOT NULL fields in my database table i will get Integrity constraint violation error instead of simple client side required validation.
Satisfier
  • 85
  • 8
1
vote
1 answer

How CRUD operations are possible in Composite columns of a Cassandra Column Family?

I've decide to use NOSQL, Cassandra DB in my new project. I could't found any document that can help me. I have a huge one-to-many relation in my data model! the question is that, when I want to query on my column family it will return many rows…
Elnaz
  • 2,854
  • 3
  • 29
  • 41
1
vote
1 answer

Meteor.users.allow for Autoform

my first time playing with Meteor, and this question probably comes from my lack of understanding the allow/deny concept of Collections. I have a page that is accessible by the logged in admin, which allows the admin to modify existing users. To…
aDvo
  • 894
  • 4
  • 15
  • 43
1
vote
1 answer

Modify CRUD Form in web2py before sending to view

I cannot seem to find a way to modify a form that has been created via: from gluon.tools import Crud crud = Crud(globals(), db) form = crud.create(db.table_name) Since I am using foreign keys in my table, the auto-generated form only allows an…
blastthisinferno
  • 529
  • 1
  • 6
  • 18
1
vote
3 answers

How to pass value from a button to a controller method in laravel 5

I working on a simple laravel 5.2 application. I want to pass a value $id from the view when a button is clicked to the controller method destroy(). This is what i have tried: This is my route Route::get('delete/{id}', array('as' => 'delete', 'uses'…
Awa Melvine
  • 3,797
  • 8
  • 34
  • 47
1
vote
0 answers

Spring redis object validation and crud operation

I'm working on Spring redis to cache some big data as list object. Is it possible to do CRUD operation in Redis cache? Also does it provide any help on validating the updated data?
ashK
  • 713
  • 2
  • 11
  • 24
1
vote
0 answers

Creating OO CRUD class -query returns NULL

I am trying to make my own CRUD class from scratch with PHP. Connection is fine, but when I try to execute query, it gives me null. class CRUD { private static $link; // Connection Var private $error; …
fugitive
  • 357
  • 2
  • 8
  • 26
1
vote
2 answers

Empty json_encode

below PHP code. It makes a query on the database, puts the data into an array , and then try to pass it to json and print these same data. The problem is that the print is coming out empty. Using print_r I can print the data from the array, but when…
Lucas Torres
  • 222
  • 1
  • 2
  • 12