Home > Mobile >  Entity-Framework equivalent in Golang for existing Database
Entity-Framework equivalent in Golang for existing Database

Time:07-01

I am currently using a ASP.NET Core Web-API but I am thinking about moving to Golang. Is there any equivalent to EntityFrameworkCore in Golang?

I have an existing Database and loved the easy way of EFCore to run the ScaffoldDbCommand which generates all the model classes for me. Is there something like this in Go? And if not, what ist the proper way of Database-interaction in Go? Is there only the possibility of writing plain sql in the code? Because thats what I mainly find on the Internet.

Thanks in Advance

CodePudding user response:

I would recommend looking up some of the ORMs for Golang out there.

Gorm is an example: https://gorm.io/index.html

  • Related