Skip to content

v0.6.0

Compare
Choose a tag to compare
@tulir tulir released this 16 Jul 08:09
· 76 commits to main since this release
  • (dbutil) Added -- transaction: sqlite-fkey-off mode to upgrades, which allows safer upgrades that disable foreign keys without having to disable transactions entirely.
    • Breaking change: UpgradeTable.Register now takes a TxnMode instead of a bool as the 5th parameter.
    • Breaking change: Database.DoTxn now takes *dbutil.TxnOptions instead of *sql.TxOptions. nil is still allowed and the existing fields are still supported, but there's a new field too.
    • Breaking change: Database.Conn was renamed to Execable to avoid confusion with the new AcquireConn method (Execable just returns the current transaction or database, AcquireConn acquires a connection for exclusive use).
  • (dbutil) Added finalizer for RowIter to panic if the rows aren't iterated.
  • (dbutil) Changed QueryOne to return a zero value (usually nil) if the Scan method returns an error.
  • (progress) Implemented io.Seeker in Reader.
  • (ptr) Added new utilities for creating pointers to arbitrary values, as well as safely dereferencing pointers and making shallow clones.
  • (exslices) Added functions to cast slices to different types.
  • (gnuzip) Added wrappers for gzip that operate on []bytes instead of io.Reader/Writers.
  • (lottie) Added wrapper for lottieconverter similar to ffmpeg.
  • (variationselector) Fixed edge cases where Add and FullyQualify produced invalid output.