Eralchemy2 target for generating er diagrams
This commit is contained in:
parent
a7ebfe7110
commit
02c9c502b8
2 changed files with 7 additions and 0 deletions
|
@ -80,6 +80,12 @@ docs:
|
|||
docfmt:
|
||||
swag fmt
|
||||
|
||||
# Generate ERD
|
||||
# Requires eralchemy2
|
||||
.PHONY: eralchemy
|
||||
erd:
|
||||
eralchemy2 -i sqlite:///db.sqlite3 -o erd.png
|
||||
|
||||
install-swag:
|
||||
@echo "Installing swag"
|
||||
@go get -u github.com/swaggo/swag/cmd/swag
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue