File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -249,13 +249,15 @@ url = "2.2.2"
249249hex = " 0.4.3"
250250tempfile = " 3.10.1"
251251criterion = { version = " 0.5.1" , features = [" async_tokio" ] }
252- libsqlite3-sys = { version = " 0.30.1" }
252+ libsqlite3-sys = { version = " 0.37.0" }
253+
254+ rand.workspace = true
253255
254256# If this is an unconditional dev-dependency then Cargo will *always* try to build `libsqlite3-sys`,
255257# even when SQLite isn't the intended test target, and fail if the build environment is not set up for compiling C code.
256258[target .'cfg(sqlite_test_sqlcipher)' .dev-dependencies ]
257259# Enable testing with SQLCipher if specifically requested.
258- libsqlite3-sys = { version = " 0.30.1 " , features = [" bundled-sqlcipher" ] }
260+ libsqlite3-sys = { version = " 0.37.0 " , features = [" bundled-sqlcipher" ] }
259261
260262# Common lint settings for the workspace
261263[workspace .lints .clippy ]
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ _unstable-docs = [
5656
5757[dependencies .libsqlite3-sys ]
5858# See `sqlx-sqlite/src/lib.rs` for details.
59- version = " >=0.30.1, <0.37 .0"
59+ version = " >=0.30.1, <0.38 .0"
6060default-features = false
6161features = [
6262 " pkg-config" ,
Original file line number Diff line number Diff line change 11use futures_util:: TryStreamExt ;
2- use rand:: { Rng , SeedableRng } ;
3- use rand_xoshiro:: Xoshiro256PlusPlus ;
2+ use rand:: { rngs:: Xoshiro256PlusPlus , RngExt , SeedableRng } ;
43use sqlx:: sqlite:: { SqliteConnectOptions , SqliteOperation , SqlitePoolOptions } ;
54use sqlx:: SqlSafeStr ;
65use sqlx:: {
@@ -664,8 +663,8 @@ async fn issue_1467() -> anyhow::Result<()> {
664663 if i % 1_000 == 0 {
665664 println ! ( "{i}" ) ;
666665 }
667- let key = rng. gen_range ( 0 ..1_000 ) ;
668- let value = rng. gen_range ( 0 ..1_000 ) ;
666+ let key = rng. random_range ( 0 ..1_000 ) ;
667+ let value = rng. random_range ( 0 ..1_000 ) ;
669668 let mut tx = conn. begin ( ) . await ?;
670669
671670 let exists = sqlx:: query ( "SELECT 1 FROM kv WHERE k = ?" )
You can’t perform that action at this time.
0 commit comments