SqlDelightChainRepository

class SqlDelightChainRepository(database: KmpWorkerDatabase) : ChainRepository

SQLDelight-backed ChainRepository.

Persists chain step progress to SQLite so chains can resume after app termination. All operations are dispatched to Dispatchers.IO.

Constructors

Link copied to clipboard
constructor(database: KmpWorkerDatabase)

Functions

Link copied to clipboard
open suspend override fun delete(chainId: String)
Link copied to clipboard
open suspend override fun get(chainId: String): ChainProgress?
Link copied to clipboard
open suspend override fun getAllRunning(): List<ChainProgress>
Link copied to clipboard
open suspend override fun save(chainId: String, stepsJson: String, totalSteps: Int)
Link copied to clipboard
open suspend override fun updateStep(chainId: String, currentStep: Int, status: String)