GoSQLX v1.0.0 - Production Ready ๐
GoSQLX v1.0.0 - Production Ready Release ๐
We're excited to announce the first stable production release of GoSQLX!
๐ฏ Release Highlights
Performance
- 2.2M ops/sec sustained throughput
- 8M tokens/sec processing speed
- 47% faster than v0.9.0
- < 200ns latency for simple queries
- 60-80% memory reduction with intelligent pooling
Production Ready
- โ Zero race conditions detected in extensive testing
- โ 20,000+ concurrent operations validated
- โ 115+ real-world SQL queries tested
- โ Linear scaling to 128+ cores
- โ Thread-safe implementation
โจ Key Features
Core Capabilities
- ๐ Zero-copy tokenization for maximum performance
- ๐พ Object pooling for memory efficiency
- ๐ Full Unicode/UTF-8 support for international SQL
- ๐ง Multi-dialect support: PostgreSQL, MySQL, SQL Server, Oracle, SQLite
- ๐ AST generation from SQL tokens
- ๐ฏ Position tracking with line/column information
New in v1.0.0
- MySQL backtick identifier support
- Enhanced error reporting
- Comprehensive test suite
- Production validation suite
- Performance benchmarking tools
- Real-world SQL compatibility testing
๐ฆ Installation
go get github.com/ajitpratap0/[email protected]๐ Quick Start
package main
import (
"fmt"
"log"
"github.com/ajitpratap0/GoSQLX/pkg/sql/tokenizer"
"github.com/ajitpratap0/GoSQLX/pkg/sql/parser"
)
func main() {
// Get tokenizer from pool
tkz := tokenizer.GetTokenizer()
defer tokenizer.PutTokenizer(tkz)
// Tokenize SQL
sql := "SELECT id, name FROM users WHERE age > 18"
tokens, err := tkz.Tokenize([]byte(sql))
if err != nil {
log.Fatal(err)
}
fmt.Printf("Generated %d tokens\n", len(tokens))
}๐ Performance Benchmarks
BenchmarkTokenizer/SimpleSQL-16 965,466 1,238 ns/op 1,585 B/op 20 allocs/op
BenchmarkParser/SimpleSelect-16 6,330,259 185 ns/op 536 B/op 9 allocs/op
BenchmarkThroughput-16 3,144,678 381 ns/op 2.2M ops/sec
BenchmarkTokensPerSecond-16 733,141 1,619 ns/op 8.0M tokens/sec
๐งช Quality Metrics
| Metric | Value |
|---|---|
| Race Conditions | 0 detected |
| Test Coverage | 95%+ |
| Real-world SQL | 115+ queries |
| International Support | 8 languages |
| Memory Efficiency | 60-80% reduction |
๐ Documentation
๐ ๏ธ Example Tools
This release includes example command-line tools:
- sql-validator: Validate SQL syntax across dialects
- sql-formatter: Format SQL queries
๐ Acknowledgments
Thanks to all contributors and the Go community for making this release possible!
๐ Changelog
See CHANGELOG.md for detailed changes.
๐ฎ What's Next
- v1.0.1: Performance monitoring package (PR #7)
- v1.1.0: Streaming parser for large files
- v1.2.0: Query optimization hints
Full Changelog: v0.9.0...v1.0.0
What's Changed
- Updating module to work with actual path by @SunnysideAaron in #5
New Contributors
- @SunnysideAaron made their first contribution in #5
Full Changelog: https://github.com/ajitpratap0/GoSQLX/commits/v1.0.0