Skip to content

Commit e842e8a

Browse files
committed
just for tests
1 parent 875d075 commit e842e8a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ sea-query = { version = "^0.20.0", features = ["thread-safe"] }
3434
sea-strum = { version = "^0.23", features = ["derive", "sea-orm"] }
3535
serde = { version = "^1.0", features = ["derive"] }
3636
serde_json = { version = "^1", optional = true }
37-
sqlx = { version = "^0.5.11", optional = true }
37+
sqlx = { git = "https://github.com/05storm26/sqlx.git", optional = true }
3838
uuid = { version = "0.8", features = ["serde", "v4"], optional = true }
3939
ouroboros = "0.14"
4040
url = "^2.2"

src/database/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -232,15 +232,15 @@ impl TryFrom<sqlx::any::AnyConnectOptions> for SqlxConnectOptions {
232232
match connect_options.kind() {
233233
#[cfg(feature = "sqlx-postgres")]
234234
AnyKind::Postgres => Ok(SqlxConnectOptions::Postgres(
235-
connect_options.as_postgres_cloned().unwrap(),
235+
connect_options.as_postgres().unwrap().clone(),
236236
)),
237237
#[cfg(feature = "sqlx-mysql")]
238238
AnyKind::MySql => Ok(SqlxConnectOptions::MySql(
239-
connect_options.as_mysql_cloned().unwrap(),
239+
connect_options.as_mysql().unwrap().clone(),
240240
)),
241241
#[cfg(feature = "sqlx-sqlite")]
242242
AnyKind::Sqlite => Ok(SqlxConnectOptions::Sqlite(
243-
connect_options.as_sqlite_cloned().unwrap(),
243+
connect_options.as_sqlite().unwrap().clone(),
244244
)),
245245
_ => Err(DbErr::Conn(format!(
246246
"Sea orm doesn't support sqlx database kind: {:?}!",

0 commit comments

Comments
 (0)