package com.themes.fancy.keyboard.keyboard.myroom

import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.themes.fancy.keyboard.keyboard.MyApplication
import com.themes.fancy.keyboard.keyboard.data.KbSource


@Database(
    entities = [KbSource::class],
    version = MyApplication.DB_VERSION,
    exportSchema = false
)
abstract class MyDatabase : RoomDatabase() {

    abstract fun ThemesDao(): ThemesDao1



    companion object {
        val myDatabase: MyDatabase by lazy {
            Room.databaseBuilder(
                MyApplication.appInstance, MyDatabase::class.java,
                MyApplication.DB_NAME
            ).build()
        }
    }

}