xo/dbtpl
Command line tool to generate idiomatic Go code for SQL databases supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server observed · 2026-08-28
Health v2 · maintenance only
66/100
- Activity 96
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3862
- days_rel: n/a
- days_push: 29
- n_releases_24m: 0
Adoption not part of the score
3894 stars · 335 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
dbtpl is a command-line tool that inspects SQL database schemas or custom queries and generates idiomatic Go code via templates. It supports PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server, and can also emit schema scripts, JSON/YAML definitions, and Graphviz diagrams.
Use cases
- generate Go model code from a database schema
- generate type-safe Go code from custom SQL queries
- create schema creation scripts for a database
- export database schema as JSON or YAML
- generate Graphviz diagrams of database relationships
- introspect tables, enums, and stored procedures across multiple SQL databases
When to choose
- you write Go against SQL databases and want generated, type-safe models instead of hand-written boilerplate
- you need code generation across PostgreSQL, MySQL, SQLite, Oracle, and SQL Server with one tool
- you want customizable Go templates for generated database code
- you need schema documentation like JSON/YAML dumps or ER diagrams
When to avoid
- you need an ORM with runtime query building rather than generated code
- you want code generation for languages other than Go
- you expect a tool that eliminates writing SQL entirely
- your project is not Go-based
Facets
cli-tool · maturity active
orm database templating cli databases developer-tools backend web-development go cli cross-platform sql code-generator schema-introspection go-templates postgresql mysql sqlite sql-server oracle code-generation
1 source
- readme: https://github.com/xo/dbtpl · fetched 2026-08-28 · beea46a4864a
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| xo/dbtpl | main | 66 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem