Releases: zombiezen/go-sqlite
1.4.2
1.4.1
Version 1.4.1 updates the modernc.org/sqlite version to 1.36.1 and includes a couple small improvements.
Changed
- The minimum
modernc.org/sqliteversion updated to 1.36.1.
Fixed
1.4.0
Version 1.4 adds the sqlitex.ResultBytes function and fixes several bugs.
Added
- New function
sqlitex.ResultBytes. (#86)
Changed
Conn.Closereturns an error if the connection has already been closed (#101).- The minimum
modernc.org/sqliteversion updated to 1.33.1.
Fixed
sqlite3_initializeis now called from any top-level function to prevent race conditions during initialization. (#18).
1.3.0
Version 1.3 is largely a bug-fix release, but is a minor version change because of the new sqlitemigration.Pool.Take method.
Added
sqlitemigration.Poolnow has a new methodTakeso that it implements a common interface withsqlitex.Pool(#97).- Documented
OpenWALbehavior onsqlite.OpenConn.
Fixed
1.2.0
Version 1.2.0 adds a sqlitex.Pool.Take method and improves error messages.
Added
sqlitex.Poolhas a new methodTakewhich returns anerroralong with aConn(#83).sqlite.ErrorOffsetis a new function that returns the SQL byte offset that an error references.
Changed
sqlite.Conn.Prep,sqlite.Conn.Prepare, andsqlite.Conn.PrepareTransientnow include position information in error messages if available.- Many error messages around statement execution changed their format for better readability. Error messages are not stable API and should not be depended on.
Deprecated
- The
sqlitex.Pool.Getmethod has been deprecated in favor of the newTakemethod.
Fixed
- Error messages no longer duplicate information from their error code (reported in #84).
1.1.2
1.1.1
1.1.0
Version 1.1 introduces the ability to prepare connections on sqlitex.Pool, improves performance, and improves documentation.
Added
- Added a
sqlitex.NewPoolfunction with support for aConnPrepareFunc(#65). - Added a documentation example for
SetCollation(#64).
Deprecated
- Deprecated
sqlitex.Openin favor ofsqlitex.NewPool.
Fixed
1.0.0
Version 1.0 is the first officially stable release of zombiezen.com/go/sqlite. It includes improved documentation and is cleaned up for current versions of Go. There are no breaking changes to the API: this release is more a recognition that the API has been stable and a promise that it will continue to be stable.
Added
- Added
*Stmt.ColumnIsNulland*Stmt.IsNullmethods (#55). - Added more documentation to
sqlitefileandsqlitex.
Changed
- Replaced
interface{}withany. This should be a compatible change. - The minimum supported Go version for this library is now Go 1.20.
- The minimum
modernc.org/sqliteversion updated to 1.27.0.
Removed
- Removed the
io.*interface fields onsqlitefile.Bufferandsqlitefile.File. These were unused. - Removed the
zombiezen.com/go/sqlite/fspackage. It existed to help transition around Go 1.16, but is no longer useful.