Skip to main content

AI SQL generator — Turn natural language into SQL queries. Supports MySQL, PostgreSQL, SQLite.

Project description

AI SQL

自然语言转 SQL — 支持中文/英文,直连数据库执行

安装

pip install ai-sql

使用

# 生成 SQL
ai-sql "查询最近7天的订单"

# 指定数据库方言
ai-sql -d postgres "每个用户的订单总额"

# 提供 Schema
ai-sql -s "users(id,name),orders(id,user_id,amount,created_at)" \
  "上个月订单最多的10个用户"

# 带解释
ai-sql -e "统计各城市用户分布"

# 配置 LLM API
ai-sql --config

定价

功能 免费版 Pro 买断 $7 USDT
SQL 生成 ✅ 1次/天 ✅ 无限
安全检查
数据库直连
Schema 自动检测
SQL 执行

付款: USDT (ERC20) — 0xafc32581a9e4ea30aa03cb8ef5879c2366d35f46

打款后运行 ai-sql claim <交易哈希> 自动激活。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_sqlx-0.1.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file ai_sqlx-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ai_sqlx-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for ai_sqlx-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 12078e9abf7720e407c8dacf46f8afbdbfd82a6430e7ab70673b24880b9b788a
MD5 78e469a8c85e6e30f76803a45f4b6427
BLAKE2b-256 f0993da0febb1a125bae2ac5067e1ee503afb51005915d910d8cdd0afc643bd3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page