| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Write complex SQL step-by-step in natural language — then compile it into auditable, production-ready SQL.
AI-assisted. Compiler-guaranteed. No black boxes.
MIT License for examples • SQLazy application is proprietary
Writing analytical SQL is hard.
Reviewing AI-generated SQL is even harder.
Modern AI can produce SQL that runs — but you never know whether you can trust it.
When queries become deeply nested with window functions and subqueries, they become:
SQLazy turns SQL development into a step-by-step workflow you can actually understand and audit.
Instead of generating one giant SQL statement, SQLazy lets you:
The final SQL is generated by a compiler, not an LLM.
That means:
AI helps you write the steps, not the final SQL.
You review the logic first.
Then the compiler gives you the trustworthy the SQL.
Result: AI productivity + compiler reliability.
Even the most complex analytics queries become simple building blocks:
No more nested SQL nightmares.
Debugging complex SQL is painful.
You usually can't inspect intermediate results.
SQLazy provides step-by-step execution so you can see:
Exactly like debugging code.
Write your logic once.
Generate SQL for multiple databases.
No more rewriting queries for different SQL dialects.
LLMs help you:
But you stay in control of the logic.
Instead of writing one large SQL statement, the logic is expressed as a step-by-step workflow.
Each step represents a single transformation.
| Variable | Anchor | Statement |
|---|---|---|
| t1 | stock | filter CODE = 100046 |
| t2 | sort DT asc | |
| t3 | segment CL down as NoRisingDays | |
| t4 | summarize DT count as ContinuousDays group NoRisingDays | |
| summarize ContinuousDays max as max_ContinuousDays |
This workflow is easy to read and easy to review.
Each step does only one simple thing.
WITH t2 AS (
SELECT
CODE,
DT,
CL
FROM
stock
WHERE
CODE = 100046
)
SELECT
MAX(ContinuousDays) AS max_ContinuousDays
FROM
(
SELECT
NoRisingDays,
COUNT(DT) AS ContinuousDays
FROM
(
SELECT
CODE,
DT,
CL,
SUM(
CASE
WHEN CL < col__3 THEN 1
ELSE 0
END
) OVER (
ORDER BY
DT ASC
) + 1 AS NoRisingDays
FROM
(
SELECT
t2. *,
LAG(CL) OVER (
ORDER BY
DT ASC
) AS col__3
FROM
t2
) sub__4
) t3
GROUP BY
NoRisingDays
) t4This SQL is:
But the SQLazy workflow is easy to read, review, and audit.
🌐 Try the Web App: https://sqlazy.com
Best for daily work and large datasets.
Features:
| Feature | Web App (sqlazy.com) | Desktop IDE |
|---|---|---|
| Natural language → SQL | ✅ Full SQL generation capabilities | ✅ Full SQL generation + native SPL generation |
| AI assistance & planning | ✅ Usage-limited (hosted LLM) | ✅ Bring your own LLM key, no usage limits, customizable prompts |
| Step-by-step debugging | ✅ Limited dataset size | ✅ Powered by esProc engine, supports large datasets |
| Data stays in your environment | ❌ Runs in the cloud | ✅ Supports private/on-prem deployment (commercial license) |
| Interface & language support | English UI and terminology | Full English + Chinese UI and terminology |
| Database dialect support | Same core compiler | Same core compiler |
| Availability | Free | Free for personal & team online use; commercial license for private/on-prem deployment |
| Version control | Always up-to-date in the cloud | Free edition auto-updates; commercial edition supports version locking |
We collected real SQL problems from the Internet and solved them step-by-step with SQLazy. These examples show how complex analytical queries can be expressed as clear, auditable workflows.
Explore the examples by real analytics scenarios:
Detect continuous patterns in time-series data – one of the hardest problems to solve with standard SQL.
👉 https://github.com/SPLWare/sqlazy/tree/master/examples/consecutive-trends
Split event streams into logical sessions and generate sequence numbers based on time gaps or state changes.
👉 https://github.com/SPLWare/sqlazy/tree/master/examples/event-sequencing
Dynamic grouping based on data values and running status – eliminates complex SUM(CASE WHEN ...) OVER (...) patterns.
👉 https://github.com/SPLWare/sqlazy/tree/master/examples/conditional-grouping
Rolling window calculations and interval aggregations with automatic missing value backfilling.
👉 https://github.com/SPLWare/sqlazy/tree/master/examples/time-window-analytics
Prepare messy datasets for reporting and analytics with simple, readable steps.
👉 https://github.com/SPLWare/sqlazy/tree/master/examples/data-cleaning
Add, modify or inject rows into grouped results without complex union operations.
👉 https://github.com/SPLWare/sqlazy/tree/master/examples/group-enhancement
Reshape data for BI tools and reports – no more dynamic SQL or stored procedures.
👉 https://github.com/SPLWare/sqlazy/tree/master/examples/dynamic-reporting
Real-world trading and finance SQL problems that analysts deal with daily.
👉 https://github.com/SPLWare/sqlazy/tree/master/examples/financial-analysis
Sessionization and event tracking patterns for user behavior analysis.
👉 https://github.com/SPLWare/sqlazy/tree/master/examples/behavioral-analytics
Complex summarization patterns that require stateful calculations across rows.
👉 https://github.com/SPLWare/sqlazy/tree/master/examples/advanced-aggregation
Typical AI SQL tools generate the final SQL directly.
SQLazy takes a different approach:
| Typical AI SQL tools | SQLazy |
|---|---|
| Generate final SQL | Generate step-by-step workflow |
| Hard to review | Easy to review |
| Hard to debug | Step debugging |
| May hallucinate SQL | Final SQL generated by compiler |
AI helps you write the logic. The compiler produces the trusted SQL.
Basic SQL knowledge is helpful, but SQLazy reduces the need to:
You focus on logic, not syntax.
Yes.
SQLazy provides step-by-step debugging in both the Web App and Desktop IDE.
You can execute each step and inspect intermediate results.
This makes it useful not only for development, but also for:
Many users use SQLazy as an interactive SQL learning environment.
SQLazy is a development tool, not a runtime engine.
The output of SQLazy is plain native SQL.
You simply:
No integration or deployment is required.
No runtime engine is required.
SQLazy uses the esProc SPL engine internally for step debugging only,
so it can simulate execution and support multiple SQL dialects.
From the user's perspective, SQLazy only produces portable SQL text.
SQLazy focuses primarily on readability and correctness of generated SQL.
The compiler performs basic logical optimizations, such as:
Advanced performance optimization is expected to be handled by the database query optimizer.
SQLazy is a query development and design tool.
For debugging:
Large-scale execution performance depends on the target database.
SQLazy already supports complex analytical scenarios, including:
Recursive queries are not yet supported but are on the roadmap.
For extremely complex scenarios, the Desktop IDE can also generate SPL code as an alternative.
Yes.
The Desktop IDE can run fully offline and does not upload user data.
The free edition requires an online license check at startup.
The commercial edition works completely offline.
Yes. These features are currently in development.
Planned capabilities include:
These features are planned for upcoming releases.
This repository contains documentation, example code, and AI‑oriented SKILLs that are open‑source and distributed under the MIT License. You are free to use, modify, and distribute these materials in accordance with the MIT terms.
The actual software product — including the web‑based https://sqlazy.com and the downloadable IDE installation package — is not open‑source. All rights to the product are reserved by the author(s).
The https://sqlazy.com is completely free to use and requires no login or registration of any kind.
The IDE installation packages are also free to use, but subject to certain conditions. Please refer to the README (section on installation packages) for full details.
No source code for the product is provided, and redistribution, reverse engineering, or commercial exploitation of the product binaries or hosted service is prohibited unless explicitly permitted in writing.
By using this repository, you agree that the open‑source MIT terms apply only to the documentation, examples, and SKILLs, and not to the product itself.
SQLazy is built on top of the esProc SPL engine:
https://github.com/SPLWare/esProc
| Back | FazBrowse Home | New Git URL |