7 रिपॉजिटरी
Overriding default code generation templates and injecting vendor extensions to tailor output.
Distinct from Code Generators: Distinct from Code Generators: focuses on customizing the generation process via templates and extensions, not just generating code from definitions.
Explore 7 awesome GitHub repositories matching data & databases · Template-Based Code Customizers. 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
Uses custom templates and template data to control the structure and behavior of generated mocks.
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 is a static analysis tool and boilerplate generator for Go that automatically creates structured test suites from source code. It functions as a table-driven test framework that handles type resolution for functions and methods, including the mapping of generic type constraints to concrete implementation types. The tool integrates with large language models to synthesize realistic input values and edge cases based on function logic. It uses a template-driven generation system, allowing the structure and format of the resulting test code to be customized through external templates and
Provides mechanisms to modify the structure and format of generated test code using custom templates.
xo SQL डेटाबेस स्कीमा और क्वेरीज़ से टाइप-सेफ Go मॉडल और क्वेरी निष्पादन कोड उत्पन्न करने के लिए एक टूल है। यह PostgreSQL, MySQL, SQLite, Oracle और Microsoft SQL Server का समर्थन करने वाला एक मल्टी-डायलेक्ट SQL टूल है जो मुहावरेदार (idiomatic) सोर्स कोड तैयार करता है। यह प्रोजेक्ट एक टेम्पलेट-आधारित निर्माण सिस्टम का उपयोग करता है, जो उत्पन्न डेटाबेस सोर्स कोड की संरचना और लॉजिक को अनुकूलन योग्य टेक्स्ट टेम्प्लेट के माध्यम से परिभाषित करने की अनुमति देता है। इसमें एक डेटाबेस स्कीमा विज़ुअलाइज़र भी शामिल है जो विज़ुअल आरेख और संरचित डॉक्यूमेंटेशन बनाने के लिए तालिका संबंधों और परिभाषाओं का विश्लेषण करता है। टूल की क्षमताएं स्वचालित SQL कोड निर्माण और विशेष डेटाबेस मॉडल के निर्माण को कवर करती हैं। यह कस्टम SQL क्वेरीज़ को Go फ़ंक्शंस में मैप करने और डेटाबेस माइग्रेशन का डॉक्यूमेंटेशन करने के लिए स्कीमा स्क्रिप्ट उत्पन्न करने के लिए यूटिलिटीज प्रदान करता है।
Supports the use of text templates to modify the structure and logic of generated code.
dbtpl एक डेटाबेस मॉडल जनरेटर और स्कीमा इंट्रोस्पेक्टर है जो SQL डेटाबेस स्कीमा से टाइप-सेफ सोर्स कोड और डेटा मॉडल तैयार करता है। यह एक कमांड लाइन टूल के रूप में कार्य करता है जो SQL प्रकारों को Go स्ट्रक्ट्स और निष्पादन कार्यों में मैप करता है, जबकि कस्टम सोर्स कोड और स्कीमा परिभाषाएं बनाने के लिए एक टेम्पलेट-आधारित सिस्टम प्रदान करता है। यह टूल PostgreSQL, MySQL, SQLite, Oracle और SQL Server सहित कई डेटाबेस इंजनों का समर्थन करता है। यह उपयोगकर्ताओं को टेक्स्ट टेम्प्लेट के माध्यम से कस्टम आउटपुट प्रारूपों को परिभाषित करने और Django वेब फ्रेमवर्क के लिए संगत मॉडल परिभाषाएं उत्पन्न करने की क्षमता देकर खुद को अलग करता है। इसकी क्षमताएं डेटाबेस माइग्रेशन और मिररिंग के लिए SQL स्क्रिप्ट तैयार करने, साथ ही JSON या YAML प्रारूपों में स्कीमा प्रतिनिधित्व निर्यात करने तक फैली हुई हैं। इसके अतिरिक्त, यह डेटाबेस संबंधों और संरचनात्मक आरेखों को विज़ुअलाइज़ करने के लिए डॉट फ़ाइलें उत्पन्न कर सकता है।
The tool allows defining custom output formats by authoring or modifying base templates to match specific organizational requirements.
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.