# xxjwxc/gormt

database to golang struct

Repository: https://github.com/xxjwxc/gormt
Canonical: https://ross.abutalabs.com/products/gormt
Homepage: https://xxjwxc.github.io/post/gormt/
Language: Go
License: MIT
License Family: permissive
Topics: gorm, orm, golang, go, mysql, database, mapping, tools, function
Last push: 2026-07-10T15:53:33+00:00

## Health v2 (maintenance only)
Score: 64/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 91, release rhythm 8, longevity 100
- inputs: {"age_days": 2677, "days_push": 54, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2422, forks 362 (observed 2026-08-28T04:06:50.648524+00:00)

## What it is
gormt is a Go tool that connects to a MySQL (and optionally SQLite/MSSQL) database and automatically generates Golang struct definitions compatible with gorm v1/v2, including JSON tags, foreign keys, and helper functions. It offers both a command-line mode and a GUI mode, configured via a config.yml file or CLI flags.

## Use cases
- generate golang structs from mysql database tables
- create gorm models from an existing database schema
- reverse engineer mysql schema into go structs with  tags
- generate model files with foreign key and index annotations
- scaffold gorm model code for a legacy database
- export database tables to big camel-case go structs

## When to choose
- you use gorm in Go and need models generated from an existing MySQL schema
- you want automatic JSON tags, foreign keys, and helper functions in generated structs
- you prefer a tool with both CLI and GUI operation

## When to avoid
- your database is not MySQL/SQLite/MSSQL (e.g. PostgreSQL)
- you use a different ORM than gorm or db tags
- you need runtime ORM functionality rather than code generation

## Facets
- artifact type: cli-tool
- maturity: active
- function: orm, database, developer-tools
- domain: developer-tools, databases, backend
- platform: go, cli, cross-platform
- tags: gorm, mysql, struct-generation, code-generator, gui-mode, code-generation

## Member repositories
- xxjwxc/gormt (main) score 64

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:50.648524+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:33:02.225537+00:00, confidence not recorded.
  - readme: https://github.com/xxjwxc/gormt (fetched 2026-08-28T04:06:50.648524+00:00, sha 17a1fcf7c687)
  - homepage: https://xxjwxc.github.io/post/gormt/ (fetched 2026-08-29T10:13:14.851547+00:00, sha 176b37869da3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
