how to insert data into room and sequentially get id from tables to insert new data?
How do I sequentially add data to the database?
I need to add two words to the "word" table , then get their rowid and add to the "word pair" table, then get the rowid of the "word pair" table and add to the "word base and word pairs" table
Here is my code inside fragmemnt:
viewLifecycleOwner.lifecycleScope.launch {
var languageId = vocabularyViewModel.getLanguageId(word.wordLanguage) // yet added to db
var languageId2 = vocabularyViewModel.getLanguageId(word.translatedLanguage)...