Skip to content

Commit a78d9a1

Browse files
Ajit Pratap SinghAjit Pratap Singh
authored andcommitted
Merge main into feat/stdin-stdout-pipeline-issue-65
Resolved dependency conflicts in go.mod and go.sum: - Kept newer golang.org/x/sys v0.38.0 (was v0.13.0 in main) - Kept golang.org/x/term v0.37.0 (required for stdin/stdout pipeline) - Added fsnotify v1.9.0 from watch mode feature - Reorganized dependencies after go mod tidy All tests passing after merge.
2 parents 315a4ae + 7393560 commit a78d9a1

5 files changed

Lines changed: 433 additions & 2 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@ gosqlx analyze "SELECT COUNT(*) FROM orders GROUP BY status"
119119

120120
# Parse SQL to AST representation
121121
gosqlx parse -f json complex_query.sql
122+
123+
# Unix Pipeline Support (NEW in v1.5.0)
124+
cat query.sql | gosqlx format # Format from stdin
125+
echo "SELECT * FROM users" | gosqlx validate # Validate from pipe
126+
gosqlx format query.sql | gosqlx validate # Chain commands
127+
cat *.sql | gosqlx format | tee formatted.sql # Pipeline composition
122128
```
123129

124130
**Pipeline/Stdin Support** (New in v1.6.0):

0 commit comments

Comments
 (0)