Skip to content

Commit ad9268d

Browse files
committed
upgrade dependencies
1 parent 9dfee19 commit ad9268d

11 files changed

+14
-20
lines changed

Diff for: .github/workflows/ci.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
--health-retries 5
3434
3535
env:
36-
DATABASE_URL: postgresql://sqlm-test:sqlm-test@localhost/sqlm-test
36+
DATABASE_URL: postgresql://sqlm-test:sqlm-test@localhost/sqlm-test
3737

3838
steps:
3939
- name: Add build dependencies
@@ -46,19 +46,17 @@ jobs:
4646
run: psql $DATABASE_URL < postgres/testdb.sql
4747

4848
- name: Install ${{matrix.toolchain}} toolchain
49-
uses: actions-rs/toolchain@v1
49+
uses: dtolnay/rust-toolchain@master
5050
with:
51-
profile: minimal
5251
toolchain: ${{matrix.toolchain}}
53-
override: true
5452
components: rustfmt, clippy
5553

5654
- name: Install cargo-hack
5755
uses: taiki-e/install-action@cargo-hack
5856

5957
- name: Test
6058
run: cargo hack test --workspace --feature-powerset --depth 2
61-
59+
6260
- name: Clippy
6361
run: cargo hack check --workspace --feature-powerset --depth 1
6462

Diff for: postgres-macros/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ uuid = ["dep:uuid", "postgres/with-uuid-1"]
1818

1919
[dependencies]
2020
ariadne = "0.4"
21-
chumsky = "1.0.0-alpha.6"
21+
chumsky = "1.0.0-alpha.7"
2222
dotenvy = "0.15"
2323
heck = "0.5"
2424
pgvector = { version = "0.4", features = ["postgres"], optional = true }
@@ -29,7 +29,7 @@ rustls = { version = "0.23", default-features = false, features = ["ring"] }
2929
serde_json = { version = "1.0", optional = true }
3030
syn = { version = "2.0", features = ["full", "extra-traits"] }
3131
time = { version = "0.3", optional = true }
32-
tokio-postgres-rustls = "0.12"
32+
tokio-postgres-rustls = "0.13"
3333
uuid = { version = "1.4", optional = true }
3434

3535
[dev-dependencies]

Diff for: postgres-macros/tests/fail-stable/date_vs_datetime.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ error[E0271]: type mismatch resolving `<OffsetDateTime as SqlType>::Type == Date
22
--> tests/fail-stable/date_vs_datetime.rs:5:62
33
|
44
5 | let _: time::OffsetDateTime = sql!("SELECT NOW()::DATE").await.unwrap();
5-
| ^^^^^ expected `Date`, found `OffsetDateTime`
5+
| ^^^^^ expected `OffsetDateTime`, found `Date`
66
|
77
= note: required for `Sql<'_, Primitive<time::Date>, OffsetDateTime>` to implement `IntoFuture`

Diff for: postgres-macros/tests/fail-stable/datetime_vs_date.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ error[E0271]: type mismatch resolving `<Date as SqlType>::Type == OffsetDateTime
22
--> tests/fail-stable/datetime_vs_date.rs:6:10
33
|
44
6 | .await
5-
| ^^^^^ expected `OffsetDateTime`, found `Date`
5+
| ^^^^^ expected `Date`, found `OffsetDateTime`
66
|
77
= note: required for `Sql<'_, Primitive<OffsetDateTime>, time::Date>` to implement `IntoFuture`

Diff for: postgres-macros/tests/fail-stable/enum_array_to_enum_literal.stderr

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ error[E0277]: the trait bound `Role: sqlm_postgres::query::Query<sqlm_postgres::
44
17 | .await
55
| -^^^^^
66
| ||
7-
| |unsatisfied trait bound
7+
| |the trait `sqlm_postgres::query::Query<sqlm_postgres::types::Array<Vec<sqlm_postgres::types::Enum<(EnumVariant<5755620910692865178>, EnumVariant<10465144470622129318>)>>>>` is not implemented for `Role`, which is required by `Sql<'_, sqlm_postgres::types::Array<Vec<sqlm_postgres::types::Enum<(EnumVariant<5755620910692865178>, EnumVariant<10465144470622129318>)>>>, _>: IntoFuture`
88
| help: remove the `.await`
99
|
10-
= help: the trait `sqlm_postgres::query::Query<sqlm_postgres::types::Array<Vec<sqlm_postgres::types::Enum<(EnumVariant<5755620910692865178>, EnumVariant<10465144470622129318>)>>>>` is not implemented for `Role`
1110
= help: the following other types implement trait `sqlm_postgres::query::Query<Cols>`:
1211
`()` implements `sqlm_postgres::query::Query<()>`
1312
`Option<T>` implements `sqlm_postgres::query::Query<Primitive<<T as SqlType>::Type>>`

Diff for: postgres-macros/tests/fail-stable/enum_extra_variant.stderr

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ error[E0277]: the trait bound `Vec<User>: sqlm_postgres::query::Query<Struct<(St
44
26 | let _: Vec<User> = sql!("SELECT id, role FROM users").await.unwrap();
55
| -^^^^^
66
| ||
7-
| |unsatisfied trait bound
7+
| |the trait `sqlm_postgres::query::Query<Struct<(StructColumn<i64, 6898215271518772730>, StructColumn<sqlm_postgres::types::Enum<(EnumVariant<5755620910692865178>, EnumVariant<10465144470622129318>)>, 18137070463969723500>)>>` is not implemented for `Vec<User>`, which is required by `Sql<'_, Struct<(StructColumn<i64, 6898215271518772730>, StructColumn<sqlm_postgres::types::Enum<(EnumVariant<5755620910692865178>, EnumVariant<10465144470622129318>)>, 18137070463969723500>)>, _>: IntoFuture`
88
| help: remove the `.await`
99
|
10-
= help: the trait `sqlm_postgres::query::Query<Struct<(StructColumn<i64, 6898215271518772730>, StructColumn<sqlm_postgres::types::Enum<(EnumVariant<5755620910692865178>, EnumVariant<10465144470622129318>)>, 18137070463969723500>)>>` is not implemented for `Vec<User>`
1110
= help: the following other types implement trait `sqlm_postgres::query::Query<Cols>`:
1211
`Vec<T>` implements `sqlm_postgres::query::Query<Primitive<<T as SqlType>::Type>>`
1312
`Vec<T>` implements `sqlm_postgres::query::Query<Struct<Cols>>`

Diff for: postgres-macros/tests/fail-stable/enum_missing_variant.stderr

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ error[E0277]: the trait bound `Vec<User>: sqlm_postgres::query::Query<Struct<(St
44
20 | let _: Vec<User> = sql!("SELECT id, role FROM users").await.unwrap();
55
| -^^^^^
66
| ||
7-
| |unsatisfied trait bound
7+
| |the trait `sqlm_postgres::query::Query<Struct<(StructColumn<i64, 6898215271518772730>, StructColumn<sqlm_postgres::types::Enum<(EnumVariant<5755620910692865178>, EnumVariant<10465144470622129318>)>, 18137070463969723500>)>>` is not implemented for `Vec<User>`, which is required by `Sql<'_, Struct<(StructColumn<i64, 6898215271518772730>, StructColumn<sqlm_postgres::types::Enum<(EnumVariant<5755620910692865178>, EnumVariant<10465144470622129318>)>, 18137070463969723500>)>, _>: IntoFuture`
88
| help: remove the `.await`
99
|
10-
= help: the trait `sqlm_postgres::query::Query<Struct<(StructColumn<i64, 6898215271518772730>, StructColumn<sqlm_postgres::types::Enum<(EnumVariant<5755620910692865178>, EnumVariant<10465144470622129318>)>, 18137070463969723500>)>>` is not implemented for `Vec<User>`
1110
= help: the following other types implement trait `sqlm_postgres::query::Query<Cols>`:
1211
`Vec<T>` implements `sqlm_postgres::query::Query<Primitive<<T as SqlType>::Type>>`
1312
`Vec<T>` implements `sqlm_postgres::query::Query<Struct<Cols>>`

Diff for: postgres-macros/tests/fail-stable/enum_variant_mismatch.stderr

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ error[E0277]: the trait bound `Vec<User>: sqlm_postgres::query::Query<Struct<(St
44
23 | let _: Vec<User> = sql!("SELECT id, role FROM users").await.unwrap();
55
| -^^^^^
66
| ||
7-
| |unsatisfied trait bound
7+
| |the trait `sqlm_postgres::query::Query<Struct<(StructColumn<i64, 6898215271518772730>, StructColumn<sqlm_postgres::types::Enum<(EnumVariant<5755620910692865178>, EnumVariant<10465144470622129318>)>, 18137070463969723500>)>>` is not implemented for `Vec<User>`, which is required by `Sql<'_, Struct<(StructColumn<i64, 6898215271518772730>, StructColumn<sqlm_postgres::types::Enum<(EnumVariant<5755620910692865178>, EnumVariant<10465144470622129318>)>, 18137070463969723500>)>, _>: IntoFuture`
88
| help: remove the `.await`
99
|
10-
= help: the trait `sqlm_postgres::query::Query<Struct<(StructColumn<i64, 6898215271518772730>, StructColumn<sqlm_postgres::types::Enum<(EnumVariant<5755620910692865178>, EnumVariant<10465144470622129318>)>, 18137070463969723500>)>>` is not implemented for `Vec<User>`
1110
= help: the following other types implement trait `sqlm_postgres::query::Query<Cols>`:
1211
`Vec<T>` implements `sqlm_postgres::query::Query<Primitive<<T as SqlType>::Type>>`
1312
`Vec<T>` implements `sqlm_postgres::query::Query<Struct<Cols>>`

Diff for: postgres-macros/tests/fail-stable/literal_array_to_literal.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0277]: the trait bound `String: sqlm_postgres::query::Query<sqlm_postgres
44
6 | .await
55
| -^^^^^
66
| ||
7-
| |the trait `sqlm_postgres::query::Query<sqlm_postgres::types::Array<Vec<String>>>` is not implemented for `String`
7+
| |the trait `sqlm_postgres::query::Query<sqlm_postgres::types::Array<Vec<String>>>` is not implemented for `String`, which is required by `Sql<'_, sqlm_postgres::types::Array<Vec<String>>, _>: IntoFuture`
88
| help: remove the `.await`
99
|
1010
= help: the following other types implement trait `sqlm_postgres::query::Query<Cols>`:

Diff for: postgres-macros/tests/fail-stable/scalar_mismatch.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ error[E0271]: type mismatch resolving `<String as SqlType>::Type == i64`
22
--> tests/fail-stable/scalar_mismatch.rs:5:56
33
|
44
5 | let _: String = sql!("SELECT COUNT(*) FROM users").await.unwrap();
5-
| ^^^^^ expected `i64`, found `String`
5+
| ^^^^^ expected `String`, found `i64`
66
|
77
= note: required for `Sql<'_, Primitive<i64>, String>` to implement `IntoFuture`

Diff for: postgres/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ serde_json = { version = "1.0", optional = true }
3030
sqlm-postgres-macros = { path = "../postgres-macros", version = "0.1", default-features = false }
3131
time = { version = "0.3", optional = true }
3232
tokio-postgres = "0.7"
33-
tokio-postgres-rustls = "0.12"
33+
tokio-postgres-rustls = "0.13"
3434
tracing = "0.1"
3535
uuid = { version = "1.4", optional = true }
3636

0 commit comments

Comments
 (0)