Skip to content

aditya-nagare/gorm_example

 
 

Repository files navigation

GORM Example

GORM is a ORM in Golang for handling relational databases.

Usage

This demo uses mysql as example. Make sure you have:

  • Installed MySQL.
  • Create a user gorm with password gorm.
  • Create a database gorm, and have gorm user have access to it.
  • Clone this repo:
git clone git@github.com:adlerhsieh/gorm_example.git
  • Run in the proejct directory:
go run *.go

You should see all the results and queries. Follow the examples to see how GORM works.

References

About

An exmaple of how to use golang ORM gorm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%