LocalDataProvider

public class LocalDataProvider<Record> : IndexableDataProvider where Record : IndexableRecord, Record : SearchResult, Record : Decodable, Record : Encodable

Search records data provider with local storage

  • Adds record to providers storage

    Declaration

    Swift

    public func add(record: Record)

    Parameters

    record

    entity to add

  • Add or override existoing record to provireds storage

    Declaration

    Swift

    public func update(record: Record)

    Parameters

    record

    entirny to update

  • Deletes record by id

    Declaration

    Swift

    public func delete(recordId: String)

    Parameters

    recordId

    record id to delete

  • Deletes all records

    Declaration

    Swift

    public func deleteAll()