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 @@ -11,7 +11,7 @@ pub async fn create(connect_opts: &ConnectOpts) -> anyhow::Result<()> {
11
11
let exists = crate :: retry_connect_errors ( connect_opts, Any :: database_exists) . await ?;
12
12
13
13
if !exists {
14
- #[ cfg( feature = "_sqlite" ) ]
14
+ #[ cfg( any ( feature = "sqlite" , feature = "sqlite-unbundled" ) ) ]
15
15
sqlx:: sqlite:: CREATE_DB_WAL . store (
16
16
connect_opts. sqlite_create_db_wal ,
17
17
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