✨ New Features
- Generated model fields for
DECIMAL/NUMERICcolumns now usegithub.com/shopspring/decimal(issue).⚠️ - SQLite generator mapping for
INTEGERandREALcolumns; they are now generated as 64-bit Go types (issue).⚠️ - Added
qrm.GlobalConfig.StrictFieldMappingto detect destination struct fields that are not mapped by query result columns (issue). - Added
qrm:"optional"support for fields that should be ignored by strict field mapping. - Added support for scanning JSON columns into
json.RawMessage. - Exposed
Serializerin dialect packages, allowing custom expression arguments to be assembled dynamically before callingCustomExpression(issue).
🐛 Bug Fixes
- Fixed
IS_NOT_NULL()serialization so generated SQL is parenthesized correctly (issue). - Fixed random CockroachDB comments appearing in generated model and SQL builder files (issue).
- Fixed
SELECT_JSONhandling so multiple returnedNULLrows now produce an error. - Fixed escaping for MySQL
SELECT_JSONobject keys. - Fixed
stmtcache.Tx.QueryContextto forward the provided context. - Fixed strict scan validation so it runs only on the first row.
🧰 Maintenance
- Simplified internal expression and literal serialization code (PR)
- Split integration tests into a separate Go module.
- Split examples into a separate Go module.
- Removed
pgtypefrom the main module dependency graph (issue).
⚠️ Breaking Changes
- Potentially breaking changes are marked with ⚠️ because they change generated
model field types for some column types. If the previous behavior is
preferred, users can restore it by customizing the generator.