Skip to content

Commit ba8ad28

Browse files
authored
Merge pull request #257 from weiznich/bump/diesel_2_3
2 parents 6e76dfd + 50b9c1c commit ba8ad28

File tree

6 files changed

+11
-49
lines changed

6 files changed

+11
-49
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,11 @@ jobs:
232232
- name: Check formating
233233
run: cargo +stable fmt --all -- --check
234234
minimal_rust_version:
235-
name: Check Minimal supported rust version (1.84.0)
235+
name: Check Minimal supported rust version (1.86.0)
236236
runs-on: ubuntu-latest
237237
steps:
238238
- uses: actions/checkout@v4
239-
- uses: dtolnay/rust-toolchain@1.84.0
239+
- uses: dtolnay/rust-toolchain@1.86.0
240240
- uses: dtolnay/rust-toolchain@nightly
241241
- uses: taiki-e/install-action@cargo-hack
242242
- uses: taiki-e/install-action@cargo-minimal-versions
@@ -245,7 +245,7 @@ jobs:
245245
# has broken min-version dependencies
246246
# cannot test sqlite yet as that crate
247247
# as broken min-version dependencies as well
248-
run: cargo +1.84.0 minimal-versions check -p diesel-async --features "postgres bb8 deadpool mobc"
248+
run: cargo +1.86.0 minimal-versions check -p diesel-async --features "postgres bb8 deadpool mobc"
249249
all_features_build:
250250
name: Check all feature combination build
251251
runs-on: ubuntu-latest

Cargo.toml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,11 @@ mobc = { version = ">=0.7,<0.10", optional = true }
3838
scoped-futures = { version = "0.1", features = ["std"] }
3939

4040
[dependencies.diesel]
41-
version = "~2.2.0"
41+
version = "~2.3.0"
4242
default-features = false
4343
features = [
4444
"i-implement-a-third-party-backend-and-opt-into-breaking-changes",
4545
]
46-
git = "https://github.com/diesel-rs/diesel"
47-
branch = "master"
4846

4947
[dev-dependencies]
5048
tokio = { version = "1.12.0", features = ["rt", "macros", "rt-multi-thread"] }
@@ -53,18 +51,14 @@ chrono = "0.4"
5351
assert_matches = "1.0.1"
5452

5553
[dev-dependencies.diesel]
56-
version = "~2.2.0"
54+
version = "~2.3.0"
5755
default-features = false
5856
features = [
5957
"chrono"
6058
]
61-
git = "https://github.com/diesel-rs/diesel"
62-
branch = "master"
6359

6460
[dev-dependencies.diesel_migrations]
65-
version = "2.2.0"
66-
git = "https://github.com/diesel-rs/diesel"
67-
branch = "master"
61+
version = "2.3.0"
6862

6963
[features]
7064
default = []

examples/postgres/pooled-with-rustls/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,5 @@ tokio-postgres-rustls = "0.13.0"
1616

1717

1818
[dependencies.diesel]
19-
version = "2.2.0"
19+
version = "2.3.0"
2020
default-features = false
21-
git = "https://github.com/diesel-rs/diesel"
22-
branch = "master"

examples/postgres/run-pending-migrations-with-rustls/Cargo.toml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,8 @@ tokio-postgres = "0.7.7"
1515
tokio-postgres-rustls = "0.13.0"
1616

1717
[dependencies.diesel]
18-
version = "2.2.0"
18+
version = "2.3.0"
1919
default-features = false
20-
git = "https://github.com/diesel-rs/diesel"
21-
branch = "master"
2220

2321
[dependencies.diesel_migrations]
24-
version = "2.2.0"
25-
git = "https://github.com/diesel-rs/diesel"
26-
branch = "master"
22+
version = "2.3.0"

examples/sync-wrapper/Cargo.toml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,12 @@ futures-util = "0.3.21"
1111
tokio = { version = "1.2.0", default-features = false, features = ["macros", "rt-multi-thread"] }
1212

1313
[dependencies.diesel]
14-
version = "2.2.0"
14+
version = "2.3.0"
1515
default-features = false
1616
features = ["returning_clauses_for_sqlite_3_35"]
17-
git = "https://github.com/diesel-rs/diesel"
18-
branch = "master"
1917

2018
[dependencies.diesel_migrations]
21-
version = "2.2.0"
22-
git = "https://github.com/diesel-rs/diesel"
23-
branch = "master"
19+
version = "2.3.0"
2420

2521
[features]
2622
default = ["sqlite"]

src/pooled_connection/mod.rs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -306,28 +306,6 @@ where
306306
}
307307
}
308308

309-
#[derive(diesel::query_builder::QueryId)]
310-
struct CheckConnectionQuery;
311-
312-
impl<DB> diesel::query_builder::QueryFragment<DB> for CheckConnectionQuery
313-
where
314-
DB: diesel::backend::Backend,
315-
{
316-
fn walk_ast<'b>(
317-
&'b self,
318-
mut pass: diesel::query_builder::AstPass<'_, 'b, DB>,
319-
) -> diesel::QueryResult<()> {
320-
pass.push_sql("SELECT 1");
321-
Ok(())
322-
}
323-
}
324-
325-
impl diesel::query_builder::Query for CheckConnectionQuery {
326-
type SqlType = diesel::sql_types::Integer;
327-
}
328-
329-
impl<C> diesel::query_dsl::RunQueryDsl<C> for CheckConnectionQuery {}
330-
331309
#[doc(hidden)]
332310
pub trait PoolableConnection: AsyncConnection {
333311
/// Check if a connection is still valid

0 commit comments

Comments
 (0)