{"id":26120941,"url":"https://github.com/dizzyfool/genna","last_synced_at":"2025-06-28T05:34:16.324Z","repository":{"id":49560147,"uuid":"160079606","full_name":"dizzyfool/genna","owner":"dizzyfool","description":"Model generator for go-pg package","archived":false,"fork":false,"pushed_at":"2023-03-06T22:38:29.000Z","size":333,"stargazers_count":114,"open_issues_count":8,"forks_count":24,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-13T12:26:18.462Z","etag":null,"topics":["codegen","go-pg","golang","postresql"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dizzyfool.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-12-02T19:01:39.000Z","updated_at":"2025-01-06T04:05:13.000Z","dependencies_parsed_at":"2022-09-02T00:02:21.035Z","dependency_job_id":"856050b9-ed3f-46ce-98f1-218930104078","html_url":"https://github.com/dizzyfool/genna","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/dizzyfool/genna","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dizzyfool%2Fgenna","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dizzyfool%2Fgenna/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dizzyfool%2Fgenna/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dizzyfool%2Fgenna/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dizzyfool","download_url":"https://codeload.github.com/dizzyfool/genna/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dizzyfool%2Fgenna/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262382142,"owners_count":23302257,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codegen","go-pg","golang","postresql"],"created_at":"2025-03-10T13:58:32.138Z","updated_at":"2025-06-28T05:34:16.299Z","avatar_url":"https://github.com/dizzyfool.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Genna - cli tool for generating go-pg models\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/dizzyfool/genna)](https://goreportcard.com/report/github.com/dizzyfool/genna)\n\n\nRequirements:\n- [go-pg](https://github.com/go-pg/pg)\n- your PostgreSQL database\n\n### Idea\n\nIn 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.\n\n### Usage\n\n1. Install `go get github.com/dizzyfool/genna`\n1. Read though help `genna -h`\n\nCurrently genna support 3 generators:\n- [model](generators/model/README.md), that generates basic go-pg model\n- [model-named](generators/named/README.md), same as basic but with named structs for columns and tables (author: [@Dionid](https://github.com/Dionid))\n- [search](generators/search/README.md), that generates search structs for basic model\n- [validation](generators/validate/README.md), that generates validate functions for basic model\n\nExamples located in each generator\n ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdizzyfool%2Fgenna","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdizzyfool%2Fgenna","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdizzyfool%2Fgenna/lists"}