Commit 12138dc
docs: Move WEB CTE temp tables test to examples with ABS demo
Moved integration test to examples/ and enhanced with ABS function demonstration.
Example now shows:
1. Fetch data from Flask API into temp table
2. Basic statistics (COUNT, MIN, MAX, SUM)
3. GROUP BY with aggregations
4. Computed columns with ABS() function
5. ORDER BY using computed column alias
Key features demonstrated:
- WEB CTE with temp table creation (INTO clause)
- Dependency-aware execution with --execute-statement
- ABS() function for absolute values
- ORDER BY with column alias (workaround for expression limitation)
Usage:
# Run all statements
./target/release/sql-cli -f examples/cte_flask_dependency.sql
# Run specific statement with dependencies
./target/release/sql-cli -f examples/cte_flask_dependency.sql --execute-statement 4
# In Neovim: \sq (all) or \sx (statement at cursor)
Note: ORDER BY doesn't support expressions directly, but you can use
computed column aliases: SELECT expr as alias ... ORDER BY alias
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent bba73e2 commit 12138dc
1 file changed
Lines changed: 6 additions & 4 deletions
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | | - | |
56 | | - | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
0 commit comments