4 Repos
Automating the creation of application structures and functions from standard SQL queries.
Distinct from SQL Query Interfaces: Existing candidates focus on query building or migrations, not the full workflow of generating application code from SQL
Explore 4 awesome GitHub repositories matching data & databases · SQL-to-Code Workflows. Refine with filters or upvote what's useful.
sqlc is a SQL compiler and code generator that creates type-safe database client code from raw SQL queries. It transforms SQL statements into typed definitions and functions, eliminating the need for manual row mapping between database results and application structures. The tool ensures compile-time safety by validating SQL queries against the database schema before the application is run. This workflow integrates the database schema directly into the application code, deriving types from the underlying SQL definitions to prevent runtime errors. The system utilizes AST-based query analysis
Automates the process of turning raw SQL queries into corresponding typed functions and structures.
SQLDelight is a Kotlin database library that validates SQL schema, statements, and migrations at compile time, generating type-safe Kotlin query functions from labeled SQL files. It treats SQL as the source of truth for database definitions, catching schema errors during the build process before they reach production. The library supports multiple database dialects including SQLite, MySQL, PostgreSQL, HSQL, and H2, and generates platform-specific code for Android, iOS, JVM, and JavaScript targets. It provides a platform-specific driver abstraction that handles database connectivity difference
Compiles SQL schema and queries into type-safe Kotlin code at build time.
MyBatis Generator ist ein Tool, das Datenbanktabellen inspiziert, um automatisch Modellobjekte, Mapper-Schnittstellen und SQL-Konfigurationsdateien zu erstellen. Es fungiert als Datenbank-Schema-Mapper und CRUD-Operations-Generator, der relationale Datenbankspalten in sprachspezifische Klassen und Datensätze übersetzt. Das Projekt ist ein erweiterbarer Codegenerator, der die Anpassung von Ausgabedateien durch einen Plugin-Mechanismus ermöglicht. Dieses Framework erlaubt das Hinzufügen spezifischer Geschäftslogik oder die Modifikation des Generierungsprozesses, um maßgeschneiderte Ausgabedateien zu erzeugen. Der Generator deckt ein breites Spektrum an Funktionen ab, einschließlich der Implementierung dynamischer Abfragen, der Erstellung unveränderlicher Modelle und der Automatisierung von Standard-Create-, Read-, Update- und Delete-Operationen. Er unterstützt Datenbank-Schema-Mapping mit virtuellen Primärschlüsseln und kann Code für mehrere Sprachen generieren, einschließlich Kotlin. Der Generierungsprozess kann über CLI-Tools, direkte Funktionsaufrufe oder als Build-Tool-Plugin, das in CI-Pipelines integriert ist, ausgeführt werden.
Produces idiomatic Kotlin data classes and access code for database structures.
Dieses Projekt ist ein Datenbank-Toolkit für Go, das Schema-zu-Objekt-Mapping, flüssige Abfragekonstruktion (Fluent Query Construction) und automatisierte Codegenerierung bietet. Es fungiert als Framework für typsicheren Datenbankzugriff und ermöglicht Entwicklern die Interaktion mit relationalen Datenbanken durch die Generierung von Modellen und Interfaces direkt aus bestehenden Datenbankschemata. Das Toolkit zeichnet sich durch einen Workflow aus, der handgeschriebene SQL-Dateien parst, um typsichere Funktionen zu generieren, was die Integration von benutzerdefiniertem SQL bei gleichzeitiger Beibehaltung konsistenter Ergebnis-Mappings ermöglicht. Es unterstützt modulare Anpassungen durch eine Plugin-basierte Architektur und nutzt SQL-Kommentar-basierte Metadaten, um die Struktur des generierten Codes zu steuern. Zudem vereinfacht es die Entwicklung durch die automatische Generierung von Testdaten-Factories, um das Setup von Unit- und Integrationstests zu optimieren. Über die Kern-Generierung hinaus bietet das Toolkit eine umfassende Suite zur Verwaltung des gesamten Lebenszyklus von Datenbankinteraktionen. Dies umfasst flüssiges Query-Building über mehrere Dialekte hinweg, automatisierte Parameter-Sanitisierung zur Vermeidung von SQL-Injection und relationales Mapping, das flache Abfrageergebnisse in verschachtelte Objektstrukturen transformiert. Es bietet zudem Lifecycle-Hooks zur Ausführung benutzerdefinierter Logik während Datenbankoperationen und unterstützt inkrementelle Integration, was eine teilweise Einführung ermöglicht, ohne eine vollständige Systemmigration zu erfordern.
Parses hand-written SQL files to generate type-safe functions and automated test suites.