{"id":47130036,"url":"https://github.com/eujoy/erbuilder","last_synced_at":"2026-03-12T20:03:58.584Z","repository":{"id":57533430,"uuid":"280461962","full_name":"eujoy/erbuilder","owner":"eujoy","description":"Parse go files and prepare the .er based on the structs defined in the input files.","archived":false,"fork":false,"pushed_at":"2022-09-28T14:01:28.000Z","size":1745,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-14T13:54:03.374Z","etag":null,"topics":["automation","cli","erd","erdiagram","go","go-module","golang"],"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/eujoy.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}},"created_at":"2020-07-17T15:35:53.000Z","updated_at":"2022-09-28T14:01:50.000Z","dependencies_parsed_at":"2023-01-18T20:00:27.768Z","dependency_job_id":null,"html_url":"https://github.com/eujoy/erbuilder","commit_stats":null,"previous_names":["angelos-giannis/er-builder","angelos-giannis/erbuilder"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/eujoy/erbuilder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eujoy%2Ferbuilder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eujoy%2Ferbuilder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eujoy%2Ferbuilder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eujoy%2Ferbuilder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eujoy","download_url":"https://codeload.github.com/eujoy/erbuilder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eujoy%2Ferbuilder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30441855,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T14:34:45.044Z","status":"ssl_error","status_checked_at":"2026-03-12T14:09:33.793Z","response_time":114,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["automation","cli","erd","erdiagram","go","go-module","golang"],"created_at":"2026-03-12T20:01:47.806Z","updated_at":"2026-03-12T20:03:58.569Z","avatar_url":"https://github.com/eujoy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# erbuilder\n\n[![GoDoc](https://godoc.org/github.com/eujoy/erbuilder?status.png)](https://pkg.go.dev/github.com/eujoy/erbuilder)\n![version](https://img.shields.io/badge/version-v0.7.0-brightgreen)\n![golang-version](https://img.shields.io/badge/Go-1.14-blue)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n----\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/eujoy/erbuilder)](https://goreportcard.com/report/github.com/eujoy/erbuilder)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/0c302dec02df4805ba27c9eda331ef98)](https://www.codacy.com/manual/eujoy/erbuilder?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=eujoy/erbuilder\u0026amp;utm_campaign=Badge_Grade)\n[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/0c302dec02df4805ba27c9eda331ef98)](https://www.codacy.com/manual/eujoy/erbuilder?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=eujoy/erbuilder\u0026utm_campaign=Badge_Coverage)\n[![master-actions Actions Status](https://github.com/eujoy/erbuilder/workflows/master-actions/badge.svg)](https://github.com/eujoy/erbuilder/actions)\n![.github/workflows/release-actions.yaml](https://github.com/eujoy/erbuilder/workflows/.github/workflows/release-actions.yaml/badge.svg)\n\nThe purpose of this tool is to parse a file or a list of files containing the mappping against the database and generate an `.er` file describing the database modeling.\n\n## Installation\n\n### Installing via go get\n\nIn order to be able to use this you simply have to :\n\n```shell\ngo get -u github.com/eujoy/erbuilder\n```\n\n### Installing via brew\n\nIn order to install this tool via brew you simply have to :\n\n```shell\nbrew tap eujoy/erbuilder\nbrew install erbuilder\n```\n\n## Definition of commands\n\nThere is a command called `generate` which actually retrieves the details from the provided files or files under directory and generates the respective .er file based on the definition of the structs in those files.\n\n```shell\nNAME:\n   main generate - Generate the .er file based on the provided structures.\n\nUSAGE:\n   main generate [command options] [arguments...]\n\nOPTIONS:\n   --common_field value, -c value         Common field for all the tables which do not have the provided tag in place.\n   --directory value, -d value            Directory to retrieve the files from.\n   --file_list value, -l value            List of files to parse.\n   --id_field value                       Id field to be used for all the tables.\n   --output_filename value, --of value    Define the generated output filename (will be used for both the .er and the image file). (default: \"er-diagram\")\n   --output_path value, -o value          The path were to store the .er file. (default: \".\")\n   --tag value, -t value                  Tag value to consume from the structs. (default: \"db\")\n   --title value                          Title to be included in the exported image. (default: \"Database Schema\")\n   --column_name_case value, --cnc value  Define the case definition for the column names. (Allowed values : [snake_case camelCase screaming_snake_case kebab_case]) (default: \"snake_case\")\n   --table_name_case value, --tnc value   Define the case definition for the table names. (Allowed values : [snake_case camelCase screaming_snake_case kebab_case]) (default: \"snake_case\")\n   --table_in_plural, --tp                Define whether the table name should be in plural. (default: false)\n   --help, -h                             show help (default: false)\n```\n\n## How to use\n\nTo generate a new `.er` file with the database models, a command like the following needs to be executed :\n\n```shell\nerbuilder generate --directory \"./test/\" --output_path \"./test/\" --output_filename \"example-er-diagram\" --id_field \"id\" --tag \"db\" --title \"example_db\"\n```\n\nor by using `go run` in the root folder of the project :\n\n```shell\ngo run main.go generate --directory \"./test/\" --output_path \"./test/\" --output_filename \"example-er-diagram\" --id_field \"id\" --tag \"db\" --title \"example_db\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feujoy%2Ferbuilder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feujoy%2Ferbuilder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feujoy%2Ferbuilder/lists"}