Skip to content
/ genna Public
forked from dizzyfool/genna

Model generator for go-pg package

License

Notifications You must be signed in to change notification settings

jayco/genna

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Genna - cli tool for generating go-pg models

Go Report Card

Requirements:

  • go-pg
  • your PostgreSQL database

Idea

In most of the cases go-pg models represent database's tables and relations. Genna's main goal is to prepare those models by reading detailed information about PostrgeSQL database. The result should be several files with ready to use structs.

Usage

  1. Install go get github.com/dizzyfool/genna
  2. Read though help genna -h

Currently genna support 3 generators:

  • model, that generates basic go-pg model
  • model-named, same as basic but with named structs for columns and tables (author: @Dionid)
  • search, that generates search structs for basic model
  • validate, that generates validate functions for basic model

Examples located in each generator

About

Model generator for go-pg package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.2%
  • Other 0.8%