Everything you need to know for effective usage
The connection string looks like this:
postgresql://user:password@host:5432/databaseFind it in your hosting dashboard (Supabase, Neon, Railway, etc.)
Paste the string and click Connect. We'll fetch your database schema.
Write what you want to know in plain language. AI will generate SQL.
From simple to complex
"Show all users"
SELECT * FROM users LIMIT 100"How many orders?"
SELECT COUNT(*) FROM orders"Last 10 products"
SELECT * FROM products ORDER BY created_at DESC LIMIT 10"Active users"
SELECT * FROM users WHERE is_active = true"Orders over 1000"
SELECT * FROM orders WHERE total > 1000"Users with gmail"
SELECT * FROM users WHERE email ILIKE '%@gmail.com'"Orders with customer names"
SELECT o.*, u.name FROM orders o JOIN users u ON o.user_id = u.id"Products never ordered"
SELECT p.* FROM products p LEFT JOIN order_items oi ON p.id = oi.product_id WHERE oi.id IS NULL"Sales by month"
SELECT DATE_TRUNC('month', created_at) as month, SUM(total) FROM orders GROUP BY month"Average order by status"
SELECT status, AVG(total) FROM orders GROUP BY status"Top 5 customers"
SELECT user_id, SUM(total) as spent FROM orders GROUP BY user_id ORDER BY spent DESC LIMIT 5"Orders from last week"
SELECT * FROM orders WHERE created_at > NOW() - INTERVAL '7 days'"Registrations this month"
SELECT * FROM users WHERE created_at >= DATE_TRUNC('month', CURRENT_DATE)Only SELECT queries allowed. INSERT, UPDATE, DELETE are blocked.
Every query is validated before execution. DROP, TRUNCATE, ALTER are impossible.
Enable to prevent data from being sent to AI for summary generation.
Enable so AI sees table_1, col_1 instead of real names.
Deploy with Ollama — data never leaves your server.
Instead of "show data" write "show user names and emails"
AI works better when you mention actual names from the schema
"Top 10 by sales" is better than just "who sold the most"
"last month" or "in 2024" helps AI write the correct filter
postgresql://user:password@host:5432/databasemysql://user:password@host:3306/databaseWe recommend creating a read-only user for maximum security.
For maximum privacy, deploy everything locally:
git clone https://github.com/manikosto/no-sqlcd no-sqldocker-compose upOllama will download the model (~4GB) on first run. After that, all queries are processed locally.