Releases: volatiletech/sqlboiler
Releases · volatiletech/sqlboiler
v4.16.2
Fixed
- Replace
rand.seed
method to support golang 1.20 (thanks @pbr0ck3r) - Fix issue with invalid template generation on ignored struct tags (thanks @090809)
New Contributors
- @pbr0ck3r made their first contribution in #1343
- @090809 made their first contribution in #1344
- @0daryo made their first contribution in #1350
Full Changelog: v4.16.1...v4.16.2
v4.16.1
Fixed
- Fix an issue caused in the last release where column names were double quoted (thanks @eirikbell)
New Contributors
- @eirikbell made their first contribution in #1342
Full Changelog: v4.16.0...v4.16.1
v4.16.0
Added
- Add
Ordinal
function to enum types (thanks @EmiPhil) - Add ability to extend upsert expression with options (thanks @atzedus)
- Add support for different case style for different struct tags (thanks @c9s)
Changed
- Improve loads by using maps for deduplication (thanks @nicowolf91)
- Return all columns not in both insert and update columns when doing upsert (thanks @adsa95)
Fixed
- Composite foreign keys are now ignored to prevent generating invalid code (thanks @paulo-raca)
- Ignore cross-schema foreign keys to prevent invalid code gen (thanks @caleblloyd)
- Fix data race when registring hooks (thanks @nejtr0n)
- Fix types.JSON.MarshalJSON to handle nil values (thanks @agis)
- Properly quote column names in psql upsert (thanks @Flo4604)
- Use aliased field name for
LastInsertID
(thanks @motemen) - Fix panic with nil pointers in structs to bind (thanks @stephenafamo)
- Use
sync.Map
for unique columns to prevent concurrent write and read (thanks @Maxibond)
New Contributors
- @paulo-raca made their first contribution in #1299
- @nejtr0n made their first contribution in #1300
- @EmiPhil made their first contribution in #1305
- @caleblloyd made their first contribution in #1313
- @atzedus made their first contribution in #1316
- @Maxibond made their first contribution in #1327
- @motemen made their first contribution in #1328
- @nicowolf91 made their first contribution in #1337
- @Flo4604 made their first contribution in #1322
- @c9s made their first contribution in #1336
- @adsa95 made their first contribution in #1306
Full Changelog: v4.15.0...v4.16.0
v4.15.0
Added
- Add LIKE and ILIKE Operators (thanks @jerrysalonen)
- Allow defining foreign key relationships in config file (thanks @chrisngyn)
Fixed
- Fix missing types import on non nullable char column in postgres driver (thanks @Ebbele)
- Fix struct len check for columns whitelist and blacklist in sqlite driver (thanks @oscar-refacton)
- Properly clean name before title casing (thanks @MJacred)
- Fix parsing pgeo point in scientific notation format (thanks @zhongduo)
- Downgrade decimal version before decompose interface (thanks @zhongduo)
- Fix UPSERT query to respect conflict_target in postgres driver (thanks @agis)
- Fix column type conversion in SQLite3 driver, specifically, columns with types such as
FLOAT(2, 1)
orTYNYINT(1)
(thanks @Jumpaku)
See CHANGELOG.md for details.
v4.14.2...v4.15.0
v4.14.2
- Fix qm.WithDeleted helper with a custom soft delete column (thanks @lopezator)
- Skipping empty values from the update list (thanks @bvigar)
See CHANGELOG.md for details.
v4.14.1
- Fix composite key handling in sqlite3 driver (thanks @vortura).
- Use correct executor for relationship test when no-context is true.
See CHANGELOG.md for details.
v4.14.0
See CHANGELOG.md for details.
- Allow calling struct.Exists() without having to pass on PK fields (thanks @MJacred)
- Stop using deprecated methods from io/ioutil (thanks @stefafafan)
- Fixed correct hooks when loading relationships to-one (thanks @parnic)
v4.13.0
See CHANGELOG.md for details.
- Generate IN/NIN whereHelpers for nullable types (thanks @fdegiuli)
- Fixed concurrent map writes in psql driver (thanks @pavel-krush)
- Force title case for enum null prefix (thanks @optiman)
v4.12.0
See CHANGELOG.md for details.
- Fetch column and table info in parallel (thanks @pavel-krush)
- Generate IN/NIN methods for enum type query helpers (thanks @optiman)
- Improve
psql
performance by isolating uniqueness query (thanks @peterldowns) - Support for
psql
materialized view (thanks @severedsea) - Support loading model relationships when binding to a struct with an embedded model (thanks @optiman)
v4.11.0
See CHANGELOG.md for details.