Packages

fnord

0.9.35

AI code archaeology

Current section

Files

Jump to
fnord lib store project entry storage.ex
Raw

lib/store/project/entry/storage.ex

defmodule Store.Project.Entry.Storage do
@moduledoc """
Façade over entry persistence using direct File operations and Entry submodules.
"""
@behaviour Store.Project.Entry.StorageBehaviour
alias Store.Project.Entry
@impl true
def exists?(entry), do: Entry.exists_in_store?(entry)
@impl true
def create(entry), do: Entry.create(entry)
@impl true
def delete(entry), do: {:ok, Entry.delete(entry)}
@impl true
def is_incomplete?(entry), do: Entry.is_incomplete?(entry)
@impl true
def is_stale?(entry), do: Entry.is_stale?(entry)
@impl true
def read(entry), do: Entry.read(entry)
@impl true
def save(entry, summary, embeddings),
do: Entry.save(entry, summary, embeddings)
end