How to use 2 databases using Room Sqlite?

Asked

Viewed 32 times

0

Hello. Is it possible to use multiple DB using Sqlite Room? In my case I need to use 2 DB if it is possible to switch from DB1 to DB2 dynamically?

  • 1

    When you call the databaseBuilder, one of the parameters is the name of the bank. Pass a different name and you will be using a different bank.

  • OK @Leonardo Lima, got here, thank you very much friend. this is a valid answer.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.