| author | Da Risk <da_risk@geekorum.com> |
| Wed, 12 Jan 2022 17:29:59 -0400 | |
| changeset 882 | 7a74abf66c49 |
| parent 846 | ac0863af5ef6 |
| child 933 | f6af10dfeb75 |
| permissions | -rw-r--r-- |
|
137
5464f07a306c
Update copyright headers for 2019
Da Risk <da_risk@geekorum.com>
parents:
92
diff
changeset
|
1 |
/* |
| 0 | 2 |
* Geekttrss is a RSS feed reader application on the Android Platform. |
3 |
* |
|
| 882 | 4 |
* Copyright (C) 2017-2022 by Frederic-Charles Barthelery. |
| 0 | 5 |
* |
6 |
* This file is part of Geekttrss. |
|
7 |
* |
|
8 |
* Geekttrss is free software: you can redistribute it and/or modify |
|
9 |
* it under the terms of the GNU General Public License as published by |
|
10 |
* the Free Software Foundation, either version 3 of the License, or |
|
11 |
* (at your option) any later version. |
|
12 |
* |
|
13 |
* Geekttrss is distributed in the hope that it will be useful, |
|
14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
16 |
* GNU General Public License for more details. |
|
17 |
* |
|
18 |
* You should have received a copy of the GNU General Public License |
|
19 |
* along with Geekttrss. If not, see <http://www.gnu.org/licenses/>. |
|
20 |
*/ |
|
|
570
e3e909999f9f
ArticlesDatabase: convert to kotlin
Da Risk <da_risk@geekorum.com>
parents:
440
diff
changeset
|
21 |
package com.geekorum.ttrss.data |
| 0 | 22 |
|
|
570
e3e909999f9f
ArticlesDatabase: convert to kotlin
Da Risk <da_risk@geekorum.com>
parents:
440
diff
changeset
|
23 |
import androidx.room.Database |
|
e3e909999f9f
ArticlesDatabase: convert to kotlin
Da Risk <da_risk@geekorum.com>
parents:
440
diff
changeset
|
24 |
import androidx.room.RoomDatabase |
|
574
92665544ba23
provider: Rename ArticlesProvidersDao to PurgeArticlesDao
Da Risk <da_risk@geekorum.com>
parents:
573
diff
changeset
|
25 |
import com.geekorum.ttrss.providers.PurgeArticlesDao |
| 0 | 26 |
|
|
674
825fa5987f3c
data: Add a composite table to hold Article tags relations
Da Risk <da_risk@geekorum.com>
parents:
611
diff
changeset
|
27 |
@Database(entities = [Article::class, ArticleFTS::class, ArticlesTags::class, Attachment::class, |
|
576
2c979a1d2f3c
ArticlesDatabase: add attachments table
Da Risk <da_risk@geekorum.com>
parents:
574
diff
changeset
|
28 |
Category::class, Feed::class, Transaction::class, AccountInfo::class], |
|
674
825fa5987f3c
data: Add a composite table to hold Article tags relations
Da Risk <da_risk@geekorum.com>
parents:
611
diff
changeset
|
29 |
version = 13) |
|
570
e3e909999f9f
ArticlesDatabase: convert to kotlin
Da Risk <da_risk@geekorum.com>
parents:
440
diff
changeset
|
30 |
abstract class ArticlesDatabase : RoomDatabase() {
|
| 573 | 31 |
abstract fun articleDao(): ArticleDao |
32 |
abstract fun accountInfoDao(): AccountInfoDao |
|
33 |
abstract fun transactionsDao(): TransactionsDao |
|
34 |
abstract fun synchronizationDao(): SynchronizationDao |
|
|
574
92665544ba23
provider: Rename ArticlesProvidersDao to PurgeArticlesDao
Da Risk <da_risk@geekorum.com>
parents:
573
diff
changeset
|
35 |
abstract fun articlesProvidersDao(): PurgeArticlesDao |
| 573 | 36 |
abstract fun feedsDao(): FeedsDao |
37 |
abstract fun manageFeedsDao(): ManageFeedsDao |
|
| 0 | 38 |
|
|
570
e3e909999f9f
ArticlesDatabase: convert to kotlin
Da Risk <da_risk@geekorum.com>
parents:
440
diff
changeset
|
39 |
companion object {
|
|
e3e909999f9f
ArticlesDatabase: convert to kotlin
Da Risk <da_risk@geekorum.com>
parents:
440
diff
changeset
|
40 |
const val DATABASE_NAME = "room_articles.db" |
|
e3e909999f9f
ArticlesDatabase: convert to kotlin
Da Risk <da_risk@geekorum.com>
parents:
440
diff
changeset
|
41 |
} |
| 0 | 42 |
|
| 573 | 43 |
object Tables {
|
44 |
const val ARTICLES = "articles" |
|
45 |
const val TRANSACTIONS = "transactions" |
|
46 |
const val FEEDS = "feeds" |
|
47 |
const val CATEGORIES = "categories" |
|
|
674
825fa5987f3c
data: Add a composite table to hold Article tags relations
Da Risk <da_risk@geekorum.com>
parents:
611
diff
changeset
|
48 |
const val ARTICLES_TAGS = "articles_tags" |
| 573 | 49 |
} |
| 0 | 50 |
} |