File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ pub async fn create(connect_opts: &ConnectOpts) -> anyhow::Result<()> {
13
13
let exists = crate :: retry_connect_errors ( connect_opts, Any :: database_exists) . await ?;
14
14
15
15
if !exists {
16
- #[ cfg( feature = "_sqlite" ) ]
16
+ #[ cfg( any ( feature = "sqlite" , feature = "sqlite-unbundled" ) ) ]
17
17
sqlx:: sqlite:: CREATE_DB_WAL . store (
18
18
connect_opts. sqlite_create_db_wal ,
19
19
std:: sync:: atomic:: Ordering :: Release ,
Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ pub struct ConnectOpts {
262
262
/// However, if your application sets a `journal_mode` on `SqliteConnectOptions` to something
263
263
/// other than `Wal`, then it will have to take the database file out of WAL mode on connecting,
264
264
/// 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" ) ) ]
266
266
#[ clap( long, action = clap:: ArgAction :: Set , default_value = "true" ) ]
267
267
pub sqlite_create_db_wal : bool ,
268
268
}
You can’t perform that action at this time.
0 commit comments