Skip to content

Releases: LHolten/rust-query

v0.3.1

18 Dec 13:38
Compare
Choose a tag to compare
  • Added error message when defining an id column.
  • Added support for sqlite LIKE and GLOB operators.
  • Added support for DELETE using TransactionWeak and #[no_reference].
  • Added TransactionWeak::unchecked_transaction behind feature flag.
  • Added impl ToSql for TableRow behind unchecked_transaction feature flag.
  • Removed impl RefCast for Transaction, it was not intended to be public.
  • Removed impl FromSql for TableRow, it was not intended to be public.

v0.3.0

24 Nov 14:36
Compare
Choose a tag to compare
  • Added support for updating rows.
  • Added Table::dummy method, which makes it easier to do partial updates.
  • Reused table types in the generated API for both naming TableRow<User> and dummies User {name: "steve"}.
  • Forbid Option in unique constraints.
  • Renamed ThreadToken to LocalClient.
  • Renamed and moved read and write_lock to transaction and transaction_mut.
  • Check schema_version at the start of every transaction.
  • Simplify migration and borrow LocalClient only once.
  • Renamed Prepare to Config and simplified its API.

v0.2.2

04 Nov 10:53
Compare
Choose a tag to compare
  • Bound the lifetime of TableRow: IntoColumn to the lifetime of the transaction.
    Without the bound it was possible to sneak TableRows into following transacions.

    query_one now checks that its input lives for as long as the transaction.
    To make sure that query_one still checks that the dummy is "global", the transaction now has an invariant lifetime.

v0.2.1

30 Oct 10:21
Compare
Choose a tag to compare
  • Relax Transaction creation to not borrow the Database.
  • Add missing lifetime bound on try_inserts return value.
    Technically this is a breaking change, but it fixes a bug so it is still a patch release.
  • Fix the version of the macro crate exactly (=0.2.0) to allow future internal API changes with only a patch release.

v0.2.0

07 Oct 19:00
Compare
Choose a tag to compare
  • Rewrote almost the whole library to specify the schema using enum syntax with a proc macro.
  • Added a single Column type to handle a lot of query building.
  • Dummy trait to retrieve multiple values at once and allow post processing.
  • Added support for transactions and multiple schemas.