@@ -84,7 +84,7 @@ enum DbType {
84
84
path : String ,
85
85
flags : OpenFlags ,
86
86
encryption_config : Option < EncryptionConfig > ,
87
- skip_saftey_assert : bool ,
87
+ skip_safety_assert : bool ,
88
88
} ,
89
89
#[ cfg( feature = "replication" ) ]
90
90
Sync {
@@ -166,7 +166,7 @@ cfg_core! {
166
166
path: db_path. into( ) ,
167
167
flags,
168
168
encryption_config: None ,
169
- skip_saftey_assert : false ,
169
+ skip_safety_assert : false ,
170
170
} ,
171
171
max_write_replication_index: Default :: default ( ) ,
172
172
} )
@@ -458,7 +458,7 @@ cfg_replication! {
458
458
DbType :: Sync { db, .. } => {
459
459
let path = db. path( ) . to_string( ) ;
460
460
Ok ( Database {
461
- db_type: DbType :: File { path, flags: OpenFlags :: default ( ) , encryption_config: None , skip_saftey_assert : false } ,
461
+ db_type: DbType :: File { path, flags: OpenFlags :: default ( ) , encryption_config: None , skip_safety_assert : false } ,
462
462
max_write_replication_index: Default :: default ( ) ,
463
463
} )
464
464
}
@@ -580,11 +580,11 @@ impl Database {
580
580
path,
581
581
flags,
582
582
encryption_config,
583
- skip_saftey_assert ,
583
+ skip_safety_assert ,
584
584
} => {
585
585
use crate :: local:: impls:: LibsqlConnection ;
586
586
587
- let db = if !skip_saftey_assert {
587
+ let db = if !skip_safety_assert {
588
588
crate :: local:: Database :: open ( path, * flags) ?
589
589
} else {
590
590
unsafe { crate :: local:: Database :: open_raw ( path, * flags) ? }
0 commit comments