SwiftstructSecureVectorStore

struct SecureVectorStore.SecureVectorStorage

Members 15

  1. fieldlet codec: SecureVectorStore.Codec+0x50
  2. fieldlet fileHandler: SecureVectorStore.NormalFileHandling+0x0
  3. fieldlet ops: SecureVectorStore.StorageOperations+0x28
  4. funcclear() throws -> ()
  5. funccount() throws -> Int
  6. funcdrop(key: Foundation.UUID) throws -> ()
  7. funcdrop(keys: [Foundation.UUID]) throws -> ()
  8. funclistKeys() throws -> [Foundation.UUID]
  9. funcload<A where A: SecureVectorStore.StorableItem>(key: Foundation.UUID) throws -> A?
  10. funcload<A where A: SecureVectorStore.StorableItem>(keys: [Foundation.UUID]) throws -> [A]
  11. funcloadForEach<A where A: SecureVectorStore.StorableItem>(keys: [Foundation.UUID], callback: (A) throws -> Bool) throws -> ()
  12. funcsave<A where A: SecureVectorStore.StorableItem>(key: Foundation.UUID, value: A) throws -> ()
  13. funcstart() throws -> ()
  14. funcstop() -> ()
  15. initinit(baseDirectory: Foundation.URL) throws -> SecureVectorStore.SecureVectorStorage
struct SecureVectorStorage {
    struct ItemWrapper<A> where A: SecureVectorStore.StorableItem {
        enum CodingKeys {
            case itemTypeIdentifier
            case item
        }
        let itemTypeIdentifier: Swift.String
        let item: A
    }
    let fileHandler: any SecureVectorStore.NormalFileHandling
    let ops: SecureVectorStore.StorageOperations
    let codec: any SecureVectorStore.Codec

    init(baseDirectory: Foundation.URL) throws

    func loadForEach<A>(keys: [Foundation.UUID], callback: (_: A) throws -> Swift.Bool) throws where A: SecureVectorStore.StorableItem
    func drop(key: Foundation.UUID) throws
    func drop(keys: [Foundation.UUID]) throws
    func load<A>(key: Foundation.UUID) throws -> A? where A: SecureVectorStore.StorableItem
    func load<A>(keys: [Foundation.UUID]) throws -> [A] where A: SecureVectorStore.StorableItem
    func save<A>(key: Foundation.UUID, value: A) throws where A: SecureVectorStore.StorableItem
    func stop()
    func clear() throws
    func count() throws -> Swift.Int
    func start() throws
    func listKeys() throws -> [Foundation.UUID]
}