Skip to content

Commit

Permalink
Prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
LHolten committed Nov 24, 2024
1 parent f120f70 commit 51b1e19
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# 0.3.0

- 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.

# 0.2.2

- Bound the lifetime of `TableRow: IntoColumn` to the lifetime of the transaction.
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = ["rust-query-macros"]

[package]
name = "rust-query"
version = "0.2.2"
version = "0.3.0"
edition = "2021"
description = "A query builder using rust concepts."
categories = ["database"]
Expand All @@ -22,7 +22,7 @@ proc-macro2 = "1.0.79"
heck = "0.5.0"
expect-test = "1"
k12 = "0.3"
rust-query-macros = { path = "rust-query-macros", version = "=0.2.2" }
rust-query-macros = { path = "rust-query-macros", version = "=0.3.0" }
ref-cast = "1.0.23"
pretty_assertions = "1.4.0"
r2d2_sqlite = "0.24.0"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ This project is under development and there are many things missing.
Query types:
- [x] SELECT
- [x] INSERT
- [ ] DELETE
- [x] UPDATE
- [ ] DELETE

Basic operations:
- [x] Eq, Add, Not, And, Lt, UnwrapOr, IsNotNull, AsFloat
Expand Down Expand Up @@ -113,6 +113,6 @@ Some features not shown in this example are:
## Examples
For more example queries you can look at [the chinook example](/tests/chinook.rs).

First download the `Chinook_Sqlite.sqlite` from here https://github.com/lerocha/chinook-database/releases and put it in the root of this repository (the working dir).
First download the `Chinook_Sqlite.sqlite` from [here](https://github.com/lerocha/chinook-database/releases) and put it in the root of this repository (the working dir).

Then you can run with `cargo test`.
2 changes: 1 addition & 1 deletion rust-query-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rust-query-macros"
version = "0.2.2"
version = "0.3.0"
edition = "2021"
description = "Proc-macro crate for rust-query."
license = "MIT OR Apache-2.0"
Expand Down

0 comments on commit 51b1e19

Please sign in to comment.