SwiftclassSecureMessagingAgentCore

class SecureMessagingAgentCore.KDSRegistrationPersister

Members 16

  1. varstatic var currentMigrationVersion: Int32 { get }
  2. deinitdeinit
  3. fieldvar container: StorageContainersPrivate.Container?
  4. fieldlet dbFileName: String
  5. fieldlet featureFlagStore: SecureMessaging.SMAFeatureFlagsStore
  6. fieldlet fileDir: String?
  7. fieldlet logger: os.Logger
  8. fieldlet store: SecureMessagingAgentCore.SqliteStore
  9. funccloseDB() async throws -> ()
  10. funcdeleteDB() async throws -> ()
  11. funcdeleteRegistration(String) async throws -> ()
  12. funcloadRegistrationStateMachines(with: SecureMessagingAgentCore.KDSRegistrationDaemon, pushHandler: SecureMessagingAgentCore.KDSRegistrationPushHandlerProtocol, metricReporter: SecureMessaging.DictionaryMetricReporter?) async throws -> [SecureMessagingAgentCore.KDSRegistrationStateMachine]
  13. funcsave(stateMachine: SecureMessagingAgentCore.KDSRegistrationStateMachine) async throws -> ()
  14. funcsetupDB(withoutMigration: Bool) async throws -> ()
  15. initSecureMessagingAgentCore.KDSRegistrationPersister.__allocating_init(fileDir: String?, dbFileName: String, featureFlagStore: SecureMessaging.SMAFeatureFlagsStore) -> SecureMessagingAgentCore.KDSRegistrationPersister
  16. varvar useDatabase: Bool { get }
class KDSRegistrationPersister {
    let logger: os.Logger
    let store: SecureMessagingAgentCore.SqliteStore
    var container: StorageContainersPrivate.Container?
    let fileDir: Swift.String?
    let dbFileName: Swift.String
    let featureFlagStore: SecureMessaging.SMAFeatureFlagsStore

    var useDatabase: Swift.Bool {
        get
    }
    init(fileDir: Swift.String?, dbFileName: Swift.String, featureFlagStore: SecureMessaging.SMAFeatureFlagsStore)
    func setupDB(withoutMigration: Swift.Bool) async throws
    func closeDB() async throws
    func deleteDB() async throws
    func save(stateMachine: SecureMessagingAgentCore.KDSRegistrationStateMachine) async throws
    func loadRegistrationStateMachines(with: SecureMessagingAgentCore.KDSRegistrationDaemon, pushHandler: any SecureMessagingAgentCore.KDSRegistrationPushHandlerProtocol, metricReporter: (any SecureMessaging.DictionaryMetricReporter)?) async throws -> [SecureMessagingAgentCore.KDSRegistrationStateMachine]
    func deleteRegistration(_: Swift.String) async throws

    static let currentMigrationVersion: Swift.Int32

    deinit
}