Skip to main content

sql-gen

Generate SQL queries from natural language

소스 정보

저장소
lxgicstudios/ai-sql
최근 소스 활동
2026년 8월 21일 07:06
감지된 SKILL.md 언어
영어
스타
2
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
sql-gen
description
Generate SQL queries from natural language
# SQL Generator Describe what you want, get the SQL. Works with any database. ## Quick Start ```bash npx ai-sql "get all users who signed up this month and made a purchase" ``` ## What It Does - Converts English to SQL - Handles complex JOINs - Adds proper WHERE clauses - Optimizes for performance ## Usage Examples ```bash # Generate query npx ai-sql "top 10 products by revenue last quarter" # With schema context npx ai-sql "users without orders" --schema ./schema.sql # Specific dialect npx ai-sql "monthly active users" --dialect postgres ``` ## Dialects Supported - PostgreSQL - MySQL - SQLite - SQL Server - Oracle ## Output Example ```sql SELECT u.id, u.email, COUNT(o.id) as order_count FROM users u LEFT JOIN orders o ON u.id = o.user_id WHERE u.created_at >= DATE_TRUNC('month', CURRENT_DATE) GROUP BY u.id, u.email HAVING COUNT(o.id) > 0; ``` ## Requirements Node.js 18+. OPENAI_API_KEY required. ## License MIT. Free forever. --- **Built by LXGIC Studios** - GitHub: [github.com/lxgicstudios/ai-sql](https://github.com/lxgicstudios/ai-sql) - Twitter: [@lxgicstudios](https://x.com/lxgicstudios)
GitHub에서 보기