title: How to merge 2 room databases into 1 in compose?
body: <p>I have created 2 seperate room databases following best practices in kotlin. 1 database for age and 1 for gender, how can I merge these 2 databases and represent them into &quot;1&quot; database? The order from top to bottom does not matter. How can this be achieved this?</p>
  <p>Age database: <a href="https://gyazo.com/0074f2e4f002de9a3ad07ec593a826d4" rel="nofollow noreferrer">https://gyazo.com/0074f2e4f002de9a3ad07ec593a826d4</a></p>
  <p>Gender database: <a href="https://gyazo.com/c8b800b8f2f4fc6b43a9de2ddfdb1e7d" rel="nofollow noreferrer">https://gyazo.com/c8b800b8f2f4fc6b43a9de2ddfdb1e7d</a></p>
  <p>Any advice is appreciated!</p>
  <p>My age database:</p>
  <pre><code>@Database(entities = [Age::class], version = 1, exportSchema = false)
  abstract class AgeDb : RoomDatabase() {
  
      abstract fun AgeDao() : AgeDao
  
      companion object {
  
          @Volatile
          private var INSTANCE : AgeDb? = null
  
          fun getDatabase(context: Context) : AgeDb {
  
              val tempInstance = INSTANCE
              if (tempInstance != null) {
  
                  return tempInstance
              }
  
              synchronized(this) {
  
                  val instance = Room.databaseBuilder(
                      context.applicationContext,
                      AgeDb::class.java,
                      &quot;dropdown_age&quot;
                  ).build()
                  INSTANCE = instance
                  return instance
              }
  
          }
      }
  }
  </code></pre>