@@ -56,6 +56,19 @@ mod sqlite {
5656 system_is_memory_constrained : bool ,
5757 }
5858
59+ impl SqliteStoreBuilder {
60+ pub ( crate ) fn raw_new ( data_path : String , cache_path : String ) -> Self {
61+ Self {
62+ paths : StorePaths { data_path, cache_path } ,
63+ passphrase : Zeroizing :: new ( None ) ,
64+ pool_max_size : None ,
65+ cache_size : None ,
66+ journal_size_limit : None ,
67+ system_is_memory_constrained : false ,
68+ }
69+ }
70+ }
71+
5972 #[ matrix_sdk_ffi_macros:: export]
6073 impl SqliteStoreBuilder {
6174 /// Construct a [`SqliteStoreBuilder`] and set the paths that the client
@@ -66,14 +79,7 @@ mod sqlite {
6679 /// same path for both stores on a single session.
6780 #[ uniffi:: constructor]
6881 pub fn new ( data_path : String , cache_path : String ) -> Arc < Self > {
69- Arc :: new ( Self {
70- paths : SessionPaths { data_path, cache_path } ,
71- passphrase : Zeroizing :: new ( None ) ,
72- pool_max_size : None ,
73- cache_size : None ,
74- journal_size_limit : None ,
75- system_is_memory_constrained : false ,
76- } )
82+ Arc :: new ( Self :: raw_new ( data_path, cache_path) )
7783 }
7884
7985 /// Set the passphrase for the stores.
0 commit comments