18 Repos
Tools for embedding conditional logic and variables into SQL queries at runtime.
Distinct from SQL Logic Validators: Distinct from SQL Logic Validators: focuses on the generation and injection of dynamic SQL rather than verifying query correctness.
Explore 18 awesome GitHub repositories matching data & databases · Dynamic SQL Generators. Refine with filters or upvote what's useful.
graphql-engine is an automated GraphQL API engine that transforms database tables and relationships into a queryable GraphQL schema. It functions as a federation gateway and mapper, instantly generating APIs with built-in filtering, pagination, and mutations from existing databases and remote schemas. The project distinguishes itself through a fine-grained access control layer that enforces row-level and field-level permissions. It further provides a real-time data subscription server that converts standard queries into live streams and a system for triggering event-driven webhooks and notifi
Maps GraphQL ASTs and permission filters directly into optimized SQL statements at runtime.
Kysely is a TypeScript SQL query builder that provides a type-safe interface for constructing and executing database queries. It functions as a database layer that ensures schema compliance and prevents runtime errors by using a fluent interface and a programmable way to build complex SQL statements. The project features a type-safe database layer capable of inferring return types and aliases from SQL selections and joins. It also includes a SQL migration manager to track and apply schema changes across different environments to keep database versions synchronized. The toolkit covers relatio
Builds SQL statements at runtime based on variable inputs while maintaining type safety.
dbt-core is a command-line framework for transforming data within a warehouse using modular SQL and version control. It functions as a data transformation engine that enables users to define data structures and business logic through declarative configuration files, which the system then compiles into executable code. By managing complex data dependencies through a directed acyclic graph, it ensures that transformation tasks execute in the correct order while maintaining a manifest-driven state to track lineage and execution history. The project distinguishes itself through an adapter-based d
Embeds conditional statements, loops, and variable references within SQL queries to generate complex, reusable data transformation logic.
PostGraphile is an automated tool that converts a PostgreSQL database schema into a fully functional GraphQL API. It serves as a GraphQL execution engine and schema orchestrator, utilizing database schema introspection to retrieve strongly typed metadata directly from PostgreSQL. The project features a modular system for composing and standardizing GraphQL schemas through plugins, which manage naming conventions and connections. It includes a PostgreSQL query builder that constructs dynamic, SQL-injection-proof queries using tagged template literals. The system employs a declarative query pl
Builds dynamic, SQL-injection-proof database queries using tagged template literals to handle complex data requirements.
Mybatis-PageHelper is a pagination plugin and persistence framework extension for MyBatis. It functions as a physical pagination engine that automatically appends limit and offset clauses to SQL queries to retrieve specific record subsets from a data source. The project optimizes data retrieval by modifying SQL statements at runtime to reduce memory overhead. It implements database pagination and data set windowing to manage the retrieval of paginated data within Java applications. The system utilizes a MyBatis interceptor chain for dynamic SQL rewriting and employs database dialects to ensu
Dynamically rewrites SQL statements to append limit and offset clauses based on pagination parameters.
Datasette is a tool for publishing and sharing SQLite databases as public websites. It functions as a data publishing system that provides searchable interfaces and JSON APIs to expose the contents of SQLite files. The project enables both server-side and client-side execution. It can operate as an API server or as a database browser that runs entirely within a web browser using WebAssembly, allowing for serverless database access. The system supports a variety of deployment strategies, including containerized images for cloud hosting and a local development server for testing. It includes c
Translates user interface interactions into structured SQL queries to fetch and filter database content.
Sea-ORM is an asynchronous SQL object-relational mapper and database toolkit for mapping relational tables to strongly typed objects. It provides a relational database mapper for performing CRUD operations across MySQL, PostgreSQL, and SQLite, and includes a programmatic dynamic query builder for constructing complex SQL statements. The project distinguishes itself by providing a GraphQL schema generator that transforms database entities into typed schemas with built-in pagination and filters. It also features a dedicated database migration tool for defining and applying versioned schema chan
Constructs SQL queries programmatically at runtime using a fluent API instead of static raw strings.
sqlglot is a SQL parser and transpiler that represents queries as abstract syntax trees to enable structural analysis, modification, and semantic transformation. It functions as a dialect translator and query optimizer, converting SQL code between different database engines and simplifying syntax trees through rule-based normalization. The project provides a framework for defining custom SQL dialects by overriding tokenizers, parsers, and generators. It includes a lineage analyzer to track data flow from source tables through complex queries to identify the origin of specific columns. Additi
Provides a Python API for programmatically building and modifying dynamic SQL queries.
Soar is a suite of specialized tools designed for analyzing MySQL performance, advising on indexing, and optimizing SQL syntax. It functions as a performance analyzer, index advisor, and query optimizer to identify bottlenecks and suggest structural improvements for faster execution. The project distinguishes itself through a system for rewriting SQL statements into optimized equivalent versions using custom heuristic rules and patterns. It also features a dedicated index advisor that evaluates query patterns and database metadata to recommend the creation of new indexes. Its broader capabil
Transforms complex SQL queries into optimized equivalent versions using custom heuristic rules.
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
Computes database schemas dynamically by injecting variables into SQL files using templates.
Squirrel is a Go database library and SQL query builder that provides a programmatic interface for constructing and executing SQL statements. It enables the creation of queries using a fluent interface to avoid manual string concatenation. The library functions as a SQL dialect generator, producing queries formatted for specific database engines by adjusting placeholders and syntax to match target requirements. This allows for the generation of SQL compatible with multiple different database environments. Beyond query construction, the project covers the execution of generated statements aga
Generates dynamic SQL statements programmatically to avoid syntax errors and manual concatenation.
This project provides a SQL interface for Elasticsearch, serving as a translator and database layer that allows users to retrieve, filter, and manipulate indices using structured query language. It functions by converting standard SQL statements into the native JSON query language used by the search engine. The system includes a geospatial SQL engine for executing location-based searches and distance calculations. It also features a query debugger used to visualize the translation process from SQL to search engine request bodies to verify the logic and accuracy of data retrieval. The capabil
Programmatically builds search engine request bodies at runtime based on parsed SQL expressions.
jOOQ is a type-safe SQL query builder for Java that generates code from live database schemas, enabling compile-time validation of SQL syntax and data types. Its core identity is built around a fluent DSL that mirrors SQL structure, a code generator that maps tables, views, and routines to Java objects, and a multi-dialect engine that translates the same DSL into vendor-specific SQL for over 30 databases. The project also includes a SQL parser and transformer for refactoring or dialect conversion, reactive stream integration for non-blocking query execution, and a JDBC proxy diagnostics tool f
Assembles SQL statements programmatically from independent expression objects to compose queries at runtime with type safety.
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.
Creates complex database filter conditions using functional logic to generate flexible search results without writing static query classes.
Davinci ist eine Business-Intelligence- und Datenvisualisierungsplattform, die für den Aufbau interaktiver Dashboards und Berichte verwendet wird. Sie fungiert als SQL-basierter Dashboard-Builder und Multi-Tenant-Analytics-Dienst, der über JDBC und CSV-Dateien mit Datenbanken verbunden wird, um Rohdaten in visuelle Komponenten zu transformieren. Die Plattform zeichnet sich durch ihr granulares Sicherheitsmodell aus, das Zeilen- und Spalten-basierte Berechtigungen umfasst, die in LDAP- und OAuth2-Authentifizierung integriert sind. Sie bietet zudem ein eingebettetes Visualisierungstool, das es ermöglicht, sichere, parametrisierte Diagramme und Dashboards über URLs und Frames in externe Anwendungen einzubinden. Das System deckt ein breites Spektrum an Funktionen ab, einschließlich Datenmodellierung mit SQL-Vorlagen, einer Drag-and-Drop-Layout-Engine für responsive Dashboards und einer Vielzahl von Visualisierungstypen wie Sankey-Diagrammen, Radar-Charts und geografischen Karten. Zudem umfasst es Automatisierungen für die Planung E-Mail-basierter Berichte und nutzt Key-Value-Caching zur Optimierung der Abfrageleistung.
Generates dynamic SQL by embedding conditional logic and session variables into database templates at runtime.
Dieses Projekt ist eine gespiegelte Version des Quellcodes des MyBatis-Persistenz-Frameworks, präsentiert als Java-Datenbankintegrationsbibliothek und SQL-Mapper-Framework. Der Hauptzweck besteht darin, eine Codebasis mit detaillierten chinesischsprachigen Annotationen bereitzustellen, um das Studium der internen Architektur und der Design-Patterns des Frameworks zu erleichtern. Das Repository konzentriert sich auf die Analyse von Java-Quellcode und das Erlernen des Frameworks. Es ermöglicht Benutzern, die zugrunde liegende Implementierung der Bibliothek zu untersuchen, um zu verstehen, wie komplexe Softwarekomponenten strukturiert und ausgeführt werden. Die abgedeckte Kernfunktionalität umfasst relationales Datenbank-Mapping, bei dem Datenbankdatensätze in Anwendungsobjekte konvertiert werden. Dies wird durch eine Kombination aus XML-basierter Mapping-Konfiguration und annotationsgesteuertem Query-Mapping erreicht. Die Funktionen des Frameworks umfassen zudem dynamische SQL-Generierung, cachebasiertes Ergebnismanagement sowie die Verwendung von Reflection und dynamischen Proxys, um Datenbankergebnisse auf Java-Objekte abzubilden.
Constructs database queries at runtime by evaluating conditional logic and parameters within mapping templates.
FreeSql is a .NET object-relational mapper and data access layer that translates object-oriented code into SQL for multiple relational database providers. It functions as a fluent SQL query builder and database schema synchronizer, allowing developers to align database table and index structures with entity class definitions. The framework is specifically optimized for .NET Native AOT to ensure reduced memory footprints and faster startup times. It includes a database traffic manager to distribute load through read-write splitting, dynamic table sharding, and tenant-based data isolation. Bro
Intercepts and modifies generated SQL strings at runtime to handle custom type conversions.
Ebean ist ein Java-Object-Relational-Mapping-Framework, das darauf ausgelegt ist, die Datenbankpersistenz durch automatisierte Abfragegenerierung, Schemamigration und Transaktionsverwaltung zu vereinfachen. Es verwendet metadatengesteuertes Mapping und Bytecode-Enhancement, um die Lücke zwischen Anwendungsobjekten und relationalen Datenbanktabellen zu schließen, und bietet eine persistente Schicht, die komplexe Dateninteraktionen handhabt und gleichzeitig die Konsistenz über Unit-of-Work-Grenzen hinweg aufrechterhält. Das Framework zeichnet sich durch seinen Fokus auf Entwicklerproduktivität und Leistungsoptimierung aus. Es bietet typsichere Abfrage-Builder, die Code zur Kompilierzeit generieren, was IDE-Autovervollständigung und statische Validierung von Datenbankoperationen ermöglicht. Zudem enthält es integrierte Unterstützung für Container-basiertes Testen, wodurch Entwickler ephemere Datenbankinstanzen verwalten und die Schema-Initialisierung direkt innerhalb ihrer Test-Suites automatisieren können. Über das Kern-Mapping hinaus bietet das Projekt eine umfassende Suite an Tools für Datenverwaltung und Observability. Dies beinhaltet automatisierte Schema-Evolution, Read-Replica-Routing für Verbindungsmanagement und mehrstufiges Caching zur Reduzierung der Datenbanklast. Es bietet zudem Diagnosefunktionen wie die Erfassung von Abfrageausführungsplänen und verteiltes Tracing, um bei der Leistungsoptimierung zu unterstützen. Die Bibliothek unterstützt moderne Deployment-Workflows, einschließlich Ahead-of-Time-Kompilierung für native Images, um den Overhead durch Laufzeit-Reflektion zu eliminieren. Sie wird als Standard-Java-Bibliothek vertrieben, wobei Dokumentation und Tools zur Unterstützung der Integration in bestehende Build-Prozesse verfügbar sind.
Constructs optimized database queries at runtime by inspecting object graphs and applying necessary filters.