dbtpl est un générateur de modèles de base de données et un introspecteur de schéma qui produit du code source typé et des modèles de données à partir de schémas de base de données SQL. Il fonctionne comme un outil de ligne de commande qui mappe les types SQL aux structs Go et aux fonctions d'exécution, tout en fournissant un système basé sur des templates pour créer du code source et des définitions de schéma personnalisés.
Les fonctionnalités principales de xo/dbtpl sont : Go Code Generators, Typesafe SQL Code Generators, Output Format Definitions, Database Introspection Tools, Typesafe Query Generations, Database Schema Analyzers, SQL-to-Go Struct Generators, Template-Based Code Generators.
Les alternatives open-source à xo/dbtpl incluent : knq/xo — xo is a tool for generating type-safe Go models and query execution code from SQL database schemas and queries. It… pingfangushi/screw — Screw is a database schema analysis tool used to automatically produce technical documentation and Java data objects.… koxudaxi/datamodel-code-generator — This project is a command-line schema-to-code converter designed to transform diverse data specifications into… ariga/atlas — Atlas is a SQL database schema management tool and database infrastructure as code framework. It provides a… sqldelight/sqldelight — SQLDelight is a Kotlin database library that validates SQL schema, statements, and migrations at compile time,… oapi-codegen/oapi-codegen — oapi-codegen is an OpenAPI specification compiler and code generator for Go. It transforms OpenAPI definitions into…
xo is a tool for generating type-safe Go models and query execution code from SQL database schemas and queries. It functions as a multi-dialect SQL tool supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server to produce idiomatic source code. The project uses a template-based generation system, allowing the structure and logic of the generated database source code to be defined through customizable text templates. It also includes a database schema visualizer that analyzes table relationships and definitions to create visual diagrams and structured documentation. The tool's ca
Screw is a database schema analysis tool used to automatically produce technical documentation and Java data objects. It scans database tables to export their definitions, transforming schema metadata into structured reports and application code. The project generates plain Java objects based on existing database table structures to automate data modeling. It also produces database schema documentation in HTML, Word, and Markdown formats. The system includes capabilities for table export filtering using name patterns, JDBC-based schema extraction, and template-based code generation to map da
This project is a command-line schema-to-code converter designed to transform diverse data specifications into type-safe Python data structures. It functions as a generator for Pydantic models, dataclasses, and typed dictionaries, enabling developers to maintain synchronization between evolving data contracts and application code. By parsing formats such as JSON Schema, OpenAPI, AsyncAPI, Protobuf, and Avro, the tool automates the creation of native classes that reflect the constraints and metadata defined in the source specifications. The generator distinguishes itself through a highly confi
Atlas is a SQL database schema management tool and database infrastructure as code framework. It provides a declarative database migration engine that computes the difference between a desired schema state and the current database state to automatically generate the necessary SQL for transitions. The project distinguishes itself through a comprehensive suite of analysis and visualization tools, including a database schema linter that detects destructive changes and data loss risks. It also features a SQL schema visualization tool capable of generating entity-relationship diagrams from extract