Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ORM / ORM-like lib in Go [closed]

Tags:

mysql

orm

go

I'm working with a legacy Mysql DB with a lot of tables, and about to expose it as an REST api server under some privilege control using ACL. The server would be using Go for better concurrency support.

So is there a Go ORM library that supports inspecting legacy MySQLDB and generating model code that I can start with?

Or is there any other method to achieve same goal?

like image 555
Jason Xu Avatar asked Sep 10 '26 07:09

Jason Xu


2 Answers

The following list exists today:

  • https://github.com/gosexy/db
  • https://github.com/eaigner/jet
  • https://github.com/eaigner/hood
  • https://github.com/coocood/qbs (forked from hood)
  • https://github.com/astaxie/beedb
  • https://github.com/coopernurse/gorp
  • https://github.com/jmoiron/modl (fork of gorp)
  • https://github.com/go-xorm/xorm

For your particular case: hood allows automatic schema generation

like image 107
ClojureMostly Avatar answered Sep 12 '26 20:09

ClojureMostly


Have a look at https://github.com/jinzhu/gorm

A really cool ORM aims to be developer friendly written by me ;)

like image 37
Jinzhu Avatar answered Sep 12 '26 22:09

Jinzhu