MCPcopy Create free account
hub / github.com/bcspragu/logseq-sync / BatchFileMeta

Method BatchFileMeta

cmd/server/main.go:80–80  ·  view source on GitHub ↗

Because the Logseq client can/will request files it hasn't uploaded yet, the map will contain nil entries for requested files that don't exist

(ctx context.Context, id db.GraphID, fIDs []db.FileID)

Source from the content-addressed store, hash-verified

78 // Because the Logseq client can/will request files it hasn't uploaded yet, the
79 // map will contain nil entries for requested files that don't exist
80 BatchFileMeta(ctx context.Context, id db.GraphID, fIDs []db.FileID) (map[db.FileID]*db.FileMeta, error)
81 AllFileMeta(ctx context.Context, id db.GraphID) ([]*db.FileMeta, error)
82}
83

Callers 1

getFilesMetaMethod · 0.65

Implementers 2

DBdb/mem/mem.go
DBdb/sqlite/sqlite.go

Calls

no outgoing calls

Tested by

no test coverage detected