paint-brush
Golang Tutorial: How to Migrate Your Databaseby@amritsingh
1,327 reads
1,327 reads

Golang Tutorial: How to Migrate Your Database

by Amrit Singh3mApril 8th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Golang has been gaining popularity since its inception. It is a simple language with performance as good as a low-level language like C++. Acceptance of Golang in web development is booming at a high rate. It handles database migrations wonderfully by making them part of your code. GORM is the most popular ORM for Go. It has a lot of similarities with Active Record with the same name as Active Record. To create a table you create a new migration that looks like this: To remove a column you need to explicitly write code like this.
featured image - Golang Tutorial: How to Migrate Your Database
Amrit Singh HackerNoon profile picture
Amrit Singh

Amrit Singh

@amritsingh

Cloud Software Engineer | Product Development | I write about Tech and Travel | Profile https://bit.ly/3dNxaiK

About @amritsingh
LEARN MORE ABOUT @AMRITSINGH'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Amrit Singh HackerNoon profile picture
Amrit Singh@amritsingh
Cloud Software Engineer | Product Development | I write about Tech and Travel | Profile https://bit.ly/3dNxaiK

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite