8 repository-uri
Tools that transform definition files like CSV or BSD into source code for data types.
Distinct from Custom Data Type Providers: Specializes custom data type providers by focusing on the automatic generation of C code from definition files.
Explore 8 awesome GitHub repositories matching data & databases · Code Generators. Refine with filters or upvote what's useful.
go-swagger is a toolkit for working with Swagger/OpenAPI 2.0 specifications in Go. It generates server, client, and CLI code from a specification document, and can also produce a specification by scanning annotated Go source code. The project includes a static validation engine that checks documents against the schema and project-specific rules, and a specification transformation pipeline that resolves, flattens, and merges documents. The toolkit generates both client and server code from the same specification, ensuring consistency in request and response handling. It also produces a command
Allows overriding default templates and injecting vendor extensions to customize generated code.
Mockery is a code generation tool that produces mock implementations from Go interfaces, designed to simplify unit testing by automating the creation of test doubles. It parses Go source files using abstract syntax tree analysis to extract interface method signatures, then generates complete mock struct types that implement those interfaces with configurable function fields for test injection. The tool distinguishes itself through its configuration and customization capabilities. Rather than embedding directives in source code annotations, Mockery reads generation settings from a YAML configu
Supplies custom templates and data to shape the structure and behavior of generated mock code.
sqlboiler is a database-first ORM generator for Go that analyzes an existing database schema to produce strongly typed structures and query helpers. It functions as a schema-driven code generator, transforming database tables and relationships into executable Go source code. The project distinguishes itself through a type-safe query builder that uses chainable modifiers to construct SQL statements, eliminating the need for raw string concatenation. It utilizes customizable text templates to generate source code, allowing for the aliasing of schema entities and the creation of custom templates
Allows overriding base templates and applying column filters to control the structure of generated output.
gotests este un instrument de analiză statică și generator de boilerplate pentru Go, care creează automat suite de teste structurate din codul sursă. Funcționează ca un framework de testare bazat pe tabele (table-driven), gestionând rezoluția tipurilor pentru funcții și metode, inclusiv maparea constrângerilor de tipuri generice către tipuri de implementare concrete. Instrumentul se integrează cu modele de limbaj mari (LLM) pentru a sintetiza valori de intrare realiste și cazuri limită (edge cases) bazate pe logica funcției. Utilizează un sistem de generare bazat pe template-uri, permițând personalizarea structurii și formatului codului de test rezultat prin template-uri și parametri externi. Proiectul oferă utilitare CLI pentru scanarea recursivă a pachetelor și procesarea arborelui de directoare. Include mecanisme de control al scope-ului pentru a filtra selecția funcțiilor folosind expresii regulate și modificatori de vizibilitate.
Provides mechanisms to modify the structure and format of generated test code using custom templates.
xo este un instrument pentru generarea de modele Go type-safe și cod de execuție a interogărilor din schemele și interogările bazelor de date SQL. Funcționează ca un instrument SQL multi-dialect care suportă PostgreSQL, MySQL, SQLite, Oracle și Microsoft SQL Server pentru a produce cod sursă idiomatic. Proiectul utilizează un sistem de generare bazat pe template-uri, permițând structurii și logicii codului sursă al bazei de date generate să fie definite prin template-uri text personalizabile. Include, de asemenea, un vizualizator de schemă de bază de date care analizează relațiile și definițiile tabelelor pentru a crea diagrame vizuale și documentație structurată. Capabilitățile instrumentului acoperă generarea automată de cod SQL și crearea de modele de baze de date specializate. Oferă utilitare pentru maparea interogărilor SQL personalizate la funcții Go și generarea de scripturi de schemă pentru a documenta migrarea bazelor de date.
Supports the use of text templates to modify the structure and logic of generated code.
dbtpl este un generator de modele de bază de date și un introspector de schemă care produce cod sursă type-safe și modele de date din schemele bazelor de date SQL. Funcționează ca un instrument de linie de comandă care mapează tipurile SQL la structuri Go și funcții de execuție, oferind în același timp un sistem bazat pe template-uri pentru crearea de cod sursă personalizat și definiții de schemă. Instrumentul suportă mai multe motoare de baze de date, inclusiv PostgreSQL, MySQL, SQLite, Oracle și SQL Server. Se distinge prin faptul că permite utilizatorilor să definească formate de output personalizate prin template-uri text și prin capacitatea de a genera definiții de model compatibile pentru framework-ul web Django. Capabilitățile sale se extind la producerea de scripturi SQL pentru migrarea și oglindirea bazelor de date, precum și la exportul reprezentărilor de schemă în formate JSON sau YAML. În plus, poate genera fișiere dot pentru a vizualiza relațiile dintre bazele de date și diagramele structurale.
The tool allows defining custom output formats by authoring or modifying base templates to match specific organizational requirements.
open62541 is an open-source implementation of the OPC Unified Architecture standard, providing a complete stack for industrial automation and data exchange. It functions as both an OPC UA server and client, enabling the creation of an object-oriented address space to model physical industrial assets and their relationships. The project is designed for versatility across diverse hardware, offering a C99 library that can be deployed to both cloud servers and resource-constrained embedded environments. It distinguishes itself through a pluggable network layer and interface-based security backend
Automatically generates C code for complex data types from CSV and BSD definition files.
TypeScript generator is a build tool that parses backend class structures and REST endpoints in Java to generate corresponding TypeScript types and client services. It functions as both a static type definition generator and a Java REST client generator, translating compiled class properties, collections, and server-side endpoint definitions into equivalent frontend type definitions and client-side service classes. The tool builds an abstract syntax representation from scanned bytecode using reflection and compiles output through configurable module scoping, formatting declarations into globa
Controls how generated code structures outputs into global definitions, ambient modules, or standard files with declarations.