Tags: coregx/relica
Tags
Release v0.10.0
- Add BatchInsert/BatchUpdate/Upsert direct shortcuts on DB
- 1500+ test cases, 88%+ coverage (enterprise-grade test suite)
- Remove all Builder() and Select("*") from documentation
- Fix extractTableName(), all golangci-lint issues
- Switch from Git Flow to GitHub Flow
v0.9.1: AI Agent Documentation - Add AGENTS.md for AI coding agents (Model() API, Expression API patterns) - Add llms.txt for LLM documentation index - Update README.md with AI agent guidance and PREFERRED/AVOID labels - Update CHANGELOG.md and ROADMAP.md - Update guides with AGENTS.md links
Release v0.9.0: NullStringMap, Composite PK, Functional Expressions New Features: - TASK-016: NullStringMap for dynamic scanning - TASK-017: Query.Prepare()/Close() manual control - Composite Primary Key support (db:"column,pk") - TASK-100: Functional Expressions (CASE, COALESCE, NULLIF, etc.) Quality: 650+ tests, 86% coverage, 0 linter issues
v0.8.0: ozzo-dbx API parity
Features:
- Named placeholders {:name} with Bind(Params{})
- Quoting syntax {{table}} and [[column]]
- Row() / Column() scalar query helpers
- Transactional() auto commit/rollback
- Distinct() SELECT DISTINCT support
- AndWhere() / OrWhere() dynamic WHERE building
Release v0.6.0: Struct Operations Type-safe struct operations for improved developer experience. Features: - InsertStruct, BatchInsertStruct, UpdateStruct (explicit table name) - Model() API with auto table/PK detection - TableName() interface support - Primary key auto-detection (db:"id" or ID field) - Field control with Exclude() - Full transaction and context support Metrics: - 48 tests (27 integration + 21 unit) - 86% test coverage - 0 linter issues - Zero breaking changes Implementation time: 8.5 hours (within 8-11 hour estimate) Related tasks: - TASK-006: Phase 1 (InsertStruct/UpdateStruct) - TASK-007: Phase 2 (Model API) Documentation: - Updated GETTING_STARTED.md with struct operations guide - Removed version references from all public docs (timeless) - Updated CHANGELOG.md, README.md, ROADMAP.md Full changelog: https://github.com/coregx/relica/blob/main/CHANGELOG.md#060---2025-11-24
Release v0.5.0 - Enterprise-Ready Database Query Builder Major Features: - Enterprise Security (SQL injection prevention, audit logging) - Query Optimizer (4-phase optimization, database-specific hints) - Query Analyzer (EXPLAIN integration for 3 databases) - SQL Logging & OpenTelemetry Tracing - Performance Monitoring (health checks, cache warming) - Comprehensive Documentation (10,000+ lines) Statistics: - 326+ tests, 93.3% coverage - Zero production dependencies - 5 major features, 32 commits - Production-ready See CHANGELOG.md for detailed release notes.
Release v0.4.1-beta
Relica v0.4.1-beta - API Convenience Methods
Features:
- Convenience methods for common CRUD operations (Select, Insert, Update, Delete)
- Shorter API: db.Select() instead of db.Builder().Select()
- Available on both DB and Tx types
- 100% backward compatible (Builder() continues to work)
- Zero performance overhead (compiler inlines wrapper methods)
Quality:
- 326 tests passing (up from 310)
- 93.3% test coverage (up from 92.9%)
- 16 new comprehensive tests for convenience methods
- golangci-lint: 0 issues
- All integration tests passing (PostgreSQL, MySQL, SQLite)
API Examples:
```go
// Before (v0.4.0) - still works
db.Builder().Select("*").From("users").All(&users)
// After (v0.4.1) - shorter!
db.Select("*").From("users").All(&users)
// Advanced features - use Builder()
db.Builder().With("stats", cte).Select("*").From("stats").All(&results)
```
Backward Compatibility:
- All v0.4.0 code continues to work without changes
- Builder() method unchanged
- No breaking changes
See CHANGELOG.md for complete details.
Release v0.4.0-beta: Wrapper Types Migration Major architectural improvement for better pkg.go.dev documentation. Key Changes: - Migrated from type aliases to wrapper types (81 methods) - Comprehensive godoc with examples - docs/MIGRATION_GUIDE.md for v0.3.0 → v0.4.0 upgrade - Fixed critical bug: SELECT "*" quoting - Test coverage: 92.9% (improved from 89.9%) - Zero performance overhead (0ns wrapper calls) Impact: - 95% of user code requires ZERO changes - pkg.go.dev now shows all methods with examples - WrapDB() fully compatible Breaking Changes: See docs/MIGRATION_GUIDE.md
PreviousNext