CacheDatabase

internal abstract class CacheDatabase : RoomDatabase(source)

Coordinates CacheDatabase behavior in the SDAI storage layer.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Provides the companion object singleton used by the SDAI storage layer.

Properties

Link copied to clipboard
internal expect val closeBarrier: CloseBarrier
Link copied to clipboard
Link copied to clipboard
internal expect val requiredTypeConverterClassesMap: Map<KClass<*>, List<KClass<*>>>

Functions

Link copied to clipboard
internal expect fun addTypeConverter(kclass: KClass<*>, converter: Any)
Link copied to clipboard
expect fun close()
Link copied to clipboard
Link copied to clipboard
protected expect abstract fun createInvalidationTracker(): InvalidationTracker
Link copied to clipboard
Link copied to clipboard
expect fun getCoroutineScope(): CoroutineScope
Link copied to clipboard
Link copied to clipboard
internal expect fun init(configuration: DatabaseConfiguration)
Link copied to clipboard

Executes the sdEmbeddingDao step in the SDAI storage layer.

Link copied to clipboard

Executes the sdHyperNetworkDao step in the SDAI storage layer.

Link copied to clipboard

Executes the sdLoraDao step in the SDAI storage layer.

Link copied to clipboard

Executes the sdModelDao step in the SDAI storage layer.

Link copied to clipboard

Executes the sdSamplerDao step in the SDAI storage layer.

Link copied to clipboard

Executes the serverConfigurationDao step in the SDAI storage layer.

Link copied to clipboard

Executes the swarmUiModelDao step in the SDAI storage layer.

Link copied to clipboard
expect suspend fun <R> useConnection(isReadOnly: Boolean, block: suspend (Transactor) -> R): R