awesome-repositories.com
Blog
MCP
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
xo avatar

xo/dbtpl

0
View on GitHub↗
3,892 stars·334 forks·Go·MIT·4 vues

Dbtpl

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.

L'outil prend en charge plusieurs moteurs de base de données, notamment PostgreSQL, MySQL, SQLite, Oracle et SQL Server. Il se distingue en permettant aux utilisateurs de définir des formats de sortie personnalisés via des templates texte et la capacité de générer des définitions de modèles compatibles pour le framework web Django.

Ses capacités s'étendent à la production de scripts SQL pour la migration et la mise en miroir de bases de données, ainsi qu'à l'exportation de représentations de schéma aux formats JSON ou YAML. De plus, il peut générer des fichiers dot pour visualiser les relations de base de données et les diagrammes structurels.

Features

  • Go Code Generators - Automatically generates idiomatic Go source code and type-safe data models from SQL database schemas.
  • Typesafe SQL Code Generators - Generates type-safe Go source code and data models from SQL database schemas and queries.
  • Output Format Definitions - The tool allows defining custom output formats by authoring or modifying base templates to match specific organizational requirements.
  • Database Introspection Tools - Provides utilities for reverse-engineering schema definitions from live databases across multiple SQL dialects.
  • Typesafe Query Generations - Generates type-safe query functions and result models from labeled SQL statements.
  • Database Schema Analyzers - Analyzes database catalogs across multiple SQL dialects to export structural definitions for development.
  • SQL-to-Go Struct Generators - Parses custom SQL queries to automatically create corresponding type-safe Go structs and execution functions.
  • Template-Based Code Generators - Uses dynamic text templates to automate the creation of source code and scripts from schema metadata.
  • Model Generators - Generates language-specific model structures, including Go structs, from database schemas.
  • Source Code Generators - Programmatically generates valid source code files and schema scripts from database representations.
  • Database Accessor Generators - Creates type-safe data models and accessor functions for tables, enums, and stored procedures.
  • Access Layer Templates - Allows defining specific code output formats using text templates to match organizational standards.
  • Django Model Definitions - Produces compatible model definitions for the Django web framework based on database schemas or SQL queries.
  • Platform-Specific Type Mappings - Maps vendor-specific database types into a common internal representation for consistent source code output.
  • Schema Documentation Generators - Produces structured reports, visual diagrams, and JSON/YAML representations of relational database schemas.
  • DDL Script Generators - Produces DDL scripts to recreate or mirror database schemas based on live introspection.
  • Migration Script Generators - Produces SQL migration scripts by introspecting a live database to recreate its schema.
  • SQL Statement Parsing - Parses custom SQL statements to automatically derive the necessary data types and execution functions.
  • Database Relationship Diagrams - Produces dot files that visualize database relationships and structural diagrams using graph visualization tools.
  • Generation Templates - Uses custom text templates to modify the structure, logic, and content of generated files.
  • Database Tools - Listed in the “Database Tools” section of the Awesome Go awesome list.

Historique des stars

Graphique de l'historique des stars pour xo/dbtplGraphique de l'historique des stars pour xo/dbtpl

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Questions fréquentes

Que fait xo/dbtpl ?

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.

Quelles sont les fonctionnalités principales de xo/dbtpl ?

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.

Quelles sont les alternatives open-source à xo/dbtpl ?

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…

Alternatives open source à Dbtpl

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Dbtpl.
  • knq/xoAvatar de knq

    knq/xo

    3,890Voir sur GitHub↗

    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

    Go
    Voir sur GitHub↗3,890
  • pingfangushi/screwAvatar de pingfangushi

    pingfangushi/screw

    3,966Voir sur GitHub↗

    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

    Java
    Voir sur GitHub↗3,966
  • koxudaxi/datamodel-code-generatorAvatar de koxudaxi

    koxudaxi/datamodel-code-generator

    3,943Voir sur GitHub↗

    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

    Pythoncode-generatorcsvdataclass
    Voir sur GitHub↗3,943
  • ariga/atlasAvatar de ariga

    ariga/atlas

    8,096Voir sur GitHub↗

    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

    Go
    Voir sur GitHub↗8,096
  • Voir les 30 alternatives à Dbtpl→