File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Sources/PowerSync/Protocol Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ public protocol PowerSyncDatabaseProtocol: Queries {
215215 /// The database can still be queried after this is called, but the tables
216216 /// would be empty.
217217 ///
218- /// - Parameter clearLocal: Set to false to preserve data in local-only tables.
218+ /// - Parameter clearLocal: Set to false to preserve data in local-only tables. Defaults to `true`.
219219 func disconnectAndClear( clearLocal: Bool ) async throws
220220
221221 /// Close the database, releasing resources.
@@ -265,8 +265,8 @@ public extension PowerSyncDatabaseProtocol {
265265 )
266266 }
267267
268- func disconnectAndClear( clearLocal : Bool = true ) async throws {
269- try await disconnectAndClear ( clearLocal: clearLocal )
268+ func disconnectAndClear( ) async throws {
269+ try await disconnectAndClear ( clearLocal: true )
270270 }
271271
272272 func getCrudBatch( limit: Int32 = 100 ) async throws -> CrudBatch ? {
You can’t perform that action at this time.
0 commit comments