15 مستودعات
Automated creation of SQL queries based on natural language and schema context.
Distinct from Tabular SQL Querying: None of the candidates focus on the generative aspect of SQL based on natural language context; most focus on execution or debugging.
Explore 15 awesome GitHub repositories matching data & databases · SQL Query Generation. Refine with filters or upvote what's useful.
This project is a SQL database abstraction layer that provides a consistent object-oriented interface for interacting with multiple relational database systems. It includes a driver wrapper to standardize connections and result sets, a fluent query builder for constructing portable SQL statements, and a type mapper for converting database-specific data types into native application types and vice versa. The library enables programmatic schema management through a schema manager that can introspect database metadata, model structures as objects, and generate the SQL required to migrate between
Creates database-specific queries and schema definitions that work across different relational database engines and versions.
Jeesite is a full-stack low-code development framework designed for building enterprise administrative portals using Spring Boot, MyBatis, and Vue. It functions as a comprehensive platform for creating administrative dashboards with integrated role-based access control and organizational data permission systems. The framework distinguishes itself through a combination of automated CRUD code generation and an integrated RAG platform that connects large language models to enterprise data via vector stores. It further incorporates a BPMN-based workflow engine to automate complex business process
Appends custom columns or join tables to automatically generated queries for specialized reporting needs.
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
Generates functions for each labeled SQL statement, returning typed results and accepting typed parameters.
🔥 基于大模型和 RAG 的智能问数系统,对话式数据分析神器。Text-to-SQL Generation via LLMs using RAG.
Enriches query accuracy by retrieving relevant database schema and context before generating SQL with an LLM.
JSqlParser هي مكتبة Java لتحليل استعلامات SQL، تحول سلاسل SQL الخام إلى هيكل منظم من كائنات Java ذات النوع القوي. توفر الوسائل لتحليل ومعالجة استعلامات قاعدة البيانات برمجياً من خلال تمثيلها كشجرة من الكائنات. تدعم المكتبة كلاً من تحليل نص SQL الموجود والإنشاء البرمجي للبيانات الجديدة من خلال واجهة برمجة تطبيقات سلسة. وتتضمن آليات لتحويل أشجار الاستعلام وتسلسل نماذج الكائنات المنظمة مرة أخرى إلى نص SQL منسق. تشمل القدرات الإضافية تحليل مخطط قاعدة البيانات، مثل استخراج أسماء الجداول لتعيين تبعيات البيانات، والتحقق من صحة بناء جملة SQL. المحلل قابل للتكوين للتعامل مع لهجات بناء جملة مختلفة ويتضمن استرداداً متسامحاً مع الأخطاء لمواصلة معالجة النصوص البرمجية بعد مواجهة رموز غير صالحة.
Converts programmatic query definitions into formatted SQL strings compatible with database engines.
Querydsl is a framework for the construction of type-safe queries. It uses a fluent API and annotation-based code generation to create mirror classes from domain models, enabling compile-time validation of database queries and removing the need for manual string concatenation. The project provides a unified query syntax that translates into specific dialects for multiple backends, including SQL, MongoDB, Lucene, and JDO. It supports advanced query capabilities such as common table expressions, window functions, geospatial operations, and complex nested subqueries. Beyond data retrieval, the
Creates type-safe query objects for classes without annotations via package-level configuration.
This project is an Eloquent query builder wrapper and REST API query parser for Laravel applications. It translates HTTP request parameters into database queries to provide dynamic filtering, sorting, and relationship loading for API endpoints. The system decouples the external API interface from the storage layer through alias-based schema abstraction, allowing public field names to map to private database columns. It supports the dynamic inclusion of nested relationships and aggregate counts, as well as the execution of custom programmatic logic for filters and sorting via invokable classes
Translates HTTP request parameters into Eloquent database queries for API filtering, sorting, and including.
Sqlcoder هو نموذج لغوي كبير (LLM) متخصص في تحويل الأسئلة باللغة الطبيعية إلى استعلامات قاعدة بيانات مهيكلة وقابلة للتنفيذ. يعمل كواجهة لقاعدة البيانات ومولد استعلامات يسمح باسترجاع البيانات دون الحاجة إلى كتابة كود يدوي. يستخدم النظام نموذجاً مضبوطاً تعليمياً (instruction-tuned) مدمجاً مع توجيه مدرك للمخطط (schema-aware) وحقن سياق ديناميكي. من خلال استيعاب البيانات الوصفية لقاعدة البيانات واستخدام التعلم في السياق مع أزواج استعلامات الأمثلة، فإنه يولد استعلامات صحيحة نحوياً تطابق المخطط المحدد لقاعدة بيانات متصلة. يغطي المشروع مجموعة أوسع من القدرات بما في ذلك أتمتة ذكاء الأعمال وتحليلات البيانات ذاتية الخدمة. ويوفر بنية تحتية لإدارة اتصالات قاعدة البيانات وواجهة مرئية لتنفيذ الاستعلامات واستيعاب البيانات الوصفية.
Automatically generates structured SQL queries based on database schemas and user intent.
dbtpl هو مولد نماذج قاعدة بيانات ومحلل مخطط ينتج كود مصدر آمن الأنواع ونماذج بيانات من مخططات قاعدة بيانات SQL. يعمل كأداة سطر أوامر تقوم بتعيين أنواع SQL إلى هياكل Go ووظائف التنفيذ، مع توفير نظام قائم على القوالب لإنشاء كود مصدر مخصص وتعريفات مخطط. تدعم الأداة محركات قواعد بيانات متعددة، بما في ذلك PostgreSQL، و MySQL، و SQLite، و Oracle، و SQL Server. تتميز بالسماح للمستخدمين بتحديد تنسيقات مخرجات مخصصة من خلال قوالب نصية والقدرة على توليد تعريفات نماذج متوافقة لإطار عمل الويب Django. تمتد إمكاناتها إلى إنتاج نصوص SQL لترحيل قاعدة البيانات والنسخ المتطابق، بالإضافة إلى تصدير تمثيلات المخطط بتنسيقات JSON أو YAML. بالإضافة إلى ذلك، يمكنها توليد ملفات dot لتصور علاقات قاعدة البيانات والمخططات الهيكلية.
Generates type-safe query functions and result models from labeled SQL statements.
xo هي أداة لتوليد نماذج Go آمنة الأنواع وكود تنفيذ الاستعلام من مخططات واستعلامات قاعدة بيانات SQL. تعمل كأداة SQL متعددة اللهجات تدعم PostgreSQL، و MySQL، و SQLite، و Oracle، و Microsoft SQL Server لإنتاج كود مصدر اصطلاحي. يستخدم المشروع نظام توليد قائماً على القوالب، مما يسمح بتحديد هيكل ومنطق كود مصدر قاعدة البيانات المولد من خلال قوالب نصية قابلة للتخصيص. كما يتضمن مصوراً لمخطط قاعدة البيانات يحلل علاقات الجداول والتعريفات لإنشاء مخططات مرئية وتوثيق منظم. تغطي إمكانات الأداة توليد كود SQL مؤتمت وإنشاء نماذج قاعدة بيانات متخصصة. توفر أدوات لتعيين استعلامات SQL مخصصة لوظائف Go وتوليد نصوص مخطط لتوثيق ترحيلات قاعدة البيانات.
Generates type-safe execution code by parsing custom SQL queries and identifying related database tables.
Langroid is a multi-agent orchestration framework and tool integration suite designed for building complex AI applications. It serves as a multi-modal integration layer that connects diverse local and remote language models with an agentic retrieval-augmented generation system. The project distinguishes itself through a collaborative message-exchange paradigm, allowing specialized agents to delegate tasks hierarchically and coordinate via structured communication. It features an advanced state management system for conversational AI, including the ability to rewind and prune conversation hist
Executes SQL queries to answer user questions using table and column context.
DataHerald is a natural language text-to-SQL interface and data analytics tool that translates English questions into executable database queries using a large language model. It functions as a query generator and connectivity layer capable of retrieving database records and summarizing the results into human-readable explanations. The project features a dedicated business logic layer for defining database constraints and managing verified query pairs to improve translation accuracy. It acts as a multi-warehouse data connector, allowing for the indexing and querying of multiple SQL databases
Automates the creation and execution of structured SQL queries based on human-readable prompts.
DataFlow is an agent-based workflow orchestrator and data pipeline designed to synthesize, clean, and augment large-scale datasets for training large language models. It functions as a synthetic data generator and text curation tool, utilizing an intelligent assistant to assemble modular processing operators into functional pipelines based on user requirements. The project distinguishes itself through a low-code approach, providing a web-based visual interface for designing and monitoring multi-stage execution flows. It features an operator-based registry system that allows for the integratio
Provides automated creation of SQL queries based on database schemas to increase dataset diversity.
Ormar هو نظام تعيين كائني علائقي (ORM) غير متزامن لـ Python يدمج استمرارية قاعدة البيانات مع التحقق من صحة البيانات. يعمل كجسر بين إدارة قاعدة البيانات العلائقية وهياكل بيانات مستوى التطبيق، مما يسمح للمطورين بتعريف مخططات قاعدة البيانات التي تعمل في نفس الوقت كنماذج للتحقق. يتميز المشروع باستخدام فئات التحقق لفرض سلامة المخطط، مما يضمن توافق جميع السجلات المستمرة مع الأنواع والهياكل المحددة. وهو يدعم الارتباطات العلائقية المعقدة، بما في ذلك علاقات واحد إلى متعدد ومتعدد إلى متعدد، ويوفر خطافات دورة حياة قائمة على الأحداث تطلق منطقاً مخصصاً أثناء تغييرات حالة السجل للحفاظ على اتساق البيانات. تغطي المكتبة مجموعة واسعة من قدرات إدارة قواعد البيانات، بما في ذلك تنفيذ الاستعلام غير المحظور وأدوات ترحيل المخطط المؤتمتة. وهي تستخدم منشئ استعلام منخفض المستوى لترجمة طرق الكائنات إلى عمليات قاعدة بيانات منظمة، مع توفير أدوات سطر أوامر لمزامنة إصدارات قاعدة البيانات المادية مع كود التطبيق عبر بيئات مختلفة.
Translates high-level object methods into optimized SQL statements using a low-level query builder.
هذا المشروع عبارة عن مجموعة أدوات قاعدة بيانات لـ Go توفر تعيين المخطط إلى الكائن، وبناء الاستعلام بطلاقة، وتوليد الكود المؤتمت. يعمل كإطار عمل للوصول إلى قاعدة البيانات الآمن للأنواع، مما يمكن المطورين من التفاعل مع قواعد البيانات العلائقية عن طريق توليد النماذج والواجهات مباشرة من مخططات قاعدة البيانات الموجودة. تتميز مجموعة الأدوات بسير عمل يحلل ملفات SQL المكتوبة يدوياً لتوليد وظائف آمنة للأنواع، مما يسمح بدمج SQL مخصص مع الحفاظ على تعيين النتائج المتسق. وهي تدعم التخصيص المعياري من خلال بنية قائمة على المكونات الإضافية وتستخدم بيانات تعريف قائمة على تعليقات SQL للتحكم في بنية الكود الذي تم إنشاؤه. بالإضافة إلى ذلك، فهي تبسط التطوير عن طريق توليد مصانع بيانات الاختبار تلقائياً لتبسيط إعداد اختبارات الوحدة والتكامل. بعيداً عن التوليد الأساسي، توفر مجموعة الأدوات مجموعة شاملة لإدارة دورة الحياة الكاملة لتفاعلات قاعدة البيانات. يشمل ذلك بناء الاستعلام بطلاقة عبر لهجات متعددة، وتعقيم المعلمات المؤتمت لمنع حقن SQL، والتعيين العلائقي الذي يحول نتائج الاستعلام المسطحة إلى هياكل كائنات متداخلة. كما يتميز بخطافات دورة الحياة لتنفيذ منطق مخصص أثناء عمليات قاعدة البيانات ويدعم الدمج التدريجي، مما يسمح بالاعتماد الجزئي دون الحاجة إلى ترحيل نظام كامل.
Analyzes hand-written SQL queries to generate reusable, type-safe functions that handle parameter binding and result mapping automatically.