Tool to create models and CRUD methods for PostgreSQL database which can be used with gorm.
gormstruct -schema public -conn "host=localhost user=postgres dbname=postgres port=5432 sslmode=disable" -out=./model -pkg-name=model -skip-tables=db_migration,db_stats
print help:
gormstruct -h
- does not support some arrays and user defined types
- does not support domains