Package dev. inmo. micro_utils. repos. versions
Types
Android SQLStandard Versions Repo Proxy
Link copied to clipboard
class AndroidSQLStandardVersionsRepoProxy(database: SQLiteOpenHelper) : StandardVersionsRepoProxy<SQLiteOpenHelper>
Content copied to clipboard
Key Value Based Versions Repo Proxy
Link copied to clipboard
class KeyValueBasedVersionsRepoProxy<T>(keyValueStore: StandardKeyValueRepo<String, Int>, database: T) : StandardVersionsRepoProxy<T>
Content copied to clipboard
class KeyValueBasedVersionsRepoProxy<T>(keyValueStore: StandardKeyValueRepo<String, Int>, database: T) : StandardVersionsRepoProxy<T>
Content copied to clipboard
class KeyValueBasedVersionsRepoProxy<T>(keyValueStore: StandardKeyValueRepo<String, Int>, database: T) : StandardVersionsRepoProxy<T>
Content copied to clipboard
Standard Versions Repo
Link copied to clipboard
class StandardVersionsRepo<T>(proxy: StandardVersionsRepoProxy<T>) : VersionsRepo<T>
Content copied to clipboard
class StandardVersionsRepo<T>(proxy: StandardVersionsRepoProxy<T>) : VersionsRepo<T>
Content copied to clipboard
class StandardVersionsRepo<T>(proxy: StandardVersionsRepoProxy<T>) : VersionsRepo<T>
Content copied to clipboard
Standard Versions Repo Proxy
Link copied to clipboard
Versions Repo
Link copied to clipboard
This interface has been created due to requirement to work with different versions of databases and make some migrations between versions
Functions
versions Key Value Repo
Link copied to clipboard
inline fun <T> Context.versionsKeyValueRepo(database: T): VersionsRepo<T>
Content copied to clipboard
Will create VersionsRepo based on T, but versions will be stored in StandardKeyValueRepo
versions Key Value Repo For SQL
Link copied to clipboard
inline fun Context.versionsKeyValueRepoForSQL(database: SQLiteOpenHelper): VersionsRepo<SQLiteOpenHelper>
Content copied to clipboard
Will create VersionsRepo based on SQLiteOpenHelper, but versions will be stored in StandardKeyValueRepo
versions Repo
Link copied to clipboard
inline fun versionsRepo(database: SQLiteOpenHelper): VersionsRepo<SQLiteOpenHelper>
Content copied to clipboard
Will create VersionsRepo based on SQLiteOpenHelper with table inside of database
inline fun versionsRepo(context: Context, database: SQLiteOpenHelper): VersionsRepo<SQLiteOpenHelper>
Content copied to clipboard
Will create VersionsRepo based on SQLiteOpenHelper, but versions will be stored in StandardKeyValueRepo