package com.shiny.keyboard.database

import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.shiny.keyboard.MyApplication
import com.shiny.keyboard.mylistener.DataDao


@Database(
    entities = [com.shiny.keyboard.bean.ChildData::class],
    version = MyApplication.DB_VERSION,
    exportSchema = false
)
abstract class BaseDataBase : RoomDatabase() {

    abstract fun ThemesDao(): DataDao



    companion object {
        val baseDataBase: BaseDataBase by lazy {
            Room.databaseBuilder(
                MyApplication.myApplicationInstance, BaseDataBase::class.java,
                MyApplication.DB_NAME
            ).build()
        }
    }

}