Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultGraphStore ¶
func DefaultGraphStore(opts ...Option) (core.GraphStore, error)
DefaultGraphStore creates a new gograph store with default options.
func NewGraphStore ¶
func NewGraphStore(path string) (core.GraphStore, error)
NewGraphStore creates a new gograph store with the specified path.
func WrapGraphStore ¶ added in v1.5.1
func WrapGraphStore(db *api.DB, gs *api.GraphStore) core.GraphStore
WrapGraphStore 将已存在的 gograph 数据库包装为 core.GraphStore 接口。 适用于外部已有 graphDB 实例的场景(如 daemon 共享同一个图数据库给 LLMIndexer)。 调用方负责 db 和 gs 的生命周期管理(Close)。
Types ¶
Click to show internal directories.
Click to hide internal directories.