Skip to content

Commit 89faf0e

Browse files
Fix of skipping code sqlite due to mismatch in cargo feature names
1 parent 9bd3d61 commit 89faf0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sqlx-cli/src/database.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub async fn create(connect_opts: &ConnectOpts) -> anyhow::Result<()> {
1111
let exists = crate::retry_connect_errors(connect_opts, Any::database_exists).await?;
1212

1313
if !exists {
14-
#[cfg(feature = "_sqlite")]
14+
#[cfg(any(feature = "sqlite", feature = "sqlite-unbundled"))]
1515
sqlx::sqlite::CREATE_DB_WAL.store(
1616
connect_opts.sqlite_create_db_wal,
1717
std::sync::atomic::Ordering::Release,

sqlx-cli/src/opt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ pub struct ConnectOpts {
262262
/// However, if your application sets a `journal_mode` on `SqliteConnectOptions` to something
263263
/// other than `Wal`, then it will have to take the database file out of WAL mode on connecting,
264264
/// which requires an exclusive lock and may return a `database is locked` (`SQLITE_BUSY`) error.
265-
#[cfg(feature = "_sqlite")]
265+
#[cfg(any(feature = "sqlite", feature = "sqlite-unbundled"))]
266266
#[clap(long, action = clap::ArgAction::Set, default_value = "true")]
267267
pub sqlite_create_db_wal: bool,
268268
}

0 commit comments

Comments
 (0)