1.2.0
Version 1.2.0 adds a sqlitex.Pool.Take
method and improves error messages.
Added
sqlitex.Pool
has a new methodTake
which returns anerror
along with aConn
(#83).sqlite.ErrorOffset
is a new function that returns the SQL byte offset that an error references.
Changed
sqlite.Conn.Prep
,sqlite.Conn.Prepare
, andsqlite.Conn.PrepareTransient
now 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.Get
method has been deprecated in favor of the newTake
method.
Fixed
- Error messages no longer duplicate information from their error code (reported in #84).