Database CRUD operations integration | 211221


211221

Database CRUD operations integration

Working to get the CRUD operation working correctly with the GORM and the database.

Create (AddServer)

No id provided letting GORM auto++

Auto increment is on for gorm

Update

Update

Get {id}

model it is on for testing for update and delete

Note that the model object has been added to the server model but is only turn on in the json for the update/delete testing

Update

Update

Update time as been updated as well as the object itself

Delete

Delete call Shows that the data is still in the table response from get all

Note that Server is not in that array, but still in the database

Get (Get all)

Get all Get all Servers which will probably be the most used and really the only one that will needed the most at this time, there others are there for future use.

_