Skip to main content

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

Project description

AI SQL

Turn natural language into SQL queries. Supports MySQL, PostgreSQL, and SQLite.

Installation

pip install ai-sqlx

Usage

# Generate SQL from natural language
ai-sqlx "find users who registered in the last 7 days"

# Specify database dialect
ai-sqlx -d postgres "total orders per customer"

# With schema context
ai-sqlx -s "products(id,name,price,stock)" "items with low inventory"

# Explain the generated SQL
ai-sqlx -e "count products by category"

Configuration

ai-sqlx --config

Requires OpenAI API key.

Pricing

Feature Free Pro ($7 USDT)
SQL generation 1/day Unlimited
Schema context
Dialect support
SQL explanation

Payment: USDT (ERC20) — 0xafc32581a9e4ea30aa03cb8ef5879c2366d35f46

License

MIT

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.2-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ai_sqlx-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.7 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2c9e679e694794dc574f7f573fbe988c06336b7fa2067f8f8fab8b744b7683c2
MD5 2ea6f97825d6a17e381b9c5de718a379
BLAKE2b-256 072fd15efe50f199281346be68584f303f37de69b75377100b10b03d6980a749

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