Discover Packages
github.com/ayoah/genna
command
module
Version:
v0.0.0-...-45b908b
Opens a new window with list of versions in this module.
Published: Oct 1, 2019
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
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
Install go get github.com/dizzyfool/genna
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
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
generators
Click to show internal directories.
Click to hide internal directories.