disconnectAndClear

abstract suspend fun disconnectAndClear(clearLocal: Boolean = true)

Disconnect and clear the database. Use this when logging out. The database can still be queried after this is called, but the tables would be empty.

To preserve data in local-only tables, set clearLocal to false.