Release notes v1.4.0
๐ฆ Version 1.4.0 โ Complete SQL Builder Suite¶
Released: 2025-05-22
โจ Highlights¶
- ๐ง Fully integrated builder suite:
SelectBuilder
InsertBuilder
UpdateBuilder
DeleteBuilder
UpsertBuilder
- โ
Semantic-aware
NewCondition(...)
with operator, type, and placeholder resolution - ๐ก Dialect-safe rendering with support for PostgreSQL, generic (
?
,$1
, etc.) - ๐ Full stage validation using
AddStageError(...)
- ๐งช 100% test coverage across all builders and helpers
๐ Features¶
- New
ParamBinder
with offset-aware placeholder generation - Dialect interface includes
SupportsReturning()
check - Condition inference: parses
status = active
,id IN ?
,BETWEEN ? AND ?
- Field alias rejection in INSERT and UPSERT for correctness
๐งฉ Dialect-Aware Logic¶
InsertBuilder
andUpsertBuilder
align on internal placeholder bindingUpsertBuilder
supportsON CONFLICT DO UPDATE
andDO NOTHING
RETURNING
clause only enabled ifdialect.SupportsReturning()
returnstrue
โ Test Coverage¶
100% test coverage in:
select.go
,insert.go
,update.go
,delete.go
,upsert.go
condition_helpers.go
,condition_renderer.go
,param_binder.go
๐ Tag¶
v1.4.0