2017-05-29 22:34:02 +08:00
|
|
|
# Version 0.12.0 (2017-05-29)
|
|
|
|
|
|
|
|
* Defines HAVE\_USLEEP when building with a bundled SQLite (#263).
|
|
|
|
* Updates dependencies to their latest versions, particularly serde to 1.0.
|
|
|
|
* Adds support for vcpkg on Windows.
|
|
|
|
* Adds `ToSql` impls for `str` and `[u8]`.
|
|
|
|
|
2017-04-07 02:10:32 +08:00
|
|
|
# Version 0.11.0 (2017-04-06)
|
2017-04-06 01:04:52 +08:00
|
|
|
|
|
|
|
* Avoid publicly exporting SQLite constants multiple times from libsqlite3-sys.
|
2017-04-06 00:52:37 +08:00
|
|
|
* Adds `FromSql` and `ToSql` impls for `isize`. Documents why `usize` and `u64` are not included.
|
2017-04-06 01:04:52 +08:00
|
|
|
|
2017-03-04 04:39:00 +08:00
|
|
|
# Version 0.10.1 (2017-03-03)
|
2017-03-04 02:07:27 +08:00
|
|
|
|
|
|
|
* Updates the `bundled` SQLite version to 3.17.0.
|
2017-03-04 04:39:00 +08:00
|
|
|
* Changes the build process to no longer require `bindgen`. This should improve
|
|
|
|
build times and no longer require a new-ish Clang. See the README for more
|
|
|
|
details.
|
2017-03-04 02:07:27 +08:00
|
|
|
|
2017-02-28 22:34:28 +08:00
|
|
|
# Version 0.10.0 (2017-02-28)
|
2017-02-07 08:59:49 +08:00
|
|
|
|
|
|
|
* Re-export the `ErrorCode` enum from `libsqlite3-sys`.
|
2017-02-10 09:12:24 +08:00
|
|
|
* Adds `version()` and `version_number()` functions for querying the version of SQLite in use.
|
|
|
|
* Adds the `limits` feature, exposing `limit()` and `set_limit()` methods on `Connection`.
|
|
|
|
* Updates to `libsqlite3-sys` 0.7.0, which runs rust-bindgen at build-time instead of assuming the
|
|
|
|
precense of all expected SQLite constants and functions.
|
|
|
|
* Clarifies supported SQLite versions. Running with SQLite older than 3.6.8 now panics, and
|
|
|
|
some features will not compile unless a sufficiently-recent SQLite version is used. See
|
|
|
|
the README for requirements of particular features.
|
2017-02-10 09:56:35 +08:00
|
|
|
* When running with SQLite 3.6.x, rusqlite attempts to perform SQLite initialization. If it fails,
|
|
|
|
rusqlite will panic since it cannot ensure the threading mode for SQLite. This check can by
|
|
|
|
skipped by calling the unsafe function `rusqlite::bypass_sqlite_initialization()`. This is
|
|
|
|
technically a breaking change but is unlikely to affect anyone in practice, since prior to this
|
|
|
|
version the check that rusqlite was using would cause a segfault if linked against a SQLite
|
|
|
|
older than 3.7.0.
|
|
|
|
* rusqlite now performs a one-time check (prior to the first connection attempt) that the runtime
|
|
|
|
SQLite version is at least as new as the SQLite version found at buildtime. This check can by
|
|
|
|
skipped by calling the unsafe function `rusqlite::bypass_sqlite_version_check()`.
|
2017-02-17 00:17:24 +08:00
|
|
|
* Removes the `libc` dependency in favor of using `std::os::raw`
|
2017-02-07 08:59:49 +08:00
|
|
|
|
2017-01-27 11:03:34 +08:00
|
|
|
# Version 0.9.5 (2017-01-26)
|
|
|
|
|
|
|
|
* Add impls of `Clone`, `Debug`, and `PartialEq` to `ToSqlOutput`.
|
|
|
|
|
2017-01-26 07:01:03 +08:00
|
|
|
# Version 0.9.4 (2017-01-25)
|
|
|
|
|
|
|
|
* Update dependencies.
|
|
|
|
|
2017-01-24 08:42:50 +08:00
|
|
|
# Version 0.9.3 (2017-01-23)
|
|
|
|
|
|
|
|
* Make `ToSqlOutput` itself implement `ToSql`.
|
|
|
|
|
2017-01-23 08:59:13 +08:00
|
|
|
# Version 0.9.2 (2017-01-22)
|
|
|
|
|
|
|
|
* Bugfix: The `FromSql` impl for `i32` now returns an error instead of
|
|
|
|
truncating if the underlying SQLite value is out of `i32`'s range.
|
|
|
|
* Added `FromSql` and `ToSql` impls for `i8`, `i16`, `u8`, `u16`, and `u32`.
|
|
|
|
`i32` and `i64` already had impls. `u64` is omitted because their range
|
|
|
|
cannot be represented by `i64`, which is the type we use to communicate with
|
|
|
|
SQLite.
|
|
|
|
|
2017-01-21 04:27:54 +08:00
|
|
|
# Version 0.9.1 (2017-01-20)
|
2017-01-04 09:00:29 +08:00
|
|
|
|
|
|
|
* BREAKING CHANGE: `Connection::close()` now returns a `Result<(), (Connection, Error)>` instead
|
|
|
|
of a `Result<(), Error>` so callers get the still-open connection back on failure.
|
|
|
|
|
2016-12-31 14:25:44 +08:00
|
|
|
# Version 0.8.0 (2016-12-31)
|
2016-05-25 08:16:13 +08:00
|
|
|
|
|
|
|
* BREAKING CHANGE: The `FromSql` trait has been redesigned. It now requires a single, safe
|
|
|
|
method instead of the previous definition which required implementing one or two unsafe
|
|
|
|
methods.
|
2016-05-26 12:16:07 +08:00
|
|
|
* BREAKING CHANGE: The `ToSql` trait has been redesigned. It can now be implemented without
|
|
|
|
`unsafe`, and implementors can choose to return either borrowed or owned results.
|
2016-12-31 12:48:24 +08:00
|
|
|
* BREAKING CHANGE: The closure passed to `query_row`, `query_row_and_then`, `query_row_safe`,
|
|
|
|
and `query_row_named` now expects a `&Row` instead of a `Row`. The vast majority of calls
|
|
|
|
to these functions will probably not need to change; see
|
|
|
|
https://github.com/jgallagher/rusqlite/pull/184.
|
2016-12-31 13:39:19 +08:00
|
|
|
* BREAKING CHANGE: A few cases of the `Error` enum have sprouted additional information
|
|
|
|
(e.g., `FromSqlConversionFailure` now also includes the column index and the type returned
|
|
|
|
by SQLite).
|
2016-05-30 08:39:27 +08:00
|
|
|
* Added `#[deprecated(since = "...", note = "...")]` flags (new in Rust 1.9 for libraries) to
|
|
|
|
all deprecated APIs.
|
2016-12-31 13:04:23 +08:00
|
|
|
* Added `query_row` convenience function to `Statement`.
|
2016-12-31 14:05:54 +08:00
|
|
|
* Added `bundled` feature which will build SQLite from source instead of attempting to link
|
|
|
|
against a SQLite that already exists on the system.
|
2016-12-31 12:58:12 +08:00
|
|
|
* Fixed a bug where using cached prepared statements resulted in attempting to close a connection
|
|
|
|
failing with `DatabaseBusy`; see https://github.com/jgallagher/rusqlite/issues/186.
|
2016-05-25 08:16:13 +08:00
|
|
|
|
2016-06-02 09:06:56 +08:00
|
|
|
# Version 0.7.3 (2016-06-01)
|
|
|
|
|
|
|
|
* Fixes an incorrect failure from the `insert()` convenience function when back-to-back inserts to
|
|
|
|
different tables both returned the same row ID
|
|
|
|
([#171](https://github.com/jgallagher/rusqlite/issues/171)).
|
2016-05-25 08:16:13 +08:00
|
|
|
|
2016-05-20 09:38:17 +08:00
|
|
|
# Version 0.7.2 (2016-05-19)
|
2016-01-08 00:14:05 +08:00
|
|
|
|
2016-05-19 11:03:46 +08:00
|
|
|
* BREAKING CHANGE: `Rows` no longer implements `Iterator`. It still has a `next()` method, but
|
|
|
|
the lifetime of the returned `Row` is now tied to the lifetime of the vending `Rows` object.
|
|
|
|
This behavior is more correct. Previously there were runtime checks to prevent misuse, but
|
|
|
|
other changes in this release to reset statements as soon as possible introduced yet another
|
|
|
|
hazard related to the lack of these lifetime connections. We were already recommending the
|
|
|
|
use of `query_map` and `query_and_then` over raw `query`; both of theose still return handles
|
|
|
|
that implement `Iterator`.
|
2016-05-20 03:06:56 +08:00
|
|
|
* BREAKING CHANGE: `Transaction::savepoint()` now returns a `Savepoint` instead of another
|
|
|
|
`Transaction`. Unlike `Transaction`, `Savepoint`s can be rolled back while keeping the current
|
|
|
|
savepoint active.
|
2016-05-18 09:22:34 +08:00
|
|
|
* BREAKING CHANGE: Creating transactions from a `Connection` or savepoints from a `Transaction`
|
|
|
|
now take `&mut self` instead of `&self` to correctly represent that transactions within a
|
|
|
|
connection are inherently nested. While a transaction is alive, the parent connection or
|
|
|
|
transaction is unusable, so `Transaction` now implements `Deref<Target=Connection>`, giving
|
|
|
|
access to `Connection`'s methods via the `Transaction` itself.
|
2016-05-19 05:40:38 +08:00
|
|
|
* BREAKING CHANGE: `Transaction::set_commit` and `Transaction::set_rollback` have been replaced
|
|
|
|
by `Transaction::set_drop_behavior`.
|
2016-05-18 04:47:07 +08:00
|
|
|
* Adds `Connection::prepare_cached`. `Connection` now keeps an internal cache of any statements
|
|
|
|
prepared via this method. The size of this cache defaults to 16 (`prepare_cached` will always
|
|
|
|
work but may re-prepare statements if more are prepared than the cache holds), and can be
|
|
|
|
controlled via `Connection::set_prepared_statement_cache_capacity`.
|
2016-05-19 03:15:56 +08:00
|
|
|
* Adds `query_map_named` and `query_and_then_named` to `Statement`.
|
2016-05-17 00:19:38 +08:00
|
|
|
* Adds `insert` convenience method to `Statement` which returns the row ID of an inserted row.
|
|
|
|
* Adds `exists` convenience method returning whether a query finds one or more rows.
|
2016-05-16 11:52:09 +08:00
|
|
|
* Adds support for serializing types from the `serde_json` crate. Requires the `serde_json` feature.
|
2016-05-16 11:39:18 +08:00
|
|
|
* Adds support for serializing types from the `chrono` crate. Requires the `chrono` feature.
|
2016-03-30 04:37:22 +08:00
|
|
|
* Removes `load_extension` feature from `libsqlite3-sys`. `load_extension` is still available
|
|
|
|
on rusqlite itself.
|
2016-03-30 04:15:41 +08:00
|
|
|
* Fixes crash on nightly Rust when using the `trace` feature.
|
2016-03-30 04:14:02 +08:00
|
|
|
* Adds optional `clippy` feature and addresses issues it found.
|
2016-01-08 00:14:05 +08:00
|
|
|
* Adds `column_count()` method to `Statement` and `Row`.
|
|
|
|
* Adds `types::Value` for dynamic column types.
|
2016-01-08 01:40:23 +08:00
|
|
|
* Adds support for user-defined aggregate functions (behind the existing `functions` Cargo feature).
|
2016-01-08 00:14:05 +08:00
|
|
|
* Introduces a `RowIndex` trait allowing columns to be fetched via index (as before) or name (new).
|
2016-02-02 03:18:12 +08:00
|
|
|
* Introduces `ZeroBlob` type under the `blob` module/feature exposing SQLite's zeroblob API.
|
|
|
|
* Adds CI testing for Windows via AppVeyor.
|
|
|
|
* Fixes a warning building libsqlite3-sys under Rust 1.6.
|
2016-02-02 04:23:05 +08:00
|
|
|
* Adds an unsafe `handle()` method to `Connection`. Please file an issue if you actually use it.
|
2016-01-08 00:14:05 +08:00
|
|
|
|
2015-12-17 13:16:30 +08:00
|
|
|
# Version 0.6.0 (2015-12-17)
|
2015-12-09 13:19:59 +08:00
|
|
|
|
2015-12-17 12:46:39 +08:00
|
|
|
* BREAKING CHANGE: `SqliteError` is now an enum instead of a struct. Previously, we were (ab)using
|
|
|
|
the error code and message to send back both underlying SQLite errors and errors that occurred
|
|
|
|
at the Rust level. Now those have been separated out; SQLite errors are returned as
|
|
|
|
`SqliteFailure` cases (which still include the error code but also include a Rust-friendlier
|
|
|
|
enum as well), and rusqlite-level errors are captured in other cases. Because of this change,
|
|
|
|
`SqliteError` no longer implements `PartialEq`.
|
2015-12-17 12:33:56 +08:00
|
|
|
* BREAKING CHANGE: When opening a new detection, rusqlite now detects if SQLite was compiled or
|
|
|
|
configured for single-threaded use only; if it was, connection attempts will fail. If this
|
|
|
|
affects you, please open an issue.
|
2015-12-13 03:22:50 +08:00
|
|
|
* BREAKING CHANGE: `SqliteTransactionDeferred`, `SqliteTransactionImmediate`, and
|
|
|
|
`SqliteTransactionExclusive` are no longer exported. Instead, use
|
|
|
|
`TransactionBehavior::Deferred`, `TransactionBehavior::Immediate`, and
|
|
|
|
`TransactionBehavior::Exclusive`.
|
2015-12-13 03:06:03 +08:00
|
|
|
* Removed `Sqlite` prefix on many types:
|
|
|
|
* `SqliteConnection` is now `Connection`
|
|
|
|
* `SqliteError` is now `Error`
|
|
|
|
* `SqliteResult` is now `Result`
|
2015-12-13 03:08:04 +08:00
|
|
|
* `SqliteStatement` is now `Statement`
|
2015-12-13 03:09:37 +08:00
|
|
|
* `SqliteRows` is now `Rows`
|
2015-12-13 03:11:24 +08:00
|
|
|
* `SqliteRow` is now `Row`
|
2015-12-13 03:13:29 +08:00
|
|
|
* `SqliteOpenFlags` is now `OpenFlags`
|
2015-12-13 03:17:43 +08:00
|
|
|
* `SqliteTransaction` is now `Transaction`.
|
|
|
|
* `SqliteTransactionBehavior` is now `TransactionBehavior`.
|
2015-12-13 03:20:11 +08:00
|
|
|
* `SqliteLoadExtensionGuard` is now `LoadExtensionGuard`.
|
2015-12-13 03:17:43 +08:00
|
|
|
The old, prefixed names are still exported but are deprecated.
|
2015-12-11 09:51:16 +08:00
|
|
|
* Adds a variety of `..._named` methods for executing queries using named placeholder parameters.
|
2015-12-09 13:19:59 +08:00
|
|
|
* Adds `backup` feature that exposes SQLite's online backup API.
|
2015-12-15 05:24:11 +08:00
|
|
|
* Adds `blob` feature that exposes SQLite's Incremental I/O for BLOB API.
|
2015-12-12 05:28:46 +08:00
|
|
|
* Adds `functions` feature that allows user-defined scalar functions to be added to
|
|
|
|
open `SqliteConnection`s.
|
2015-12-09 13:19:59 +08:00
|
|
|
|
2015-12-09 10:30:19 +08:00
|
|
|
# Version 0.5.0 (2015-12-08)
|
2015-12-01 23:55:01 +08:00
|
|
|
|
2015-12-01 23:37:01 +08:00
|
|
|
* Adds `trace` feature that allows the use of SQLite's logging, tracing, and profiling hooks.
|
2015-12-01 23:55:01 +08:00
|
|
|
* Slight change to the closure types passed to `query_map` and `query_and_then`:
|
|
|
|
* Remove the `'static` requirement on the closure's output type.
|
|
|
|
* Give the closure a `&SqliteRow` instead of a `SqliteRow`.
|
2015-12-02 00:33:48 +08:00
|
|
|
* When building, the environment variable `SQLITE3_LIB_DIR` now takes precedence over pkg-config.
|
|
|
|
* If `pkg-config` is not available, we will try to find `libsqlite3` in `/usr/lib`.
|
2015-12-02 01:05:29 +08:00
|
|
|
* Add more documentation for failure modes of functions that return `SqliteResult`s.
|
2015-12-09 10:30:19 +08:00
|
|
|
* Updates `libc` dependency to 0.2, fixing builds on ARM for Rust 1.6 or newer.
|
2015-12-01 23:55:01 +08:00
|
|
|
|
2015-11-04 00:29:02 +08:00
|
|
|
# Version 0.4.0 (2015-11-03)
|
|
|
|
|
|
|
|
* Adds `Sized` bound to `FromSql` trait as required by RFC 1214.
|
|
|
|
|
2015-09-23 01:18:26 +08:00
|
|
|
# Version 0.3.1 (2015-09-22)
|
|
|
|
|
|
|
|
* Reset underlying SQLite statements as soon as possible after executing, as recommended by
|
|
|
|
http://www.sqlite.org/cvstrac/wiki?p=ScrollingCursor.
|
|
|
|
|
2015-09-21 22:39:13 +08:00
|
|
|
# Version 0.3.0 (2015-09-21)
|
|
|
|
|
|
|
|
* Removes `get_opt`. Use `get_checked` instead.
|
|
|
|
* Add `query_row_and_then` and `query_and_then` convenience functions. These are analogous to
|
|
|
|
`query_row` and `query_map` but allow functions that can fail by returning `Result`s.
|
|
|
|
* Relax uses of `P: AsRef<...>` from `&P` to `P`.
|
|
|
|
* Add additional error check for calling `execute` when `query` was intended.
|
|
|
|
* Improve debug formatting of `SqliteStatement` and `SqliteConnection`.
|
|
|
|
* Changes documentation of `get_checked` to correctly indicate that it returns errors (not panics)
|
|
|
|
when given invalid types or column indices.
|
|
|
|
|
2015-07-27 02:00:51 +08:00
|
|
|
# Version 0.2.0 (2015-07-26)
|
|
|
|
|
|
|
|
* Add `column_names()` to `SqliteStatement`.
|
|
|
|
* By default, include `SQLITE_OPEN_NO_MUTEX` and `SQLITE_OPEN_URI` flags when opening a
|
|
|
|
new conneciton.
|
|
|
|
* Fix generated bindings (e.g., `sqlite3_exec` was wrong).
|
|
|
|
* Use now-generated `sqlite3_destructor_type` to define `SQLITE_STATIC` and `SQLITE_TRANSIENT`.
|
|
|
|
|
2015-05-12 08:22:56 +08:00
|
|
|
# Version 0.1.0 (2015-05-11)
|
|
|
|
|
|
|
|
* [breaking-change] Modify `query_row` to return a `Result` instead of unwrapping.
|
|
|
|
* Deprecate `query_row_safe` (use `query_row` instead).
|
|
|
|
* Add `query_map`.
|
|
|
|
* Add `get_checked`, which asks SQLite to do some basic type-checking of columns.
|
|
|
|
|
2015-04-04 03:50:17 +08:00
|
|
|
# Version 0.0.17 (2015-04-03)
|
|
|
|
|
|
|
|
* Publish version that builds on stable rust (beta). This version lives on the
|
|
|
|
`stable` branch. Development continues on `master` and still requires a nightly
|
|
|
|
version of Rust.
|
|
|
|
|
2015-04-03 21:32:11 +08:00
|
|
|
# Version 0.0.16
|
|
|
|
|
|
|
|
* Updates to track rustc nightly.
|
|
|
|
|
2015-03-30 00:52:05 +08:00
|
|
|
# Version 0.0.15
|
|
|
|
|
|
|
|
* Make SqliteConnection `Send`.
|
|
|
|
|
2015-03-29 11:09:13 +08:00
|
|
|
# Version 0.0.14
|
|
|
|
|
|
|
|
* Remove unneeded features (also involves switching to `libc` crate).
|
|
|
|
|
2015-03-27 03:48:29 +08:00
|
|
|
# Version 0.0.13 (2015-03-26)
|
|
|
|
|
|
|
|
* Updates to track rustc nightly.
|
|
|
|
|
2015-03-25 00:13:19 +08:00
|
|
|
# Version 0.0.12 (2015-03-24)
|
|
|
|
|
|
|
|
* Updates to track rustc stabilization.
|
|
|
|
|
2015-03-13 04:41:37 +08:00
|
|
|
# Version 0.0.11 (2015-03-12)
|
|
|
|
|
|
|
|
* Reexport `sqlite3_stmt` from `libsqlite3-sys` for easier `impl`-ing of `ToSql` and `FromSql`.
|
|
|
|
* Updates to track latest rustc changes.
|
|
|
|
* Update dependency versions.
|
|
|
|
|
2015-02-24 10:50:10 +08:00
|
|
|
# Version 0.0.10 (2015-02-23)
|
|
|
|
|
|
|
|
* BREAKING CHANGE: `open` now expects a `Path` rather than a `str`. There is a separate
|
|
|
|
`open_in_memory` constructor for opening in-memory databases.
|
|
|
|
* Added the ability to load SQLite extensions. This is behind the `load_extension` Cargo feature,
|
|
|
|
because not all builds of sqlite3 include this ability. Notably the default libsqlite3 that
|
|
|
|
ships with OS X 10.10 does not support extensions.
|
|
|
|
|
2015-02-14 04:49:16 +08:00
|
|
|
# Version 0.0.9 (2015-02-13)
|
|
|
|
|
|
|
|
* Updates to track latest rustc changes.
|
|
|
|
* Implement standard `Error` trait for `SqliteError`.
|
|
|
|
|
2015-02-04 23:54:04 +08:00
|
|
|
# Version 0.0.8 (2015-02-04)
|
|
|
|
|
|
|
|
* Updates to track latest rustc changes.
|
|
|
|
|
2015-01-20 23:04:27 +08:00
|
|
|
# Version 0.0.7 (2015-01-20)
|
|
|
|
|
|
|
|
* Use external bitflags from crates.io.
|
|
|
|
|
|
|
|
# Version 0.0.6 (2015-01-10)
|
2015-01-11 11:21:08 +08:00
|
|
|
|
|
|
|
* Updates to track latest rustc changes (1.0.0-alpha).
|
|
|
|
* Add `query_row_safe`, a `SqliteResult`-returning variant of `query_row`.
|
|
|
|
|
2015-01-20 23:04:27 +08:00
|
|
|
# Version 0.0.5 (2015-01-07)
|
2015-01-07 22:18:49 +08:00
|
|
|
|
|
|
|
* Updates to track latest rustc changes (closure syntax).
|
2015-01-08 03:16:51 +08:00
|
|
|
* Updates to track latest rust stdlib changes (`std::c_str` -> `std::ffi`).
|
2015-01-07 22:18:49 +08:00
|
|
|
|
2015-01-20 23:04:27 +08:00
|
|
|
# Version 0.0.4 (2015-01-05)
|
2015-01-06 00:21:47 +08:00
|
|
|
|
|
|
|
* Updates to track latest rustc changes.
|
|
|
|
|
2014-12-24 01:27:09 +08:00
|
|
|
# Version 0.0.3 (2014-12-23)
|
|
|
|
|
|
|
|
* Updates to track latest rustc changes.
|
|
|
|
* Add call to `sqlite3_busy_timeout`.
|
|
|
|
|
2014-12-04 23:48:05 +08:00
|
|
|
# Version 0.0.2 (2014-12-04)
|
|
|
|
|
|
|
|
* Remove use of now-deprecated `std::vec::raw::from_buf`.
|
|
|
|
* Update to latest version of `time` crate.
|
|
|
|
|
|
|
|
# Version 0.0.1 (2014-11-21)
|
|
|
|
|
|
|
|
* Initial release
|