Store
open class Store : StoreProtocol, @unchecked Sendable
-
Declaration
Swift
public convenience init(dbpath: String) throws -
Declaration
Swift
open func addAddress(a: UpdatableAddressFields) throws -> Address -
Declaration
Swift
open func addCreditCard(cc: UpdatableCreditCardFields) throws -> CreditCard -
Declaration
Swift
open func deleteAddress(guid: String) throws -> Bool -
Declaration
Swift
open func deleteCreditCard(guid: String) throws -> Bool -
Declaration
Swift
open func getAddress(guid: String) throws -> Address -
Declaration
Swift
open func getAllAddresses() throws -> [Address] -
Declaration
Swift
open func getAllCreditCards() throws -> [CreditCard] -
Declaration
Swift
open func getCreditCard(guid: String) throws -> CreditCard -
Declaration
Swift
open func registerWithSyncManager() -
Run maintenance on the DB
This is intended to be run during idle time and will take steps / to clean up / shrink the database.
Declaration
Swift
open func runMaintenance() throws -
Declaration
Swift
open func scrubEncryptedData() throws -
The
scrub_undecryptable_credit_card_data_for_remote_replacementfunction locally scrubs credit cards that cannot be decrypted, sets the record’s metadata to their default values, and resets the credit card engine so any existing server records can overwrite the locally scrubbed records.NB: This function was created to unblock iOS credit card users who are unable to sync records and should not be used outside of this use case.
Declaration
Swift
open func scrubUndecryptableCreditCardDataForRemoteReplacement(localEncryptionKey: String) throws -> CreditCardsDeletionMetrics -
Declaration
Swift
open func touchAddress(guid: String) throws -
Declaration
Swift
open func touchCreditCard(guid: String) throws -
Declaration
Swift
open func updateAddress(guid: String, a: UpdatableAddressFields) throws -
Declaration
Swift
open func updateCreditCard(guid: String, cc: UpdatableCreditCardFields) throws