Skip to content

Commit 51b1e19

Browse files
committed
Prepare release
1 parent f120f70 commit 51b1e19

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# 0.3.0
2+
3+
- Added support for updating rows.
4+
- Added `Table::dummy` method, which makes it easier to do partial updates.
5+
- Reused table types in the generated API for both naming `TableRow<User>` and dummies `User {name: "steve"}`.
6+
- Forbid `Option` in unique constraints.
7+
- Renamed `ThreadToken` to `LocalClient`.
8+
- Renamed and moved `read` and `write_lock` to `transaction` and `transaction_mut`.
9+
- Check `schema_version` at the start of every transaction.
10+
- Simplify migration and borrow `LocalClient` only once.
11+
- Renamed `Prepare` to `Config` and simplified its API.
12+
113
# 0.2.2
214

315
- Bound the lifetime of `TableRow: IntoColumn` to the lifetime of the transaction.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = ["rust-query-macros"]
33

44
[package]
55
name = "rust-query"
6-
version = "0.2.2"
6+
version = "0.3.0"
77
edition = "2021"
88
description = "A query builder using rust concepts."
99
categories = ["database"]
@@ -22,7 +22,7 @@ proc-macro2 = "1.0.79"
2222
heck = "0.5.0"
2323
expect-test = "1"
2424
k12 = "0.3"
25-
rust-query-macros = { path = "rust-query-macros", version = "=0.2.2" }
25+
rust-query-macros = { path = "rust-query-macros", version = "=0.3.0" }
2626
ref-cast = "1.0.23"
2727
pretty_assertions = "1.4.0"
2828
r2d2_sqlite = "0.24.0"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ This project is under development and there are many things missing.
1717
Query types:
1818
- [x] SELECT
1919
- [x] INSERT
20-
- [ ] DELETE
2120
- [x] UPDATE
21+
- [ ] DELETE
2222

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

116-
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).
116+
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).
117117

118118
Then you can run with `cargo test`.

rust-query-macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rust-query-macros"
3-
version = "0.2.2"
3+
version = "0.3.0"
44
edition = "2021"
55
description = "Proc-macro crate for rust-query."
66
license = "MIT OR Apache-2.0"

0 commit comments

Comments
 (0)