Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 1.51 KB

File metadata and controls

50 lines (31 loc) · 1.51 KB

@lxgicstudios/ai-sql

npm version npm downloads License: MIT GitHub stars TypeScript

AI-powered natural language to SQL converter. Just describe what you want.

Convert natural language to SQL queries. Just describe what you want.

Install

npm install -g @lxgicstudios/ai-sql

Usage

npx @lxgicstudios/ai-sql "find users who signed up last week"
npx @lxgicstudios/ai-sql "top 10 products by revenue" -d mysql
npx @lxgicstudios/ai-sql "monthly active users trend" -s "users(id,email,created_at,last_login)"

Options

  • -d, --dialect <dialect> - SQL dialect (default: PostgreSQL)
  • -s, --schema <schema> - Table schema for context

Setup

export OPENAI_API_KEY=sk-...

License

MIT


Built by LXGIC Studios

🔗 GitHub · Twitter

💡 Want more free tools like this? We have 100+ on our GitHub: github.com/lxgicstudios