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

Function toFileMeta

db/sqlite/sqlite.go:217–226  ·  view source on GitHub ↗
(fm sqlitedb.FileMeta)

Source from the content-addressed store, hash-verified

215}
216
217func toFileMeta(fm sqlitedb.FileMeta) *db.FileMeta {
218 return &db.FileMeta{
219 ID: db.FileID(fm.FileID),
220 BlobPath: fm.BlobPath,
221 Checksum: fm.Checksum,
222 Size: fm.Size,
223 LastModifiedAt: fm.LastModifiedAt,
224 LastModifiedTX: db.Tx(fm.LastModifiedTx),
225 }
226}
227
228func (d *DB) AllFileMeta(ctx context.Context, id db.GraphID) ([]*db.FileMeta, error) {
229 fms, err := d.q.AllFileMeta(ctx, string(id))

Callers 1

BatchFileMetaMethod · 0.85

Calls 2

FileIDTypeAlias · 0.92
TxTypeAlias · 0.92

Tested by

no test coverage detected