Package dev.inmo.micro_utils.repos.versions

Types

Link copied to clipboard
KeyValueBasedVersionsRepoProxy
Link copied to clipboard
class KeyValueBasedVersionsRepoProxy<T>(keyValueStore: StandardKeyValueRepo<String, Int>, database: T) : StandardVersionsRepoProxy<T>
class KeyValueBasedVersionsRepoProxy<T>(keyValueStore: StandardKeyValueRepo<String, Int>, database: T) : StandardVersionsRepoProxy<T>
class KeyValueBasedVersionsRepoProxy<T>(keyValueStore: StandardKeyValueRepo<String, Int>, database: T) : StandardVersionsRepoProxy<T>
StandardVersionsRepo
Link copied to clipboard
class StandardVersionsRepo<T>(proxy: StandardVersionsRepoProxy<T>) : VersionsRepo<T>
class StandardVersionsRepo<T>(proxy: StandardVersionsRepoProxy<T>) : VersionsRepo<T>
class StandardVersionsRepo<T>(proxy: StandardVersionsRepoProxy<T>) : VersionsRepo<T>
StandardVersionsRepoProxy
Link copied to clipboard
interface StandardVersionsRepoProxy<T> : Repo
interface StandardVersionsRepoProxy<T> : Repo
interface StandardVersionsRepoProxy<T> : Repo
VersionsRepo
Link copied to clipboard
interface VersionsRepo<T> : Repo

This interface has been created due to requirement to work with different versions of databases and make some migrations between versions

interface VersionsRepo<T> : Repo

This interface has been created due to requirement to work with different versions of databases and make some migrations between versions

interface VersionsRepo<T> : Repo

This interface has been created due to requirement to work with different versions of databases and make some migrations between versions

Functions

Link copied to clipboard
inline fun <T> Context.versionsKeyValueRepo(database: T): VersionsRepo<T>

Will create VersionsRepo based on T, but versions will be stored in StandardKeyValueRepo

Link copied to clipboard
inline fun Context.versionsKeyValueRepoForSQL(database: SQLiteOpenHelper): VersionsRepo<SQLiteOpenHelper>

Will create VersionsRepo based on SQLiteOpenHelper, but versions will be stored in StandardKeyValueRepo

Link copied to clipboard
inline fun versionsRepo(database: SQLiteOpenHelper): VersionsRepo<SQLiteOpenHelper>

Will create VersionsRepo based on SQLiteOpenHelper with table inside of database

inline fun versionsRepo(context: Context, database: SQLiteOpenHelper): VersionsRepo<SQLiteOpenHelper>

Will create VersionsRepo based on SQLiteOpenHelper, but versions will be stored in StandardKeyValueRepo