Releases: volatiletech/sqlboiler
Releases · volatiletech/sqlboiler
v4.17.1
Fixed
- Update the version constant to prevent inaccurate warnings about the version mismatch
Full Changelog: v4.17.0...v4.17.1
v4.17.0
Changes
Added
- Add MySQL unix socket support (thanks @c9s)
- Implement (Un-)marshalText for Decimal and NullDecimal (thanks @MJacred)
- Add version checking flags to make sure CLI and project runtime versions are the same (thanks @090809)
- Add SIMILAR TO method for Postgres (thanks @090809)
- Skip code generation for replaced enum types using the flag
--skip-replaced-enum-types
(thanks @MJacred)
Fixed
- Fix compilation errors with TIMESTAMP columns in sqlite3 driver (thanks @hirasawayuki)
- Fix issue scanning
column_full_type
whencolumn_type
is NULL (thanks @mattdbush) - Fix performance issue with
DeleteAll
by using aWHERE IN
instead ofWHERE OR
(thanks @jakeiotechsys) - Use renamed created column in
Update
method (thanks @glerchundi) - Fix comment position in first column of table (thanks @hizzuu)
- Count from subquery if query uses HAVING or GROUP BY. This is because aggregate functions are run for each group separately, but we need to return the count of returned rows. (thanks @renom)
- Fix output filenames that contain a forward slash or backslash. Replace with an underscore (thanks @MJacred)
New Contributors
- @hirasawayuki made their first contribution in #1364
- @mattdbush made their first contribution in #1365
- @jakeiotechsys made their first contribution in #1376
- @hizzuu made their first contribution in #1390
- @renom made their first contribution in #1398
Full Changelog: v4.16.2...v4.17.0
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)