GEN Guides
GEN: Friendly & Safer GORM powered by Code Generation.
Overview
- Idiomatic & Reusable API from Dynamic Raw SQL
- 100% Type-safe DAO API without
interface{}
- Database To Struct follows GORM conventions
- GORM under the hood, supports all features, plugins, DBMS that GORM supports
Install
go get -u gorm.io/gen |
Quick start
It is quite straightforward to use gen
for your application, here is how it works:
1. Write the configuration in golang
package main |
2. Generate Code
go run main.go
3. Use the generated code in your project
import "your_project/query" |