Skip to content

Commit 8cc0f5c

Browse files
Merge remote-tracking branch 'origin/sqlx-cli-sqlite-create-WAL-db-fix'
2 parents aa29a3e + 89faf0e commit 8cc0f5c

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
@@ -13,7 +13,7 @@ pub async fn create(connect_opts: &ConnectOpts) -> anyhow::Result<()> {
1313
let exists = crate::retry_connect_errors(connect_opts, Any::database_exists).await?;
1414

1515
if !exists {
16-
#[cfg(feature = "_sqlite")]
16+
#[cfg(any(feature = "sqlite", feature = "sqlite-unbundled"))]
1717
sqlx::sqlite::CREATE_DB_WAL.store(
1818
connect_opts.sqlite_create_db_wal,
1919
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)