{"repo":"xo/dbtpl","free":true,"listed":false,"github":"https://github.com/xo/dbtpl","clone":"git clone https://github.com/xo/dbtpl.git","description":"Command line tool to generate idiomatic Go code for SQL databases supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server","language":"Go","stars":3894,"topics":["golang","sql","postgresql","mysql","sqlite","microsoft-sql-server","orm","code-generator","oracle"],"license":"MIT","category":"databases-storage","readme_excerpt":"dbtpl dbtpl is a command-line tool to inspect and generate templated code based on a database schema or a custom database query. In addition to being able to generate standardized \"model\" code for a database, dbtpl is also capable of creating schema creation scripts for a database, generating JSON/YAML definitions, and Graphviz diagrams for schemas. Installing Building Using Releases [![Releases][release-status]][Releases] [![Discord Discussion][discord-status]][discord] [releases]: https://github.com/xo/dbtpl/releases \"Releases\" [release-status]: https://img.shields.io/github/v/release/xo/dbtpl?display name=tag&sort=semver \"Latest Release\" [discord]: https://discord.gg/WDWAgXwJqN \"Discord Discussion\" [discord-status]: https://img.shields.io/discord/829150509658013727.svg?label=Discord&logo=Discord&colorB=7289da&style=flat-square \"Discord Discussion\" Supported languages At the moment, dbtpl only supports Go. Support for other languages is possible, but not currently planned. How it works In schema mode, dbtpl connects to your database and generates code using Go templates. dbtpl works by using database metadata and SQL introspection queries to discover the types and relationships contained within a schema, and applying a standard set of base (or customized) Go templates against the discovered relationships. Currently, dbtpl can generate types for tables, enums, stored procedures, and custom SQL queries for PostgreSQL, MySQL, Oracle, Microsoft SQL Server, and SQLite3 databases","default_branch":null,"files":null,"tree":[],"storefront":"/r/xo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/xo/dbtpl/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}