Skip to content

Commit

Permalink
Issues #287 feat: database internal 추가 및 파일 이동
Browse files Browse the repository at this point in the history
  • Loading branch information
audxo112 committed Feb 9, 2023
1 parent 21d5725 commit b4ada04
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.lighthouse.data.database
package com.lighthouse.data.database.database

import androidx.room.Database
import androidx.room.RoomDatabase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package com.lighthouse.data.database.di

import android.content.Context
import androidx.room.Room
import com.lighthouse.data.database.BeepDatabase
import com.lighthouse.data.database.dao.BrandLocationDao
import com.lighthouse.data.database.dao.GifticonEditDao
import com.lighthouse.data.database.dao.GifticonSearchDao
import com.lighthouse.data.database.dao.GifticonUsageHistoryDao
import com.lighthouse.data.database.database.BeepDatabase
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
Expand All @@ -16,7 +16,7 @@ import dagger.hilt.components.SingletonComponent
@Suppress("unused")
@Module
@InstallIn(SingletonComponent::class)
internal object DataBaseModule {
internal object DatabaseModule {

@Provides
fun provideBeepDatabase(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package com.lighthouse.data.database.exception

class DBDeleteException(message: String = "데이터 Delete 에 실패 했습니다.") : Exception(message)
internal class DBDeleteException(message: String = "데이터 Delete 에 실패 했습니다.") : Exception(message)
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package com.lighthouse.data.database.exception

class DBInsertException(message: String = "데이터 Insert 에 실패 했습니다.") : Exception(message)
internal class DBInsertException(message: String = "데이터 Insert 에 실패 했습니다.") : Exception(message)
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package com.lighthouse.data.database.exception

class DBNotFoundException(message: String = "데이터를 찾을 수 없습니다.") : Exception(message)
internal class DBNotFoundException(message: String = "데이터를 찾을 수 없습니다.") : Exception(message)
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package com.lighthouse.data.database.exception

class DBSelectException(message: String = "데이터 Select 에 실패 했습니다.") : Exception(message)
internal class DBSelectException(message: String = "데이터 Select 에 실패 했습니다.") : Exception(message)
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package com.lighthouse.data.database.exception

class DBUpdateException(message: String = "데이터 Update 에 실패 했습니다.") : Exception(message)
internal class DBUpdateException(message: String = "데이터 Update 에 실패 했습니다.") : Exception(message)
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.lighthouse.data.database.ext

import com.lighthouse.beep.model.exception.common.NotFoundException
import com.lighthouse.beep.model.exception.db.DeleteException
import com.lighthouse.beep.model.exception.db.InsertException
import com.lighthouse.beep.model.exception.db.NotFoundException
import com.lighthouse.beep.model.exception.db.SelectException
import com.lighthouse.beep.model.exception.db.UpdateException
import com.lighthouse.data.database.exception.DBDeleteException
Expand Down

0 comments on commit b4ada04

Please sign in to comment.